Icon

01_​Example_​of_​Java_​Snippet

Java Snippet

Contains several Java Snippet nodes that implement simple functionalities in Java. Java Snippets can be used to implement methods that are not available as native KNIME nodes, or to implement methods in one node that otherwise would require an armada of KNIME nodes.

Simple snippet Slightly more complex part Collection & array Missing values Open the node's configuration dialog (double-click the node) to give a look at the Java code.From within the java code you can access the data from the incoming data table (row by row) and compute new data values. You store this new data values in a new column or replace an existing one. You also have access to flow variable values in your code. And you can use externallibraries if you need to. Iris Datasum of sepal attsbinning ofsepal widthsum of sepal < 8derive namefrom class & widthsum of all num. attsmultiply all by 3.0insert random miss valuederive name fromclass & widthrunning sumof sepal width File Reader Java Snippet(simple) Java Snippet(simple) Java SnippetRow Filter Java Snippet(simple) Java Snippet(simple) Java Snippet(simple) Split CollectionColumn Java Snippet(simple) Java Snippet(simple) Java Snippet(simple) Create CollectionColumn Simple snippet Slightly more complex part Collection & array Missing values Open the node's configuration dialog (double-click the node) to give a look at the Java code.From within the java code you can access the data from the incoming data table (row by row) and compute new data values. You store this new data values in a new column or replace an existing one. You also have access to flow variable values in your code. And you can use externallibraries if you need to. Iris Datasum of sepal attsbinning ofsepal widthsum of sepal < 8derive namefrom class & widthsum of all num. attsmultiply all by 3.0insert random miss valuederive name fromclass & widthrunning sumof sepal width File Reader Java Snippet(simple) Java Snippet(simple) Java SnippetRow Filter Java Snippet(simple) Java Snippet(simple) Java Snippet(simple) Split CollectionColumn Java Snippet(simple) Java Snippet(simple) Java Snippet(simple) Create CollectionColumn

Nodes

Extensions

Links