Interface ValueAggregator<E>
- All Known Subinterfaces:
ValueAggregator<E>
- All Known Implementing Classes:
DoubleValueSum,DoubleValueSum,LongValueMax,LongValueMax,LongValueMin,LongValueMin,LongValueSum,LongValueSum,StringValueMax,StringValueMax,StringValueMin,StringValueMin,UniqValueCount,UniqValueCount,ValueHistogram,ValueHistogram
@Public
@Stable
public interface ValueAggregator<E>
This interface defines the minimal protocol for value aggregators.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddNextValue(Object val) add a value to the aggregatorvoidreset()reset the aggregator
-
Method Details
-
addNextValue
add a value to the aggregator- Parameters:
val- the value to be added
-
reset
void reset()reset the aggregator -
getReport
String getReport()- Returns:
- the string representation of the agregator
-
getCombinerOutput
- Returns:
- an array of values as the outputs of the combiner.
-