Package com.macrofocus.treemap
Class AggregationFactory
- java.lang.Object
-
- com.macrofocus.treemap.AggregationFactory
-
public class AggregationFactory extends java.lang.Object
Factory class for accessing predefined aggregation schemes.
-
-
Field Summary
Fields Modifier and Type Field Description static Aggregation
AVERAGE_AGGREGATION
Aggregate values by averaging them.static Aggregation
COUNT_AGGREGATION
Aggregate values by counting them.static Aggregation
MAX_AGGREGATION
Aggregate values by finding the maximum value.static Aggregation
MIN_AGGREGATION
Aggregate values by finding the minimum value.static Aggregation
NONE_AGGREGATION
Aggregate values by always returning null.static Aggregation
SIZE_WEIGHTED_AGGREGATION
Aggregate values by averaging them.static Aggregation
STD_DEV_AGGREGATION
Aggregate values by computing the standard deviation.static Aggregation
SUM_AGGREGATION
Aggregate values by computing the sum.
-
Constructor Summary
Constructors Constructor Description AggregationFactory(Aggregation... entries)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Aggregation entry)
Aggregation
find(java.lang.String name)
Aggregation
get(java.lang.String name)
java.util.List<Aggregation>
getAggregations()
Aggregation
getDefault()
static AggregationFactory
getInstance()
-
-
-
Field Detail
-
NONE_AGGREGATION
public static final Aggregation NONE_AGGREGATION
Aggregate values by always returning null.
-
SUM_AGGREGATION
public static final Aggregation SUM_AGGREGATION
Aggregate values by computing the sum.
-
SIZE_WEIGHTED_AGGREGATION
public static final Aggregation SIZE_WEIGHTED_AGGREGATION
Aggregate values by averaging them.
-
AVERAGE_AGGREGATION
public static final Aggregation AVERAGE_AGGREGATION
Aggregate values by averaging them.
-
COUNT_AGGREGATION
public static final Aggregation COUNT_AGGREGATION
Aggregate values by counting them.
-
MIN_AGGREGATION
public static final Aggregation MIN_AGGREGATION
Aggregate values by finding the minimum value.
-
MAX_AGGREGATION
public static final Aggregation MAX_AGGREGATION
Aggregate values by finding the maximum value.
-
STD_DEV_AGGREGATION
public static final Aggregation STD_DEV_AGGREGATION
Aggregate values by computing the standard deviation.
-
-
Constructor Detail
-
AggregationFactory
public AggregationFactory(Aggregation... entries)
-
-
Method Detail
-
getInstance
public static AggregationFactory getInstance()
-
add
public void add(Aggregation entry)
-
getDefault
public Aggregation getDefault()
-
getAggregations
public java.util.List<Aggregation> getAggregations()
-
get
public Aggregation get(java.lang.String name)
-
find
public Aggregation find(java.lang.String name)
-
-