Class RecordListLookup

java.lang.Object
com.northconcepts.datapipeline.transform.lookup.Lookup
com.northconcepts.datapipeline.transform.lookup.RecordListLookup

public class RecordListLookup extends Lookup
An in-memory lookup implementation that performs joins using a RecordList. Records are indexed by parameter fields for fast lookup during join operations. Supports optional filtering of result fields returned from the lookup.
See Also:
  • Constructor Details

    • RecordListLookup

      public RecordListLookup(RecordList recordList, FieldList parameterFields)
      Creates a RecordListLookup that returns all fields from matching records.
      Parameters:
      recordList - the list of records to use for lookups
      parameterFields - the fields to use as lookup keys
    • RecordListLookup

      public RecordListLookup(RecordList recordList, FieldList parameterFields, FieldList resultFields)
      Creates a RecordListLookup that returns selected fields from matching records.
      Parameters:
      recordList - the list of records to use for lookups
      parameterFields - the fields to use as lookup keys
      resultFields - the fields to return in lookup results, or null to return all fields
  • Method Details

    • get

      public RecordList get(Object... keys)
      Retrieves records matching the specified lookup keys.
      Specified by:
      get in class Lookup
      Parameters:
      keys - the values to match against the parameter fields
      Returns:
      a RecordList containing all matching records, or null if no matches found
    • toString

      public String toString()
      Overrides:
      toString in class Object