java.lang.Object
com.pervasive.datarush.operators.AbstractLogicalOperator
com.pervasive.datarush.operators.StreamingOperator
com.pervasive.datarush.operators.ExecutableOperator
com.pervasive.datarush.operators.group.SortedGroupHandler
- All Implemented Interfaces:
LogicalOperator,PipelineOperator<RecordPort>,RecordPipelineOperator
public abstract class SortedGroupHandler
extends ExecutableOperator
implements RecordPipelineOperator
Common base class for all processes that need to detect group boundaries
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final RecordInputcurrent(ExecutionContext ctx) Returns the current copy of the input portprotected final voidexecute(ExecutionContext ctx) Final execute method, subclasses should override the various abstract methods of this class to receive events.final RecordPortgetInput()Returns the input portfinal String[]getKeys()Returns the keys to be used for detecting group boundariesprotected intgetNumInputCopies(LogicalPort port) Overridden to declare that we require 2 copies of inputfinal RecordPortReturns the output portprotected final RecordInputReturns the lookahead copy of the input portfinal voidSets the keys to be used for detecting group boundariesMethods inherited from class com.pervasive.datarush.operators.ExecutableOperator
cloneForExecution, getPortSettings, handleInactiveOutputMethods inherited from class com.pervasive.datarush.operators.StreamingOperator
computeMetadataMethods inherited from class com.pervasive.datarush.operators.AbstractLogicalOperator
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pervasive.datarush.operators.LogicalOperator
disableParallelism, getInputPorts, getOutputPorts
-
Field Details
-
inputPort
-
outputPort
-
-
Constructor Details
-
SortedGroupHandler
public SortedGroupHandler()Default constructor.
-
-
Method Details
-
getKeys
Returns the keys to be used for detecting group boundaries- Returns:
- the key fields on which data is grouped
-
setKeys
Sets the keys to be used for detecting group boundaries- Parameters:
keys- key fields on which data is grouped
-
getInput
Description copied from interface:PipelineOperatorReturns the input port- Specified by:
getInputin interfacePipelineOperator<RecordPort>- Returns:
- the input port
-
getOutput
Description copied from interface:PipelineOperatorReturns the output port- Specified by:
getOutputin interfacePipelineOperator<RecordPort>- Returns:
- the output port
-
execute
Final execute method, subclasses should override the various abstract methods of this class to receive events.- Specified by:
executein classExecutableOperator- Parameters:
ctx- the execution context
-
getNumInputCopies
Overridden to declare that we require 2 copies of input- Overrides:
getNumInputCopiesin classExecutableOperator- Parameters:
port- the port- Returns:
- the number of input copies for the port
-
current
Returns the current copy of the input port- Parameters:
ctx- the execution context- Returns:
- the current copy of the input port
-
lookahead
Returns the lookahead copy of the input port- Parameters:
ctx- the execution context- Returns:
- the current copy of the input port
-