public class AggregatorUtil extends Object
| Constructor and Description |
|---|
AggregatorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canVectorize(ColumnInspector columnInspector,
String fieldName,
String expression,
com.google.common.base.Supplier<Expr> fieldExpression) |
static Pair<List<AggregatorFactory>,List<PostAggregator>> |
condensedAggregators(List<AggregatorFactory> aggList,
List<PostAggregator> postAggList,
String metric) |
static com.google.common.base.Supplier<byte[]> |
getSimpleAggregatorCacheKeySupplier(byte aggregatorType,
String fieldName,
com.google.common.base.Supplier<Expr> fieldExpression) |
static VectorValueSelector |
makeVectorValueSelector(VectorColumnSelectorFactory columnSelectorFactory,
String fieldName,
String expression,
com.google.common.base.Supplier<Expr> fieldExpression)
Make a
VectorValueSelector for primitive numeric or expression virtual column inputs. |
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 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 final byte ARRAY_OF_DOUBLES_SKETCH_CACHE_TYPE_ID
public static final byte ARRAY_OF_DOUBLES_SKETCH_SET_OP_CACHE_TYPE_ID
public static final byte ARRAY_OF_DOUBLES_SKETCH_TO_ESTIMATE_CACHE_TYPE_ID
public static final byte ARRAY_OF_DOUBLES_SKETCH_TO_ESTIMATE_AND_BOUNDS_CACHE_TYPE_ID
public static final byte ARRAY_OF_DOUBLES_SKETCH_TO_MEANS_CACHE_TYPE_ID
public static final byte ARRAY_OF_DOUBLES_SKETCH_TO_VARIANCES_CACHE_TYPE_ID
public static final byte ARRAY_OF_DOUBLES_SKETCH_TO_NUM_ENTRIES_CACHE_TYPE_ID
public static final byte ARRAY_OF_DOUBLES_SKETCH_TO_QUANTILES_SKETCH_CACHE_TYPE_ID
public static final byte ARRAY_OF_DOUBLES_SKETCH_T_TEST_CACHE_TYPE_ID
public static final byte ARRAY_OF_DOUBLES_SKETCH_TO_STRING_CACHE_TYPE_ID
public static final byte STRING_FIRST_CACHE_TYPE_ID
public static final byte STRING_LAST_CACHE_TYPE_ID
public static final byte SUPPRESSED_AGG_CACHE_TYPE_ID
public static final byte HLL_SKETCH_BUILD_CACHE_TYPE_ID
public static final byte HLL_SKETCH_MERGE_CACHE_TYPE_ID
public static final byte HLL_SKETCH_UNION_CACHE_TYPE_ID
public static final byte HLL_SKETCH_TO_STRING_CACHE_TYPE_ID
public static final byte HLL_SKETCH_TO_ESTIMATE_AND_BOUNDS_CACHE_TYPE_ID
public static final byte FIXED_BUCKET_HIST_CACHE_TYPE_ID
public static final byte BLOOM_FILTER_CACHE_TYPE_ID
public static final byte BLOOM_FILTER_MERGE_CACHE_TYPE_ID
public static final byte MOMENTS_SKETCH_BUILD_CACHE_TYPE_ID
public static final byte MOMENTS_SKETCH_MERGE_CACHE_TYPE_ID
public static final byte TDIGEST_BUILD_SKETCH_CACHE_TYPE_ID
public static final byte MEAN_CACHE_TYPE_ID
public static final byte LONG_ANY_CACHE_TYPE_ID
public static final byte DOUBLE_ANY_CACHE_TYPE_ID
public static final byte FLOAT_ANY_CACHE_TYPE_ID
public static final byte STRING_ANY_CACHE_TYPE_ID
public static final byte GROUPING_CACHE_TYPE_ID
public static final byte EXPRESSION_LAMBDA_CACHE_TYPE_ID
public static final byte KLL_DOUBLES_SKETCH_BUILD_CACHE_TYPE_ID
public static final byte KLL_DOUBLES_SKETCH_MERGE_CACHE_TYPE_ID
public static final byte KLL_FLOATS_SKETCH_BUILD_CACHE_TYPE_ID
public static final byte KLL_FLOATS_SKETCH_MERGE_CACHE_TYPE_ID
public static final byte ARRAY_OF_DOUBLES_SKETCH_TO_BASE64_STRING_CACHE_TYPE_ID
public static final byte ARRAY_OF_DOUBLES_SKETCH_CONSTANT_SKETCH_CACHE_TYPE_ID
public static final byte ARRAY_OF_DOUBLES_SKETCH_TO_METRICS_SUM_ESTIMATE_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 boolean canVectorize(ColumnInspector columnInspector, @Nullable String fieldName, @Nullable String expression, com.google.common.base.Supplier<Expr> fieldExpression)
public static VectorValueSelector makeVectorValueSelector(VectorColumnSelectorFactory columnSelectorFactory, @Nullable String fieldName, @Nullable String expression, com.google.common.base.Supplier<Expr> fieldExpression)
VectorValueSelector for primitive numeric or expression virtual column inputs.Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.