Package com.northconcepts.datapipeline.foundations.datamapping
package com.northconcepts.datapipeline.foundations.datamapping
Model and execute source-target data mapping using expressions and functions.
-
ClassDescriptionBase class for field mappings that set one target field, with an optional condition, default value expression and type conversion.The top-level abstraction to map a set of values from source to target using the DataPipeline Expression Language or custom implementation.Applies a
DataMappingto records from aDataReaderFactoryand pages through the mapped results in memory, keeping a sample of the records that failed.The expression context used by aDataMapping, exposing thesource,target,previousSourceandpreviousTargetcontexts to expressions by name.Base class for the data mapping classes:DataMappingParts, problems and results.Base class for the elements of a data mapping -- theDataMappingitself and its field mappings -- thatDataMappingProblems refer to.The kinds ofDataMappingPartthatDataMappingProblems can refer to.Describes an issue found when checking a data mapping and theDataMappingPartit was found in.Implemented by data mapping elements that can check themselves, and optionally their children, forDataMappingProblems.Maps each record read from a nested reader with aDataMappingand returns the target record instead; records failing a mapping condition are skipped.The outcome of mapping one record with aDataMapping: the target record plus any failed condition, field mapping exceptions and schema validation results.Static checks that data mapping parts use to addDataMappingProblems to a list.Maps each record with aDataMappingand writes the target record to a nested writer instead; records failing a mapping condition are not written.A field mapping that sets one target field to the result of an expression evaluated in aDataMappingExpressionContext.A mapping that sets one field of aDataMapping's target record.