public final class BigIntegerAverageAggregator<I> extends AbstractAggregator<I,BigDecimal> implements IdentifiedDataSerializable
attributePath
Constructor and Description |
---|
BigIntegerAverageAggregator() |
BigIntegerAverageAggregator(String attributePath) |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(I entry)
Accumulates the given entries.
|
BigDecimal |
aggregate()
Returns the result of the aggregation.
|
void |
combine(Aggregator aggregator)
Incorporates the intermediary result of the given aggregator to this instance of the aggregator.
|
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
extract
onAccumulationFinished, onCombinationFinished
public BigIntegerAverageAggregator()
public BigIntegerAverageAggregator(String attributePath)
public void accumulate(I entry)
Aggregator
accumulate
in class Aggregator<I,BigDecimal>
entry
- input to accumulate.public void combine(Aggregator aggregator)
Aggregator
combine
in class Aggregator<I,BigDecimal>
aggregator
- aggregator providing intermediary results to be combined into the results of this aggregator.
The given aggregator has to be of the same class as the one that the method is being called on.public BigDecimal aggregate()
Aggregator
aggregate
in class Aggregator<I,BigDecimal>
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.