This node allows you to execute arbitrary java code to create new columns or replace existing ones. Enter the java code in the text area.
Output Columns and Variables
Output columns are defined by creating and binding a java field for each column. The value assigned to this field will be written to the output.
This node allows adding or modifying flow variables in the same manner.
It is also possible to use external java libraries (libraries that are not part of java boot classpath). In order to include external jar or zip files, add their location in the "Additional Libraries" tab.
Advanced users may want to make use of a library that is already present in the KNIME Analytics Platform installation as a bundle. Adding them to the list in the "Additional Bundles" tab will make them available to the java snippet's classpath.
You can define reusable templates with the "Create templates..." button. Templates are stored in the user's workspace by default and can be accessed via the "Templates" tab.
- Type: Data Input table.
- Type: Data Input table with additional or replaced columns.
Scripting > Java
Make sure to have this extension installed:
Update site for KNIME Analytics Platform 3.7:
KNIME Analytics Platform 3.7 Update Site