Class InsertRecordFieldsJoinStrategy

java.lang.Object
org.apache.nifi.processors.standard.enrichment.IndexCorrelatedJoinStrategy
org.apache.nifi.processors.standard.enrichment.InsertRecordFieldsJoinStrategy
All Implemented Interfaces:
RecordJoinStrategy

public class InsertRecordFieldsJoinStrategy extends IndexCorrelatedJoinStrategy
  • Field Details

  • 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:
      combineRecords in class IndexCorrelatedJoinStrategy
    • 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 record
      enrichmentRecord - the enrichment record
      incorporateEnrichmentSchema - 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

      protected RecordSchema createResultSchema(Record firstOriginalRecord, Record firstEnrichmentRecord)
      Specified by:
      createResultSchema in class IndexCorrelatedJoinStrategy