Class IncrementMerger
- java.lang.Object
-
- org.apache.pinot.segment.local.upsert.merger.IncrementMerger
-
- All Implemented Interfaces:
PartialUpsertMerger
public class IncrementMerger extends Object implements PartialUpsertMerger
Merges 2 records and returns the merged record. Add the new value from incoming row to the existing value from numeric field. Then return the merged record.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectmerge(Object previousValue, Object currentValue)Increment the new value from incoming row to the given field of previous record.
-
-
-
Method Detail
-
merge
public Object merge(Object previousValue, Object currentValue)
Increment the new value from incoming row to the given field of previous record.- Specified by:
mergein interfacePartialUpsertMerger- 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
-
-