ehcache

net.sf.ehcache.search.aggregator
Class Aggregators

java.lang.Object
  extended by net.sf.ehcache.search.aggregator.Aggregators

public final class Aggregators
extends Object

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

Method Summary
static Aggregator average(Attribute<?> attribute)
          Construct an average value aggregator
static Aggregator count()
          Construct a counting aggregator
static Aggregator max(Attribute<?> attribute)
          Construct a maximum value aggregator
static Aggregator min(Attribute<?> attribute)
          Construct a minimum value aggregator
static Aggregator sum(Attribute<?> attribute)
          Construct a sum aggregator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

min

public static Aggregator min(Attribute<?> attribute)
Construct a minimum value aggregator

Parameters:
attribute -
Returns:
min aggregator

max

public static Aggregator max(Attribute<?> attribute)
Construct a maximum value aggregator

Parameters:
attribute -
Returns:
max aggregator

average

public static Aggregator average(Attribute<?> attribute)
Construct an average value aggregator

Parameters:
attribute -
Returns:
average aggregator

sum

public static Aggregator sum(Attribute<?> attribute)
Construct a sum aggregator

Parameters:
attribute -
Returns:
sum aggregator

count

public static Aggregator count()
Construct a counting aggregator

Returns:
count aggregator

ehcache

Copyright 2001-2017, Terracotta, Inc.