java.lang.Object
com.pervasive.datarush.ports.LogicalPort
- Direct Known Subclasses:
AbstractModelPort,RecordPort
A operator's port ( either input or output ). Clients should create ports via
one of the factory methods on
AbstractLogicalOperator. For example
use newRecordInput to create
a record input port.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIndicates whether the port is input or output -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLogicalPort(LogicalOperator owner, String name, LogicalPort.Direction direction, boolean optional) Create a new LogicalPort -
Method Summary
Modifier and TypeMethodDescriptionfinal LogicalPort.DirectionReturns whether this port is for input or outputabstract LogicalPortFactory<?>Returns the factory that knows how to create ports of this typeabstract Class<? extends PortMetadata>Returns the class of metadata that this port usesfinal StringgetName()Returns the name of this portfinal LogicalOperatorgetOwner()Returns a reference to the operator that declared this portfinal booleanReturns whether this port is optional.toString()Returns a string for ease debugging of the form<ownerClass>.<name>
-
Constructor Details
-
LogicalPort
protected LogicalPort(LogicalOperator owner, String name, LogicalPort.Direction direction, boolean optional) Create a new LogicalPort- Parameters:
owner- the owner of the portname- the name of the portdirection- the port directionoptional- whether the port is optional
-
-
Method Details
-
getOwner
Returns a reference to the operator that declared this port- Returns:
- the operator that declared this port
-
getName
Returns the name of this port- Returns:
- the name of this port
-
getDirection
Returns whether this port is for input or output- Returns:
- whether this port is for input or output
-
isOptional
public final boolean isOptional()Returns whether this port is optional. Only input ports may be optional.- Returns:
- whether this port is optional
-
getMetadataType
Returns the class of metadata that this port uses- Returns:
- the class of metadata that this port uses
-
getFactory
Returns the factory that knows how to create ports of this type- Returns:
- the factory that knows how to create ports of this type
-
toString
Returns a string for ease debugging of the form<ownerClass>.<name>
-