GigaSpaces XAP 10.0.1 API

com.gigaspaces.query.aggregators
Class AggregationSet

java.lang.Object
  extended by com.gigaspaces.query.aggregators.AggregationSet

public class AggregationSet
extends Object

The set of aggregations to run for matches entries of the aggregate operation.

Since:
10.0
Author:
Niv Ingberg

Constructor Summary
AggregationSet()
           
 
Method Summary
 AggregationSet add(SpaceEntriesAggregator aggregator)
           
 AggregationSet average(String path)
          Calculates average of path values of matching entries.
 AggregationSet count()
          Counts matching entries.
 AggregationSet count(String path)
          Counts matching entries whose path is not null.
 AggregationSet groupBy(GroupByAggregator aggregator)
           
 AggregationSet maxEntry(String path)
          Returns entry with maximum value of path of matching entries.
 AggregationSet maxValue(String path)
          Returns maximum value of path of matching entries.
 AggregationSet minEntry(String path)
          Returns entry with minimum value of path of matching entries.
 AggregationSet minValue(String path)
          Returns minimum value of path of matching entries.
 AggregationSet sum(String path)
          Sums values of paths of matching entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregationSet

public AggregationSet()
Method Detail

add

public AggregationSet add(SpaceEntriesAggregator aggregator)

count

public AggregationSet count()
Counts matching entries.


count

public AggregationSet count(String path)
Counts matching entries whose path is not null.

Parameters:
path - Path to inspect

sum

public AggregationSet sum(String path)
Sums values of paths of matching entries.

Parameters:
path - Path to sum (must be a numeric type)

average

public AggregationSet average(String path)
Calculates average of path values of matching entries.

Parameters:
path - Path to average (must be a numeric type)

maxValue

public AggregationSet maxValue(String path)
Returns maximum value of path of matching entries.

Parameters:
path - Path to inspect (must be a comparable type)
See Also:
maxEntry(String)

maxEntry

public AggregationSet maxEntry(String path)
Returns entry with maximum value of path of matching entries.

Parameters:
path - Path to inspect (must be a comparable type)
See Also:
maxValue(String)

minValue

public AggregationSet minValue(String path)
Returns minimum value of path of matching entries.

Parameters:
path - Path to inspect (must be a comparable type)
See Also:
minEntry(String)

minEntry

public AggregationSet minEntry(String path)
Returns entry with minimum value of path of matching entries.

Parameters:
path - Path to inspect (must be a comparable type)
See Also:
minEntry(String)

groupBy

public AggregationSet groupBy(GroupByAggregator aggregator)

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.