java.lang.Object
com.pervasive.datarush.script.PortDescriptor
Definition of an operator port.
-
Constructor Summary
ConstructorsConstructorDescriptionPortDescriptor(String name, LogicalPort.Direction direction, int index, Class<? extends LogicalPort> portClass, String description, boolean optional) Construct a port definition. -
Method Summary
Modifier and TypeMethodDescriptionGet the description of the port.Get the port direction.intgetIndex()Get the index of the port within the list of ports of this type for the operator.getName()Get the logical name of the port.Class<? extends LogicalPort>Get the implementation class of the port.booleanGet the indicator of whether or not a port is optional.
-
Constructor Details
-
PortDescriptor
public PortDescriptor(String name, LogicalPort.Direction direction, int index, Class<? extends LogicalPort> portClass, String description, boolean optional) Construct a port definition.- Parameters:
name- logical name of the portdirection- direction of the port (input or output)index- zero based index of this port within the list of ports of this type for the operatorportClass- class implementation of the portdescription- documentation about the port
-
-
Method Details
-
getName
Get the logical name of the port.- Returns:
- logical port name
-
getDescription
Get the description of the port. May be null.- Returns:
- port description (may be null)
-
getIndex
public int getIndex()Get the index of the port within the list of ports of this type for the operator.- Returns:
- port index
-
getPortClass
Get the implementation class of the port.- Returns:
- implementation class
-
getDirection
Get the port direction.- Returns:
- port direction
-
isOptional
public boolean isOptional()Get the indicator of whether or not a port is optional.- Returns:
- true if the port is optional; false otherwise
-