Date: Fri, 29 Mar 2024 05:53:52 +0000 (UTC) Message-ID: <1185234619.91.1711691632732@56f6e76a1124> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_90_652981206.1711691632732" ------=_Part_90_652981206.1711691632732 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
<= strong>PLEASE NOTE: This documentation applies to an earlier= version. For the most recent documentation, visit the = Pentaho Enterprise Edition documentation si= te.
The Java Filter Step allows the stream to be filtered using user defined= Java expressions. The input stream, coming from one or more steps, can be = redirected to two different steps based on the evaluation of the written ex= pression.
In other words, the user is able to perform an if-statement to filter th= e data stream with pure java expressions:
if( Con= dition ) {matching-step} else {non-matching step}
Option |
Description |
---|---|
Step Name |
Name of the step; this name has to be unique in a single transformation.= |
Destination step for matching rows (optional) |
The rows for which the written condition is evaluated to true are sent t= o this step |
Destination step for non-matching rows (optional) |
The rows for which the written condition is evaluated to false are sent = to this step |
Condition (Java Expression) |
Defines the Java condition on which to filter the data. See examples bel= ow |
These code samples applies to the Condition (Java Expression) field.
Filters a string that contains white space
field.c= ontains(" ");
Filters a string that is identical to a constant string
field.e= quals("Positive");
Filters a boolean value
field = =3D=3D Boolean.TRUE