Annotation Type OutputPortSet
-
@Target(value=TYPE) @Retention(value=RUNTIME) @Documented public @interface OutputPortSet
Declare a single output port set. A port set is a fixed number of ports that share the same configuration. This avoids repetition of the same configuration for different ports.The default output set has the following attributes:
- Is required.
- Is an open output port set i.e. any number of output ports can be specified.
- Is free of window punctuations.
If multiple output port sets need to specified, use the
OutputPorts
annotation instead of theOutputPortSet
annotation. Note that these annotations are mutually exclusive and cannot be used at the same time.If the
OutputPortSet#windowPunctuationOutputMode()
element is set toWindowPunctuationOutputMode#Preserving
then theOutputPortSet#windowPunctuationInputPort()
element must be specified if the operator has more than one input port. The value of this element must be one of theInputPortSet#id()
element values from one of theInputPortSet
annotations specified on the class or inherited from the super class.If the
OutputPortSet
annotation is not specified on the operator class and noOutputPorts
annotation is present on the class or inherited from a base class, then the operator has no output ports.- Since:
- InfoSphere® Streams Version 3.2
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element and Description int
cardinality
The number of output ports allowed.java.lang.String
description
Description of the port.boolean
optional
Indicates whether this port set is optional.java.lang.String
windowPunctuationInputPort
Declares a punctuation input port set for a punctuation preserving output port set.OutputPortSet.WindowPunctuationOutputMode
windowPunctuationOutputMode
Declares the window punctuation semantics of the output port set.
-
-
-
Element Detail
-
description
public abstract java.lang.String description
Description of the port.- Returns:
- Description for the output port set
- Default:
- ""
-
cardinality
public abstract int cardinality
The number of output ports allowed. If not specified, the default value of thecardinality
element is -1 to indicate unbounded.
Note that only one output port set with cardinality set to -1 can be specified.- Returns:
- Number of output ports allowed in this set
- Default:
- -1
-
optional
public abstract boolean optional
Indicates whether this port set is optional. If not specified, the default value of theoptional
element is false indicating that the port set is required.- Returns:
- true if this port set is optional
- Default:
- false
-
windowPunctuationOutputMode
public abstract OutputPortSet.WindowPunctuationOutputMode windowPunctuationOutputMode
Declares the window punctuation semantics of the output port set. The options are one of the values specified in theWindowPunctuationOutputMode
enumeration.- Returns:
- punctuation semantics of the output port set.
- Default:
- com.ibm.streams.operator.model.OutputPortSet.WindowPunctuationOutputMode.Free
-
windowPunctuationInputPort
public abstract java.lang.String windowPunctuationInputPort
Declares a punctuation input port set for a punctuation preserving output port set. The value must be one of theInputPortSet#id()
elements that are present on the class or one of the super classes. This element must be specified under the following condition:
- The
OutputPortSet#windowPunctuationOutputMode()
must be set toWindowPunctuationOutputMode#Preserving
. - There must be more than one input port sets specified on the operator.
- The input port set that is specified must have a cardinality of 1
- Returns:
- The
InputPortSet#id()
element of anInputPortSet
annotation.
- Default:
- ""
- The
-
-