Inserting Java code using the Java Class step

The User Defined Java Class step allows you to insert Java code inside your Transformation. The code you type here is executed once per row coming to the step.

The UI for the UDJC step is very similar to the UI for the JavaScript step, as shown in the following screenshot:

UI for the Java Class step

Most of the window is occupied by the editing area. Here, you write the Java code using the standard syntax of the language. On the left, there is a panel with a lot of fragments of code ready to use (Code Snippits) and a section with sets and gets for the input and output fields. To add one of the ...

Get Learning Pentaho Data Integration 8 CE - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.