V
- Type of values to be aggregatedA
- Type of object which stores objects as they are being aggregatedpublic class LAggregator<V,A> extends Aggregators.SimpleAggregator<V>
Constructor and Description |
---|
LAggregator(SSupplier<A> initialSupplier,
SBiFunction<A,V,A> combineFn,
SFunction<A,Iterable<V>> outputFn) |
Modifier and Type | Method and Description |
---|---|
void |
reset()
Clears the internal state of this Aggregator and prepares it for the
values associated with the next key.
|
Iterable<V> |
results()
Returns the current aggregated state of this instance.
|
void |
update(V v)
Incorporate the given value into the aggregate state maintained by this
instance.
|
initialize
public void reset()
Aggregator
public void update(V v)
Aggregator
v
- The value to add to the aggregated statepublic Iterable<V> results()
Aggregator
Copyright © 2016 The Apache Software Foundation. All rights reserved.