- Type Parameters:
T - The type of object that will be returned for the lookup.
- All Implemented Interfaces:
- Destroyable, PipelineConfigurable, StageLifecycle<TransformContext>, SubmitterLifecycle<StageSubmitterContext>, Transformation<co.cask.cdap.api.data.format.StructuredRecord,co.cask.cdap.api.data.format.StructuredRecord>
public class LookupTransform<T>
extends Transform<co.cask.cdap.api.data.format.StructuredRecord,co.cask.cdap.api.data.format.StructuredRecord>
Transform used to test lookup functionality. Takes a field name whose value will be used as the key in a lookup.
If the lookup is from a Table, the value of the lookup will be a Row, and the columns of the Row will be added as
individual fields of the output StructuredRecord.
If the lookup is from a KeyValueTable, the value of the lookup will be a String, and the 'destinationField' will
be used to determine where in the output StructuredRecord to place the value.