Closed elenacliu closed 1 year ago
I'm wondering the difference between AccumulatorSupplier.java and AggregateSupplier.java, because it seems that AggregateSupplier.java can do what AccumulatorSupplier.java do.
AccumulatorSupplier.java
AggregateSupplier.java
The different is the param of construction: Accumulator separate the adding data from getting the aggregate result. It has two phase.
I'm wondering the difference between
AccumulatorSupplier.java
andAggregateSupplier.java
, because it seems thatAggregateSupplier.java
can do whatAccumulatorSupplier.java
do.