Java Snippet based Row Filter. Use the java editor to enter a
boolean expression that is used to define whether an input row
is passed to the output, whereby
true defines a match,
i.e. the current row is passed to the output. For instance, to
filter for every other row, you could use an expression such as
return $$ROWINDEX$$ % 2 == 0;
This node supports missing values. If the corresponding check box
is set missing values are represented as
If the check box is not set and the snippet accesses a field whose
value is missing, the expression evaluates to
(no match). It also evaluates to
false in case the
snippet throws an exception (other than
You can halt the entire execution by throwing an
exception such as
throw new Abort(message);.
Double, int-compatible variables as
Integerand any other varaible type as
nullin the expression. It is your responsibility to check for
nullin this case (the fields are all real classes, so even
doubleare represented as their respective class
Double). If unselected, a missing value in the relevant input cell will immediately produce a
To use this node in KNIME, install KNIME Javasnippet from the following update site:
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to email@example.com, follow @NodePit on Twitter, or chat on Gitter!
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.