Was this helpful?
Setting Operator Properties
Most of the operators have properties that can affect while composing them and/or their run time behavior. The properties can be set in any of the following ways using:
Convenience constructors of operators as applicable. Set methods.
The Setter methods of operators follow the Java Bean conventions. The conventions are:
The method has public access. The return type is void.
The method name starts with set and the remaining is the name of the property (use camel casing).
The method takes one parameter, which is the value to set.
Operators may provide multiple methods to set a property. These methods accept different types of parameters. These are typically convenient for the user, allowing any one of two or more types to pass as the property value. For the list of Setter methods, see the JavaDoc of each operator.
Operators may have properties that should be set. If the required property is not set, a type of exception is issued while composing or at run time.
The following is an example of setting properties of an operator. The properties of an operator can be set after they are added to the LogicalGraph. If the properties are set after a graph is executed, then it will not have any effect.
generator.setRowCount(1000); RecordTokenType type = TokenTypeConstant.record(
    TokenTypeConstant.DOUBLE("dblField"),
TokenTypeConstant.STRING("stringFld")); generator.setOutputType(type);
Last modified date: 12/09/2024