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, handleInactiveOutputcomputeMetadatadisableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisableParallelism, getInputPorts, getOutputPortsprotected 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()
PipelineOperatorgetInput in interface PipelineOperator<RecordPort>public final RecordPort getOutput()
PipelineOperatorgetOutput in interface PipelineOperator<RecordPort>protected final void execute(ExecutionContext ctx)
execute in class ExecutableOperatorctx - the execution contextprotected int getNumInputCopies(LogicalPort port)
getNumInputCopies in class ExecutableOperatorport - the portprotected final RecordInput current(ExecutionContext ctx)
ctx - the execution contextprotected final RecordInput lookahead(ExecutionContext ctx)
ctx - the execution contextCopyright © 2021 Actian Corporation. All rights reserved.