public class AggregatorUtil extends Object
Constructor and Description |
---|
AggregatorUtil() |
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 final byte QUANTILES_DOUBLES_SKETCH_BUILD_CACHE_TYPE_ID
public static final byte QUANTILES_DOUBLES_SKETCH_MERGE_CACHE_TYPE_ID
public static final byte QUANTILES_DOUBLES_SKETCH_TO_HISTOGRAM_CACHE_TYPE_ID
public static final byte QUANTILES_DOUBLES_SKETCH_TO_QUANTILE_CACHE_TYPE_ID
public static final byte QUANTILES_DOUBLES_SKETCH_TO_QUANTILES_CACHE_TYPE_ID
public static final byte QUANTILES_DOUBLES_SKETCH_TO_STRING_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 Pair<List<AggregatorFactory>,List<PostAggregator>> condensedAggregators(List<AggregatorFactory> aggList, List<PostAggregator> postAggList, String metric)
public static BaseFloatColumnValueSelector makeColumnValueSelectorWithFloatDefault(ColumnSelectorFactory metricFactory, ExprMacroTable macroTable, String fieldName, String fieldExpression, float nullValue)
public static BaseLongColumnValueSelector makeColumnValueSelectorWithLongDefault(ColumnSelectorFactory metricFactory, ExprMacroTable macroTable, String fieldName, String fieldExpression, long nullValue)
public static BaseDoubleColumnValueSelector makeColumnValueSelectorWithDoubleDefault(ColumnSelectorFactory metricFactory, ExprMacroTable macroTable, String fieldName, String fieldExpression, double nullValue)
Copyright © 2011–2018. All rights reserved.