IconRow Splitter0 ×

StreamableKNIME Base Nodes version 3.6.0.v201807061308 by KNIME AG, Zurich, Switzerland

This node has exactly the same functionality as the Row Filter node, except for that it has an additional output that provides the rows that are filtered out. For performance and disk space reasons you may want to consider using the Row Filter node. The table at the upper port (with index 0) contains the rows included in the result according to the filter criteria (the node settings). The lower port (with index 1) provides a table with all rows not matching the filter criteria. The sum of the number of rows in the two output tables is the same than the number of rows in the input table.
Following is a copy of the node description of the Row Filter node:
The node allows for row filtering according to certain criteria. It can include or exclude: certain ranges (by row number), rows with a certain row ID, and rows with a certain value in a selectable column (attribute). Below are the steps on how to configure the node in its configuration dialog. Note: The node doesn't change the domain of the data table. I. e. the upper and lower bounds or the possible values in the table spec are not adapted, even if one of the bounds or one value is fully filtered out.

Options

In- or exclude rows by criteria
You must first select which criteria should be used for filtering from the left-hand side. Also choose whether to include or exclude rows according to the selected criteria. Depending on the choice, you will then have to adjust the filter parameters in the right-hand panel.
Column value matching
If filter by attribute value is selected, select the name of the column whose value should be matched. If the selected column is a collection column the filter based on collection elements option allows to filter each row based on the elements of the collection instead of its string representation. Then, either enter a pattern for string matching, or a value range, for range filtering. When using a pattern match, you can set checkmarks according to whether the pattern contains wildcards or is a regular expression. Wildcard patterns contain '*' (matching any sequence of characters) and '?' (matching any one character). Examples of regular expressions are given below. Also, a case sensitive match can be enabled by the according checkmark. Note: if you select a pattern from the drop-down menu of the pattern text field, the node still performs a comparison of the string representation of the data values.
If a range is specified, and you specify only one boundary, the other is then set to (plus or minus) infinity.
Here are some examples of regular expressions:
"^foo.*" matches anything that starts with "foo". The '^'-character stands for the beginning of the word, the dot matches any (one) character, and the asterisk allows any number (including zero) of the previous character.
"[0-9]*" matches any string of digits (including the empty string). The [ ] define a set of characters (they could be added individually like [0123456789], or by range). This set matches any (one) character included in the set.
For a complete explanation of regular expressions see e.g. the JavaDoc of the java.util.regex.Pattern class.
Row number range
If filter by range is selected, specify the first row number to in/exclude. The end of the range can either be specified by row number, or set to the end of the table, causing all remaining rows to be in/excluded.
Row ID pattern
If filter by row ID is selected, specify a regular expression, which is matched against the row ID of each row. A checkmark can be set, if a case sensitive match should be performed and if the row ID should start with the specified pattern.

Input Ports

Datatable from which to filter rows.

Output Ports

Datatable with rows meeting the specified criteria
Datatable with rows not meeting the specified criteria

Best Friends (Incoming)

Best Friends (Outgoing)

Workflows

Update Site

To use this node in KNIME, install KNIME Base Nodes from the following update site:

Wait a sec! You want to explore and install nodes even faster? We highly recommend our NodePit for KNIME extension for your KNIME Analytics Platform.