java.lang.Object
com.northconcepts.datapipeline.transform.lookup.Lookup
com.northconcepts.datapipeline.transform.lookup.ProxyLookup
Direct Known Subclasses:
CachedLookup

public class ProxyLookup extends Lookup
Abstract super-class for obtaining records from another Lookup, possibly transforming them along the way. The only method that a subclass should implement is get(Object...).
  • Constructor Details

    • ProxyLookup

      public ProxyLookup(Lookup nestedLookup)
  • Method Details

    • getNestedLookup

      public Lookup getNestedLookup()
    • setNestedLookup

      public ProxyLookup setNestedLookup(Lookup nestedLookup)
    • get

      public RecordList get(Object... args)
      Description copied from class: Lookup
      Returns the records that match the supplied composite lookup key.

      Contract for subclasses (see also docs/authoring/Lookup.md):

      • Called once per source record by LookupTransformer; keep it fast.
      • Return an empty RecordList when no match is found. null is also tolerated by LookupTransformer for backward compatibility, but new code should prefer an empty list for clearer semantics.
      • Do not mutate the supplied keys; they are owned by the caller.
      Specified by:
      get in class Lookup
    • open

      protected void open()
      Description copied from class: Lookup
      Called when the LookupTransformer using this lookup is opened; override to acquire resources.
      Overrides:
      open in class Lookup
    • close

      protected void close()
      Description copied from class: Lookup
      Called when the LookupTransformer using this lookup is closed; override to release resources.
      Overrides:
      close in class Lookup