public class InsertRecordFieldsJoinStrategy extends IndexCorrelatedJoinStrategy
| Modifier and Type | Field and Description |
|---|---|
private RecordPath |
recordPath |
private static RecordPathCache |
recordPathCache |
| Constructor and Description |
|---|
InsertRecordFieldsJoinStrategy(ComponentLog logger,
String insertionRecordPath) |
| Modifier and Type | Method and Description |
|---|---|
private Record |
combineRecords(Record originalRecord,
Record enrichmentRecord,
boolean incorporateEnrichmentSchema)
Creates a single record that combines both the original record and the enrichment record
|
protected Record |
combineRecords(Record originalRecord,
Record enrichmentRecord,
RecordSchema resultSchema) |
protected RecordSchema |
createResultSchema(Record firstOriginalRecord,
Record firstEnrichmentRecord) |
getLogger, joinprivate static final RecordPathCache recordPathCache
private final RecordPath recordPath
public InsertRecordFieldsJoinStrategy(ComponentLog logger, String insertionRecordPath)
protected Record combineRecords(Record originalRecord, Record enrichmentRecord, RecordSchema resultSchema)
combineRecords in class IndexCorrelatedJoinStrategyprivate Record combineRecords(Record originalRecord, Record enrichmentRecord, boolean incorporateEnrichmentSchema)
originalRecord - the original recordenrichmentRecord - the enrichment recordincorporateEnrichmentSchema - whether or not to update the originalRecord's schema to include the fields of the enrichmentRecord. Doing so can be
expensive and is not necessary if the Record's schema will not be used.protected RecordSchema createResultSchema(Record firstOriginalRecord, Record firstEnrichmentRecord)
createResultSchema in class IndexCorrelatedJoinStrategyCopyright © 2023 Apache NiFi Project. All rights reserved.