Designing a Java Transformation
When you design a Java transformation, you must consider factors, such as the type of transformation that you want to create.
When you design a Java transformation, consider the following questions:
- •Do you need to create an active or passive Java transformation?
A passive Java transformation generates one output row for each input row in the transformation.
An active Java transformation generates multiple output rows for each input row in the transformation.
- •Do you need to define any functions in the Java transformation? If so, which expressions do you want to include in each function?
For example, you can define a function that invokes an expression to look up the values of input or output ports or to look up the values of Java transformation variables.
- •Do you want to create a reusable or non-reusable Java transformation?
A reusable transformation can exist in multiple mappings.
A non-reusable transformation can exist within a single mapping.