public class AggregationResult extends Object implements Result<AggregationResult>, IdentifiedDataSerializable
| Constructor and Description |
|---|
AggregationResult() |
AggregationResult(Aggregator aggregator) |
| Modifier and Type | Method and Description |
|---|---|
void |
combine(AggregationResult result) |
<R> Aggregator<?,R> |
getAggregator() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
getId()
Returns type identifier for this class.
|
Collection<Integer> |
getPartitionIds() |
void |
onCombineFinished() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setPartitionIds(Collection<Integer> partitionIds) |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public AggregationResult()
public AggregationResult(Aggregator aggregator)
public <R> Aggregator<?,R> getAggregator()
public Collection<Integer> getPartitionIds()
getPartitionIds in interface Result<AggregationResult>public void combine(AggregationResult result)
combine in interface Result<AggregationResult>public void onCombineFinished()
onCombineFinished in interface Result<AggregationResult>public void setPartitionIds(Collection<Integer> partitionIds)
setPartitionIds in interface Result<AggregationResult>public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.