private static class LookupRecord.LookupContext extends Object
| Modifier and Type | Field and Description |
|---|---|
private FlowFile |
flowFile |
private ComponentLog |
logger |
private Map<String,RecordPath> |
recordPathsByCoordinateKey |
private RecordPath |
resultRecordPath |
private ProcessSession |
session |
private RecordSetWriterFactory |
writerFactory |
private Map<Relationship,Tuple<FlowFile,RecordSetWriter>> |
writersByRelationship |
| Constructor and Description |
|---|
LookupContext(Map<String,RecordPath> recordPathsByCoordinateKey,
RecordPath resultRecordPath,
ProcessSession session,
FlowFile flowFile,
RecordSetWriterFactory writerFactory,
ComponentLog logger) |
| Modifier and Type | Method and Description |
|---|---|
RecordSetWriter |
getExistingRecordWriterForRelationship(Relationship relationship) |
FlowFile |
getFlowFileForRelationship(Relationship relationship) |
FlowFile |
getOriginalFlowFile() |
Map<String,RecordPath> |
getRecordPathsByCoordinateKey() |
RecordSetWriter |
getRecordWriterForRelationship(Relationship relationship,
RecordSchema schema) |
private Set<Relationship> |
getRelationshipsUsed() |
RecordPath |
getResultRecordPath() |
private final Map<String,RecordPath> recordPathsByCoordinateKey
private final RecordPath resultRecordPath
private final ProcessSession session
private final FlowFile flowFile
private final RecordSetWriterFactory writerFactory
private final ComponentLog logger
private final Map<Relationship,Tuple<FlowFile,RecordSetWriter>> writersByRelationship
public LookupContext(Map<String,RecordPath> recordPathsByCoordinateKey, RecordPath resultRecordPath, ProcessSession session, FlowFile flowFile, RecordSetWriterFactory writerFactory, ComponentLog logger)
public Map<String,RecordPath> getRecordPathsByCoordinateKey()
public RecordPath getResultRecordPath()
public FlowFile getOriginalFlowFile()
private Set<Relationship> getRelationshipsUsed()
public FlowFile getFlowFileForRelationship(Relationship relationship)
public RecordSetWriter getExistingRecordWriterForRelationship(Relationship relationship)
public RecordSetWriter getRecordWriterForRelationship(Relationship relationship, RecordSchema schema) throws IOException, SchemaNotFoundException
IOExceptionSchemaNotFoundExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.