Top Description Constructors Methods
net.sf.ehcache.search.aggregator

public final Class Aggregators

extends Object
Class Inheritance
Imports
net.sf.ehcache.search.Attribute

Helper class to construct the builtin aggregator types. These methods can be statically imported to make query building look better in source code
Author
teck

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Aggregator

Returns:

average aggregator
average
(final Attribute<?> attribute)

Construct an average value aggregator

public static Aggregator

Returns:

count aggregator
count
()

Construct a counting aggregator

public static Aggregator

Returns:

max aggregator
max
(final Attribute<?> attribute)

Construct a maximum value aggregator

public static Aggregator

Returns:

min aggregator
min
(final Attribute<?> attribute)

Construct a minimum value aggregator

public static Aggregator

Returns:

sum aggregator
sum
(final Attribute<?> attribute)

Construct a sum aggregator

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Aggregatorsback to summary
private Aggregators()

Method Detail

averageback to summary
public static Aggregator average(final Attribute<?> attribute)

Construct an average value aggregator

Returns:Aggregator

average aggregator

countback to summary
public static Aggregator count()

Construct a counting aggregator

Returns:Aggregator

count aggregator

maxback to summary
public static Aggregator max(final Attribute<?> attribute)

Construct a maximum value aggregator

Returns:Aggregator

max aggregator

minback to summary
public static Aggregator min(final Attribute<?> attribute)

Construct a minimum value aggregator

Returns:Aggregator

min aggregator

sumback to summary
public static Aggregator sum(final Attribute<?> attribute)

Construct a sum aggregator

Returns:Aggregator

sum aggregator