Class FilterExpression
java.lang.Object
com.northconcepts.datapipeline.filter.Filter
com.northconcepts.datapipeline.filter.FilterExpression
A
Filter that keeps records for which a logical expression-language condition evaluates to true.-
Constructor Summary
ConstructorsConstructorDescriptionFilterExpression(String logicalExpression) FilterExpression(String logicalExpression, FieldDeclarations fieldDeclarations) Creates a filter for the given logical expression, which is parsed immediately; field types declared infieldDeclarationstake precedence over those inferred from each record. -
Method Summary
Methods inherited from class com.northconcepts.datapipeline.filter.Filter
addExceptionProperties, close, of, open
-
Constructor Details
-
FilterExpression
Creates a filter for the given logical expression, which is parsed immediately; field types declared infieldDeclarationstake precedence over those inferred from each record. -
FilterExpression
-
-
Method Details
-
allow
Description copied from class:FilterTests whether a record passes this filter.Contract for subclasses (see also
docs/authoring/Filter.md):- Return
trueto keep the record. - Return
falseto discard the record (routed to a discard writer if the hostFilteringReaderis configured with one). - Must be a pure decision — do not mutate the record here.
- Throw
DataExceptiononly for unrecoverable filter failures; for ordinary "data fails predicate" cases, returnfalse.
- Return
-
getExpression
public LogicalExpression getExpression() -
getExpressionAsString
-
toString
-
hashCode
public int hashCode() -
equals
-