com.ibm.streams.operator.model
Annotation Type OutputPorts
-
@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited public @interface OutputPorts
Declare a set of output port sets for an operator. The set of output ports are specified as an array ofOutputPortSet
annotations.The order in which the
InputPortSet
annotations are specified is the order of the port sets in the operator model XML file. If the operator consists of only one output port set then theOutputPortSet
annotation can be used instead of theOutputPorts
annotation. However, note that these annotations are mutually exclusive and cannot be used at the same time.The annotation is also inherited from super classes unless the subclass specifies the same annotation.
For example, consider the snippet below:
The@OutputPorts({@OutputPortSet(...), @OutputPortSet(...)}) class BaseOperator extends AbstractOperator {...} @PrimitiveOperator public class MyOperator extends BaseOperator {...}
MyOperator
class will inherit the 2 output port sets that are specified using theOutputPorts
annotation from theBaseOperator
class. However, ifMyOperator
specifies the same annotation then that would take effect instead of the one specified onBaseOperator
If the
OutputPorts
annotation is not specified or inherited on the operator class and noOutputPortSet
annotation is present on the operator class, then the operator has no output ports.- Since:
- InfoSphere® Streams Version 3.2
-
-
Required Element Summary
Required Elements Modifier and Type Required Element and Description OutputPortSet[]
value
A list of output port sets for an operator.
-
-
-
Element Detail
-
value
public abstract OutputPortSet[] value
A list of output port sets for an operator.- Returns:
- A set of
OutputPortSet
annotations
-
-