public class StringFirstFoldingAggregatorFactory extends StringFirstAggregatorFactory
DEFAULT_MAX_STRING_SIZE, maxStringBytes, TIME_COMPARATOR, TYPE, VALUE_COMPARATOR| Constructor and Description |
|---|
StringFirstFoldingAggregatorFactory(String name,
String fieldName,
Integer maxStringBytes) |
| Modifier and Type | Method and Description |
|---|---|
AggregatorFactory |
withName(String newName)
Used in cases where we want to change the output name of the aggregator to something else.
|
combine, deserialize, equals, factorize, factorizeBuffered, finalizeComputation, getCacheKey, getCombiningFactory, getComparator, getFieldName, getIntermediateType, getMaxIntermediateSize, getMaxStringBytes, getName, getRequiredColumns, getResultType, getTimeColumn, hashCode, makeAggregateCombiner, requiredFields, toStringcanVectorize, factorizeVector, factorizeWithSize, getComplexTypeName, getFinalizedType, getMaxIntermediateSizeWithNulls, getMergingFactory, getType, guessAggregatorHeapFootprint, makeNullableAggregateCombiner, mergeAggregators, optimizeForSegmentpublic AggregatorFactory withName(String newName)
AggregatorFactoryorg.apache.druid.sql.calcite.rel.DruidQuery#computeAggregations. We can use withName("total") to set the output name
of the aggregator to "total".
As all implementations of this interface method may not exist, callers of this method are advised to handle such a case.
withName in class StringFirstAggregatorFactorynewName - newName of the output for aggregator factoryCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.