Class ProxyLookup
java.lang.Object
com.northconcepts.datapipeline.transform.lookup.Lookup
com.northconcepts.datapipeline.transform.lookup.ProxyLookup
- Direct Known Subclasses:
CachedLookup
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose()Called when theLookupTransformerusing this lookup is closed; override to release resources.Returns the records that match the supplied composite lookup key.protected voidopen()Called when theLookupTransformerusing this lookup is opened; override to acquire resources.setNestedLookup(Lookup nestedLookup)
-
Constructor Details
-
ProxyLookup
-
-
Method Details
-
getNestedLookup
-
setNestedLookup
-
get
Description copied from class:LookupReturns 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
RecordListwhen no match is found.nullis also tolerated byLookupTransformerfor 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.
- Called once per source record by
-
open
protected void open()Description copied from class:LookupCalled when theLookupTransformerusing this lookup is opened; override to acquire resources. -
close
protected void close()Description copied from class:LookupCalled when theLookupTransformerusing this lookup is closed; override to release resources.
-