java.lang.Object
com.pervasive.datarush.ports.LogicalPort
com.pervasive.datarush.ports.model.AbstractModelPort<Void>
com.pervasive.datarush.ports.model.DoneSignalPort
Used to coordinate processing between operators that have a processing
dependency but no explicit data dependency. An example would be one operator
that writes data to a temporary file and another operator that reads from that file.
Note that this is a rarely-used feature.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pervasive.datarush.ports.LogicalPort
LogicalPort.Direction -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AbstractModelPortFactory<Void,DoneSignalPort> The factory for DoneSignalPorts -
Method Summary
Modifier and TypeMethodDescriptionLogicalPortFactory<? extends AbstractModelPort<?>>Returns the factory that knows how to create ports of this typegetMetadata(Void model) Returns the metadata associate with the model.Class<? extends PortMetadata>Returns the class of metadata that this port usesstatic DoneSignalPortReturns the done signal port from the given operator if it defines one, throwing an exception if none foundvoidSignals downstream operators that we are donevoidwaitDone(ExecutionContext ctx) Waits until upstream operator has sent the done signalMethods inherited from class com.pervasive.datarush.ports.model.AbstractModelPort
getModel, getModelClass, getStorageHandler, setMergeHandler, setModelMethods inherited from class com.pervasive.datarush.ports.LogicalPort
getDirection, getName, getOwner, isOptional, toString
-
Field Details
-
FACTORY
The factory for DoneSignalPorts
-
-
Method Details
-
getMetadata
Description copied from class:AbstractModelPortReturns the metadata associate with the model. (Given a model, we should always be able to get its metadata.- Specified by:
getMetadatain classAbstractModelPort<Void>- Parameters:
model- the model object- Returns:
- the metadata
-
getFactory
Description copied from class:LogicalPortReturns the factory that knows how to create ports of this type- Specified by:
getFactoryin classAbstractModelPort<Void>- Returns:
- the factory that knows how to create ports of this type
-
getMetadataType
Description copied from class:LogicalPortReturns the class of metadata that this port uses- Specified by:
getMetadataTypein classLogicalPort- Returns:
- the class of metadata that this port uses
-
signalDone
Signals downstream operators that we are done- Parameters:
ctx- the execution context
-
waitDone
Waits until upstream operator has sent the done signal- Parameters:
ctx- the execution context
-
getOutput
Returns the done signal port from the given operator if it defines one, throwing an exception if none found- Parameters:
op- the operator- Returns:
- the done signal port
-