T
- the type of the modelpublic final class MergeModel<T> extends DeferredCompositeOperator
NOTE: this operator is non-parallel
Constructor and Description |
---|
MergeModel(LogicalPortFactory<? extends AbstractModelPort<T>> factory,
ModelMergeHandler<T> mergeHandler)
Merge the input model
|
Modifier and Type | Method and Description |
---|---|
protected void |
compose(DeferredCompositionContext ctx)
Compose the body of this operator.
|
protected void |
computeMetadata(StreamingMetadataContext ctx)
Implementations must adhere to all of the contracts specified
by
StreamingOperator.computeMetadata(com.pervasive.datarush.operators.StreamingMetadataContext) . |
AbstractModelPort<T> |
getInput()
Returns the input port for the partial model
|
AbstractModelPort<T> |
getOutput()
Returns the output port that will produce the final model
|
computeOutputTypes
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
public MergeModel(LogicalPortFactory<? extends AbstractModelPort<T>> factory, ModelMergeHandler<T> mergeHandler)
factory
- determines the type of model portmergeHandler
- performs the merge of partial models into a final modelpublic final AbstractModelPort<T> getInput()
public final AbstractModelPort<T> getOutput()
protected final void computeMetadata(StreamingMetadataContext ctx)
DeferredCompositeOperator
StreamingOperator.computeMetadata(com.pervasive.datarush.operators.StreamingMetadataContext)
. In addition,
DeferredCompositeOperators must declare required metadata so
as to satisfy requirements of the operators that are added
during DeferredCompositeOperator.compose(com.pervasive.datarush.operators.DeferredCompositionContext)
.computeMetadata
in class DeferredCompositeOperator
ctx
- the contextprotected void compose(DeferredCompositionContext ctx)
DeferredCompositeOperator
OperatorComposable.add(O)
OperatorComposable.connect(P, P)
. This includes
connections from the composite's input ports to sub-operators, connections between sub-operators, and
connections from sub-operators output ports to the composite's output portscompose
in class DeferredCompositeOperator
ctx
- the contextCopyright © 2020 Actian Corporation. All rights reserved.