use of org.apache.nifi.record.path.util.RecordPathCache in project nifi by apache.
the class PutElasticsearchHttpRecord method setup.
@OnScheduled
public void setup(ProcessContext context) {
super.setup(context);
recordPathCache = new RecordPathCache(10);
}
use of org.apache.nifi.record.path.util.RecordPathCache in project nifi by apache.
the class UpdateRecord method createRecordPaths.
@OnScheduled
public void createRecordPaths(final ProcessContext context) {
recordPathCache = new RecordPathCache(context.getProperties().size() * 2);
final List<String> recordPaths = new ArrayList<>(context.getProperties().size() - 2);
for (final PropertyDescriptor property : context.getProperties().keySet()) {
if (property.isDynamic()) {
recordPaths.add(property.getName());
}
}
this.recordPaths = recordPaths;
}
Aggregations