private class LookupRecord.RecordPathReplacementStrategy extends Object implements LookupRecord.ReplacementStrategy
| Modifier and Type | Field and Description |
|---|---|
private com.github.benmanes.caffeine.cache.Cache<Map<String,Object>,Optional<?>> |
cache |
private int |
lookupCount |
| Constructor and Description |
|---|
RecordPathReplacementStrategy(ProcessContext context) |
| Modifier and Type | Method and Description |
|---|---|
private void |
applyLookupResult(Record record,
ProcessContext context,
LookupRecord.LookupContext lookupContext,
Object lookupValue) |
private Map<String,Object> |
createLookupCoordinates(Record record,
LookupRecord.LookupContext lookupContext,
boolean logIfNotMatched) |
RecordSchema |
determineResultSchema(RecordReaderFactory readerFactory,
RecordSetWriterFactory writerFactory,
ProcessContext context,
ProcessSession session,
FlowFile flowFile,
LookupRecord.LookupContext lookupContext) |
int |
getLookupCount() |
Set<Relationship> |
lookup(Record record,
ProcessContext context,
LookupRecord.LookupContext lookupContext) |
public RecordPathReplacementStrategy(ProcessContext context)
public Set<Relationship> lookup(Record record, ProcessContext context, LookupRecord.LookupContext lookupContext)
lookup in interface LookupRecord.ReplacementStrategyprivate void applyLookupResult(Record record, ProcessContext context, LookupRecord.LookupContext lookupContext, Object lookupValue)
public RecordSchema determineResultSchema(RecordReaderFactory readerFactory, RecordSetWriterFactory writerFactory, ProcessContext context, ProcessSession session, FlowFile flowFile, LookupRecord.LookupContext lookupContext) throws IOException, SchemaNotFoundException, MalformedRecordException, LookupFailureException
determineResultSchema in interface LookupRecord.ReplacementStrategyIOExceptionSchemaNotFoundExceptionMalformedRecordExceptionLookupFailureExceptionprivate Map<String,Object> createLookupCoordinates(Record record, LookupRecord.LookupContext lookupContext, boolean logIfNotMatched)
public int getLookupCount()
getLookupCount in interface LookupRecord.ReplacementStrategyCopyright © 2023 Apache NiFi Project. All rights reserved.