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()
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 © 2018 Hazelcast, Inc.. All Rights Reserved.