Class InsertRecordFieldsJoinStrategy
java.lang.Object
org.apache.nifi.processors.standard.enrichment.IndexCorrelatedJoinStrategy
org.apache.nifi.processors.standard.enrichment.InsertRecordFieldsJoinStrategy
- All Implemented Interfaces:
RecordJoinStrategy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInsertRecordFieldsJoinStrategy(org.apache.nifi.logging.ComponentLog logger, String insertionRecordPath) -
Method Summary
Modifier and TypeMethodDescriptionprivate RecordcombineRecords(Record originalRecord, Record enrichmentRecord, boolean incorporateEnrichmentSchema) Creates a single record that combines both the original record and the enrichment recordprotected RecordcombineRecords(Record originalRecord, Record enrichmentRecord, RecordSchema resultSchema) protected RecordSchemacreateResultSchema(Record firstOriginalRecord, Record firstEnrichmentRecord) Methods inherited from class org.apache.nifi.processors.standard.enrichment.IndexCorrelatedJoinStrategy
getLogger, join
-
Field Details
-
recordPathCache
-
recordPath
-
-
Constructor Details
-
InsertRecordFieldsJoinStrategy
public InsertRecordFieldsJoinStrategy(org.apache.nifi.logging.ComponentLog logger, String insertionRecordPath)
-
-
Method Details
-
combineRecords
protected Record combineRecords(Record originalRecord, Record enrichmentRecord, RecordSchema resultSchema) - Specified by:
combineRecordsin classIndexCorrelatedJoinStrategy
-
combineRecords
private Record combineRecords(Record originalRecord, Record enrichmentRecord, boolean incorporateEnrichmentSchema) Creates a single record that combines both the original record and the enrichment record- Parameters:
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.- Returns:
- the combined record
-
createResultSchema
- Specified by:
createResultSchemain classIndexCorrelatedJoinStrategy
-