mirror of https://github.com/apache/nifi.git
NIFI-9545 - Fix in-place replacement for LookupRecord processor
Signed-off-by: Joe Gresock <jgresock@gmail.com> This closes #5637.
This commit is contained in:
parent
bc2ba9537a
commit
d1599eebcf
|
@ -308,9 +308,9 @@ public class LookupRecord extends AbstractRouteRecord<Tuple<Map<String, RecordPa
|
||||||
private Set<Relationship> doInPlaceReplacement(Record record, FlowFile flowFile, ProcessContext context, Tuple<Map<String, RecordPath>, RecordPath> flowFileContext) {
|
private Set<Relationship> doInPlaceReplacement(Record record, FlowFile flowFile, ProcessContext context, Tuple<Map<String, RecordPath>, RecordPath> flowFileContext) {
|
||||||
final Map<String, RecordPath> recordPaths = flowFileContext.getKey();
|
final Map<String, RecordPath> recordPaths = flowFileContext.getKey();
|
||||||
final Map<String, Object> lookupCoordinates = new HashMap<>(recordPaths.size());
|
final Map<String, Object> lookupCoordinates = new HashMap<>(recordPaths.size());
|
||||||
|
final String coordinateKey = lookupService.getRequiredKeys().iterator().next();
|
||||||
|
|
||||||
for (final Map.Entry<String, RecordPath> entry : recordPaths.entrySet()) {
|
for (final Map.Entry<String, RecordPath> entry : recordPaths.entrySet()) {
|
||||||
final String coordinateKey = entry.getKey();
|
|
||||||
final RecordPath recordPath = entry.getValue();
|
final RecordPath recordPath = entry.getValue();
|
||||||
|
|
||||||
final RecordPathResult pathResult = recordPath.evaluate(record);
|
final RecordPathResult pathResult = recordPath.evaluate(record);
|
||||||
|
|
Loading…
Reference in New Issue