com.gigaspaces.query.aggregators
Class GroupByAggregator
java.lang.Object
com.gigaspaces.query.aggregators.SpaceEntriesAggregator<GroupByResult>
com.gigaspaces.query.aggregators.GroupByAggregator
- All Implemented Interfaces:
- Externalizable, Serializable, Cloneable
public class GroupByAggregator
- extends SpaceEntriesAggregator<GroupByResult>
- implements Externalizable
- Since:
- 10.0
- Author:
- Niv Ingberg
- See Also:
- Serialized Form
GroupByAggregator
public GroupByAggregator()
- Required for Externalizable
getDefaultAlias
public String getDefaultAlias()
- Specified by:
getDefaultAlias
in class SpaceEntriesAggregator<GroupByResult>
groupBy
public GroupByAggregator groupBy(String... paths)
having
public GroupByAggregator having(GroupByFilter filter)
getSelectAggregators
protected List<SpaceEntriesAggregator> getSelectAggregators()
select
public GroupByAggregator select(SpaceEntriesAggregator... aggregators)
selectCount
public GroupByAggregator selectCount()
selectCount
public GroupByAggregator selectCount(String path)
selectSum
public GroupByAggregator selectSum(String path)
selectAverage
public GroupByAggregator selectAverage(String path)
selectMaxValue
public GroupByAggregator selectMaxValue(String path)
selectMaxEntry
public GroupByAggregator selectMaxEntry(String path)
selectMinValue
public GroupByAggregator selectMinValue(String path)
selectMinEntry
public GroupByAggregator selectMinEntry(String path)
aggregate
public void aggregate(SpaceEntriesAggregatorContext context)
- Specified by:
aggregate
in class SpaceEntriesAggregator<GroupByResult>
aggregateIntermediateResult
public void aggregateIntermediateResult(GroupByResult partitionResult)
- Specified by:
aggregateIntermediateResult
in class SpaceEntriesAggregator<GroupByResult>
getIntermediateResult
public GroupByResult getIntermediateResult()
- Specified by:
getIntermediateResult
in class SpaceEntriesAggregator<GroupByResult>
getFinalResult
public Object getFinalResult()
- Overrides:
getFinalResult
in class SpaceEntriesAggregator<GroupByResult>
setRawEntryConverter
protected void setRawEntryConverter(com.gigaspaces.internal.query.RawEntryConverter rawEntryConverter)
- Overrides:
setRawEntryConverter
in class SpaceEntriesAggregator<GroupByResult>
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal
in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal
in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Copyright © GigaSpaces.