Class MaxMerger

    • Method Detail

      • merge

        public Object merge​(Object previousValue,
                            Object currentValue)
        Keep the maximal value for the given field.
        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