Class Lookup
java.lang.Object
com.northconcepts.datapipeline.transform.lookup.Lookup
- Direct Known Subclasses:
BasicLookup,DataReaderLookup,JdbcLookup,ProxyLookup,RecordListLookup
Searches for data in another source to merge with each record passing through this lookup's
transformer -- the streaming version of a join.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose()Called when theLookupTransformerusing this lookup is closed; override to release resources.abstract RecordListReturns the records that match the supplied composite lookup key.Returns the records matching the list's values as a composite key; a null or empty list is passed on as a null array.protected voidopen()Called when theLookupTransformerusing this lookup is opened; override to acquire resources.
-
Constructor Details
-
Lookup
public Lookup()
-
-
Method Details
-
open
protected void open()Called when theLookupTransformerusing this lookup is opened; override to acquire resources. -
close
protected void close()Called when theLookupTransformerusing this lookup is closed; override to release resources. -
get
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
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
-
get
Returns the records matching the list's values as a composite key; a null or empty list is passed on as a null array.
-