GigaSpaces XAP 10.0.1 API

com.gigaspaces.query.aggregators
Class GroupByAggregator

java.lang.Object
  extended by com.gigaspaces.query.aggregators.SpaceEntriesAggregator<GroupByResult>
      extended by 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

Constructor Summary
GroupByAggregator()
          Required for Externalizable
 
Method Summary
 void aggregate(SpaceEntriesAggregatorContext context)
           
 void aggregateIntermediateResult(GroupByResult partitionResult)
           
 String getDefaultAlias()
           
 Object getFinalResult()
           
 GroupByResult getIntermediateResult()
           
protected  List<SpaceEntriesAggregator> getSelectAggregators()
           
 GroupByAggregator groupBy(String... paths)
           
 GroupByAggregator having(GroupByFilter filter)
           
 void readExternal(ObjectInput in)
           
 GroupByAggregator select(SpaceEntriesAggregator... aggregators)
           
 GroupByAggregator selectAverage(String path)
           
 GroupByAggregator selectCount()
           
 GroupByAggregator selectCount(String path)
           
 GroupByAggregator selectMaxEntry(String path)
           
 GroupByAggregator selectMaxValue(String path)
           
 GroupByAggregator selectMinEntry(String path)
           
 GroupByAggregator selectMinValue(String path)
           
 GroupByAggregator selectSum(String path)
           
protected  void setRawEntryConverter(com.gigaspaces.internal.query.RawEntryConverter rawEntryConverter)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class com.gigaspaces.query.aggregators.SpaceEntriesAggregator
as, clone, getAlias, toObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupByAggregator

public GroupByAggregator()
Required for Externalizable

Method Detail

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

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.