public class FilterFunction extends RecordPathSegment
A Filter Function is responsible for taking a RecordPathFilter and turning it into a function that is capable of being evaluated against a RecordPathEvaluationContext such that the return value is a Stream<FieldValue> whose values are booleans.
So while a RecordPathFilter would be evaluated against a RecordPathEvaluationContext and return a Stream of FieldValues representing all elements that match the filter, the FilterFunction would instead return a true/false for each element indicating whether or not it passes the filter.
| Modifier and Type | Field and Description |
|---|---|
private RecordPathFilter |
filter |
| Constructor and Description |
|---|
FilterFunction(String functionName,
RecordPathFilter filter,
boolean absolute) |
| Modifier and Type | Method and Description |
|---|---|
Stream<FieldValue> |
evaluate(RecordPathEvaluationContext context) |
equals, evaluate, evaluate, getPath, hashCode, isAbsolute, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompileprivate final RecordPathFilter filter
public FilterFunction(String functionName, RecordPathFilter filter, boolean absolute)
public Stream<FieldValue> evaluate(RecordPathEvaluationContext context)
evaluate in class RecordPathSegmentCopyright © 2023 Apache NiFi Project. All rights reserved.