public class AggregatorUtil extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
STRING_SEPARATOR |
Constructor and Description |
---|
AggregatorUtil() |
Modifier and Type | Method and Description |
---|---|
static Pair<List<AggregatorFactory>,List<PostAggregator>> |
condensedAggregators(List<AggregatorFactory> aggList,
List<PostAggregator> postAggList,
String metric) |
static FloatColumnSelector |
getFloatColumnSelector(ColumnSelectorFactory metricFactory,
String fieldName,
String fieldExpression,
float nullValue) |
static LongColumnSelector |
getLongColumnSelector(ColumnSelectorFactory metricFactory,
String fieldName,
String fieldExpression,
long nullValue) |
static List<PostAggregator> |
pruneDependentPostAgg(List<PostAggregator> postAggregatorList,
String postAggName)
returns the list of dependent postAggregators that should be calculated in order to calculate given postAgg
|
public static final byte STRING_SEPARATOR
public static List<PostAggregator> pruneDependentPostAgg(List<PostAggregator> postAggregatorList, String postAggName)
postAggregatorList
- List of postAggregator, there is a restriction that the list should be in an order
such that all the dependencies of any given aggregator should occur before that aggregator.
See AggregatorUtilTest.testOutOfOrderPruneDependentPostAgg for example.postAggName
- name of the postAgg on which dependency is to be calculatedpublic static Pair<List<AggregatorFactory>,List<PostAggregator>> condensedAggregators(List<AggregatorFactory> aggList, List<PostAggregator> postAggList, String metric)
public static FloatColumnSelector getFloatColumnSelector(ColumnSelectorFactory metricFactory, String fieldName, String fieldExpression, float nullValue)
public static LongColumnSelector getLongColumnSelector(ColumnSelectorFactory metricFactory, String fieldName, String fieldExpression, long nullValue)
Copyright © 2011–2017. All rights reserved.