public abstract class SortedGroupHandler extends ExecutableOperator implements RecordPipelineOperator
Modifier and Type | Field and Description |
---|---|
protected RecordPort |
inputPort |
protected RecordPort |
outputPort |
Constructor and Description |
---|
SortedGroupHandler()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected RecordInput |
current(ExecutionContext ctx)
Returns the current copy of the input port
|
protected void |
execute(ExecutionContext ctx)
Final execute method, subclasses should override the various
abstract methods of this class to receive events.
|
RecordPort |
getInput()
Returns the input port
|
String[] |
getKeys()
Returns the keys to be used for detecting group boundaries
|
protected int |
getNumInputCopies(LogicalPort port)
Overridden to declare that we require 2 copies
of input
|
RecordPort |
getOutput()
Returns the output port
|
protected RecordInput |
lookahead(ExecutionContext ctx)
Returns the lookahead copy of the input port
|
void |
setKeys(String[] keys)
Sets the keys to be used for detecting group boundaries
|
cloneForExecution, getPortSettings, handleInactiveOutput
computeMetadata
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disableParallelism, getInputPorts, getOutputPorts
protected final RecordPort inputPort
protected final RecordPort outputPort
public final String[] getKeys()
public final void setKeys(String[] keys)
keys
- key fields on which data is groupedpublic final RecordPort getInput()
PipelineOperator
getInput
in interface PipelineOperator<RecordPort>
public final RecordPort getOutput()
PipelineOperator
getOutput
in interface PipelineOperator<RecordPort>
protected final void execute(ExecutionContext ctx)
execute
in class ExecutableOperator
ctx
- the execution contextprotected int getNumInputCopies(LogicalPort port)
getNumInputCopies
in class ExecutableOperator
port
- the portprotected final RecordInput current(ExecutionContext ctx)
ctx
- the execution contextprotected final RecordInput lookahead(ExecutionContext ctx)
ctx
- the execution contextCopyright © 2024 Actian Corporation. All rights reserved.