tab, you define how an active or passive Java transformation behaves after it processes all input data. On this tab, you can also set output data for active transformations, and call Java transformation API methods.
To define how a Java transformation behaves after it processes all input data, enter the code in the
Java code
window in the
Code
properties on the
At End
tab.
You can access and define the following variables and API methods on the
At End
tab:
Output port variables. You can use the names of any output ports that you defined on the
Ports
tab as variables, or set output data for active Java transformations.
Instance variables and user-defined methods. Use any instance variables or user-defined methods you declared on the
Helpers
tab.
Java transformation API methods. Call API methods provided by the Java transformation.
For example, use the following Java code to write information to the log when the end of data is reached:
logInfo("Number of null rows for partition is: " + partCountNullRows);
To compile the code for the Java transformation, click