Top Description Interfaces Classes
[default module]

Package net.sf.ehcache.search.aggregator


This package contains classes for search aggregator functionality. Aggregators allow functions to be computed on cache entries selected by a search

Interface Summary

Modifier and TypeInterface and Description
public interface
Aggregator

An Aggregator describes a requested aggregation for a query and provides aggregator instances for execution

public interface
AggregatorInstance<
the runtime type of aggregation result
T
>

An AggregatorInstance takes input objects and computes an aggregate function from them.

Class Summary

Modifier and TypeClass and Description
public class
AggregatorException

Thrown if an Aggregator cannot complete.

public class
Aggregators

Helper class to construct the builtin aggregator types.

public class
Average

Compute the average (arithmetic mean) as a double

public class
Count

Counts the number of results

public class
Max<T>

Determine the maximum value

public class
Min<T>

Determine the minimum value

public class
Sum

Sums the results

Sum can be used with most numeric types