Package com.gigaspaces.query.aggregators
Class GroupByAggregator
java.lang.Object
com.gigaspaces.query.aggregators.SpaceEntriesAggregator<GroupByResult>
com.gigaspaces.query.aggregators.GroupByAggregator
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable,Cloneable
public class GroupByAggregator
extends SpaceEntriesAggregator<GroupByResult>
implements SmartExternalizable
- Since:
- 10.0
- Author:
- Niv Ingberg
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaggregate(SpaceEntriesAggregatorContext context) voidaggregateIntermediateResult(GroupByResult partitionResult) String[]protected List<SpaceEntriesAggregator>having(GroupByFilter filter) voidselect(SpaceEntriesAggregator... aggregators) selectAverage(String path) selectCount(String path) selectMaxEntry(String path) selectMaxValue(String path) selectMinEntry(String path) selectMinValue(String path) protected voidsetRawEntryConverter(RawEntryConverter rawEntryConverter) voidMethods inherited from class com.gigaspaces.query.aggregators.SpaceEntriesAggregator
as, clone, getAlias, getSQLQuery, handleIntermediateResultOfDbStorage, handleIntermediateResultOfMemoryStorage, isIndexUsed, setAggregatorContext, skipFullScanSupported, skipProcessedUidStore, toObjectMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
GroupByAggregator
public GroupByAggregator()Required for Externalizable
-
-
Method Details
-
getDefaultAlias
- Specified by:
getDefaultAliasin classSpaceEntriesAggregator<GroupByResult>
-
groupBy
-
having
-
getSelectAggregators
-
select
-
selectCount
-
selectCount
-
selectSum
-
selectAverage
-
selectMaxValue
-
selectMaxEntry
-
selectMinValue
-
selectMinEntry
-
aggregate
- Specified by:
aggregatein classSpaceEntriesAggregator<GroupByResult>
-
aggregateIntermediateResult
- Specified by:
aggregateIntermediateResultin classSpaceEntriesAggregator<GroupByResult>
-
getIntermediateResult
- Specified by:
getIntermediateResultin classSpaceEntriesAggregator<GroupByResult>
-
getFinalResult
- Overrides:
getFinalResultin classSpaceEntriesAggregator<GroupByResult>
-
setRawEntryConverter
- Overrides:
setRawEntryConverterin classSpaceEntriesAggregator<GroupByResult>
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
getAggregators
-
getGroupByPaths
-