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 of OutputPortSet 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 the OutputPortSet annotation can be used instead of the OutputPorts 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:

    
            @OutputPorts({@OutputPortSet(...), @OutputPortSet(...)})
            class BaseOperator extends AbstractOperator {...}
    
            @PrimitiveOperator
            public class MyOperator extends BaseOperator {...}
     
    The MyOperator class will inherit the 2 output port sets that are specified using the OutputPorts annotation from the BaseOperator class. However, if MyOperator specifies the same annotation then that would take effect instead of the one specified on BaseOperator

    If the OutputPorts annotation is not specified or inherited on the operator class and no OutputPortSet 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