use of org.apache.nifi.record.path.StandardRecordPathEvaluationContext in project nifi by apache.
the class RecordPathSegment method evaluate.
@Override
public final RecordPathResult evaluate(final Record record) {
final RecordPathEvaluationContext context = new StandardRecordPathEvaluationContext(record);
final Stream<FieldValue> selectedFields = evaluate(context);
return new RecordPathResult() {
@Override
public String getPath() {
return RecordPathSegment.this.getPath();
}
@Override
public Stream<FieldValue> getSelectedFields() {
return selectedFields;
}
};
}
use of org.apache.nifi.record.path.StandardRecordPathEvaluationContext in project nifi by apache.
the class RecordPathSegment method evaluate.
@Override
public final RecordPathResult evaluate(final Record record, final FieldValue contextNode) {
final RecordPathEvaluationContext context = new StandardRecordPathEvaluationContext(record);
context.setContextNode(contextNode);
final Stream<FieldValue> selectedFields = evaluate(context);
return new RecordPathResult() {
@Override
public String getPath() {
return RecordPathSegment.this.getPath();
}
@Override
public Stream<FieldValue> getSelectedFields() {
return selectedFields;
}
};
}
Aggregations