Class BasicLookup
java.lang.Object
com.northconcepts.datapipeline.transform.lookup.Lookup
com.northconcepts.datapipeline.transform.lookup.BasicLookup
An in-memory
Lookup filled with add calls, where each key maps to one or more result records.-
Constructor Summary
ConstructorsConstructorDescriptionBasicLookup(FieldList resultFieldNames) Creates an empty lookup whose result records have the given fields, filled in order from the values passed toadd. -
Method Summary
Modifier and TypeMethodDescriptionAdds a result record for the composite key withvalueas its only field; requires exactly one result field.Adds a result record for the composite key with one value per result field, in order.Adds a result record for the key withvalueas its only field; requires exactly one result field.Adds a result record for the key with one value per result field, in order.Returns the records that match the supplied composite lookup key.toString()
-
Constructor Details
-
BasicLookup
Creates an empty lookup whose result records have the given fields, filled in order from the values passed toadd.
-
-
Method Details
-
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
-
add
Adds a result record for the key withvalueas its only field; requires exactly one result field. -
add
Adds a result record for the key with one value per result field, in order. -
add
Adds a result record for the composite key withvalueas its only field; requires exactly one result field. -
add
Adds a result record for the composite key with one value per result field, in order. -
toString
-