Class AppendMerger

  • All Implemented Interfaces:
    PartialUpsertMerger

    public class AppendMerger
    extends Object
    implements PartialUpsertMerger
    Merges 2 records and returns the merged record. Append the new value from incoming row to the existing value from multi-value field. Then return the merged record. Append merger allows duplicated records in the multi-value field.
    • Method Detail

      • merge

        public Object merge​(Object previousValue,
                            Object currentValue)
        Append the new value from incoming row to the given multi-value field of previous record.
        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