Hub
Pricing About
NodeNode / Manipulator

Java Snippet Row Splitter

ScriptingJavaStreamable
Drag & drop
Like

Java Snippet based Row Splitter. Use the java editor to enter a boolean expression that is used to define whether an input row is passed to the first ( true ) or second ( false ) 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 null values. If the check box is not set and the snippet accesses a field whose value is missing, the expression evaluates to false (no match). It also evaluates to false in case the snippet throws an exception (other than Abort ).

You can halt the entire execution by throwing an Abort exception such as throw new Abort(message); .

Node details

Input ports
  1. Type: Table
    Input data
    Input data to be split.
Output ports
  1. Type: Table
    True match
    Input data for which the expression evaluated to true .
  2. Type: Table
    False match
    Input data for which the expression evaluated to true .

Extension

The Java Snippet Row Splitter node is part of this extension:

  1. Go to item

Related workflows & nodes

  1. Go to item
  2. Go to item
  3. Go to item

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits