Class OverwriteMerger

  • All Implemented Interfaces:
    PartialUpsertMerger

    public class OverwriteMerger
    extends Object
    implements PartialUpsertMerger
    Merges 2 records and returns the merged record. Overwrite the existing value for the given field. Then return the merged record.
    • Method Detail

      • merge

        public Object merge​(Object previousValue,
                            Object currentValue)
        Description copied from interface: PartialUpsertMerger
        Handle partial upsert merge.
        Specified by:
        merge in interface PartialUpsertMerger
        Parameters:
        previousValue - the value of given field from the last derived full record during ingestion.
        currentValue - the value of given field from the new consumed record.
        Returns:
        a new value after merge