- All Superinterfaces:
Named,TokenTyped
- All Known Subinterfaces:
PhysicalInputPort,PhysicalOutputPort,RecordInput,RecordOutput
The common interface for all ports, both input and output. Ports represent an
access point to a flow for an operator.
Ports are strongly typed, based upon the underlying tokens of the associated
flow. Many common token types are
supported, including Java primitive types and composite types.
-
Method Details
-
getType
TokenType getType()Gets the type of tokens in the underlying flow.- Specified by:
getTypein interfaceTokenTyped- Returns:
- the token type for this port.
-
getStats
PortStatistics getStats()Retrieves the run-time statistics gathered for this port.- Returns:
PortStatsgathered during execution ornullif the configuration did not specify collecting statistics
-
isAttached
boolean isAttached()Indicates whether the port is still attached.- Returns:
trueif the port may still have data flowing,falseotherwise
-
detach
void detach()Forcibly releases the resources of a port.
-