public class AggregatorUtil extends Object
| Constructor and Description |
|---|
AggregatorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static io.druid.java.util.common.Pair<List<AggregatorFactory>,List<PostAggregator>> |
condensedAggregators(List<AggregatorFactory> aggList,
List<PostAggregator> postAggList,
String metric) |
static DoubleColumnSelector |
getDoubleColumnSelector(ColumnSelectorFactory metricFactory,
ExprMacroTable macroTable,
String fieldName,
String fieldExpression,
double nullValue) |
static FloatColumnSelector |
getFloatColumnSelector(ColumnSelectorFactory metricFactory,
ExprMacroTable macroTable,
String fieldName,
String fieldExpression,
float nullValue) |
static LongColumnSelector |
getLongColumnSelector(ColumnSelectorFactory metricFactory,
ExprMacroTable macroTable,
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 final byte COUNT_CACHE_TYPE_ID
public static final byte LONG_SUM_CACHE_TYPE_ID
public static final byte DOUBLE_SUM_CACHE_TYPE_ID
public static final byte DOUBLE_MAX_CACHE_TYPE_ID
public static final byte DOUBLE_MIN_CACHE_TYPE_ID
public static final byte HYPER_UNIQUE_CACHE_TYPE_ID
public static final byte JS_CACHE_TYPE_ID
public static final byte HIST_CACHE_TYPE_ID
public static final byte CARD_CACHE_TYPE_ID
public static final byte FILTERED_AGG_CACHE_TYPE_ID
public static final byte LONG_MAX_CACHE_TYPE_ID
public static final byte LONG_MIN_CACHE_TYPE_ID
public static final byte FLOAT_SUM_CACHE_TYPE_ID
public static final byte FLOAT_MAX_CACHE_TYPE_ID
public static final byte FLOAT_MIN_CACHE_TYPE_ID
public static final byte SKETCH_MERGE_CACHE_TYPE_ID
public static final byte DISTINCT_COUNT_CACHE_KEY
public static final byte FLOAT_LAST_CACHE_TYPE_ID
public static final byte APPROX_HIST_CACHE_TYPE_ID
public static final byte APPROX_HIST_FOLDING_CACHE_TYPE_ID
public static final byte DOUBLE_FIRST_CACHE_TYPE_ID
public static final byte DOUBLE_LAST_CACHE_TYPE_ID
public static final byte FLOAT_FIRST_CACHE_TYPE_ID
public static final byte LONG_FIRST_CACHE_TYPE_ID
public static final byte LONG_LAST_CACHE_TYPE_ID
public static final byte TIMESTAMP_CACHE_TYPE_ID
public static final byte VARIANCE_CACHE_TYPE_ID
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 io.druid.java.util.common.Pair<List<AggregatorFactory>,List<PostAggregator>> condensedAggregators(List<AggregatorFactory> aggList, List<PostAggregator> postAggList, String metric)
public static FloatColumnSelector getFloatColumnSelector(ColumnSelectorFactory metricFactory, ExprMacroTable macroTable, String fieldName, String fieldExpression, float nullValue)
public static LongColumnSelector getLongColumnSelector(ColumnSelectorFactory metricFactory, ExprMacroTable macroTable, String fieldName, String fieldExpression, long nullValue)
public static DoubleColumnSelector getDoubleColumnSelector(ColumnSelectorFactory metricFactory, ExprMacroTable macroTable, String fieldName, String fieldExpression, double nullValue)
Copyright © 2011–2017. All rights reserved.