Class ArithmeticPostAggregator
java.lang.Object
org.apache.druid.query.aggregation.post.ArithmeticPostAggregator
- All Implemented Interfaces:
Cacheable,PostAggregator
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArithmeticPostAggregator(String name, String fnName, List<PostAggregator> fields) ArithmeticPostAggregator(String name, String fnName, List<PostAggregator> fields, String ordering) -
Method Summary
Modifier and TypeMethodDescriptiondecorate(Map<String, AggregatorFactory> aggregators) Allows returning an enriched post aggregator, built from contextual information available from the given map ofAggregatorFactorykeyed by their names.booleanbyte[]Get a byte array used as a cache key.getName()getType(ColumnInspector signature) Return the output type of a row processed with this post aggregator.inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.query.aggregation.PostAggregator
getType
-
Field Details
-
DEFAULT_COMPARATOR
-
-
Constructor Details
-
ArithmeticPostAggregator
-
ArithmeticPostAggregator
public ArithmeticPostAggregator(String name, String fnName, List<PostAggregator> fields, @Nullable String ordering)
-
-
Method Details
-
getDependentFields
- Specified by:
getDependentFieldsin interfacePostAggregator
-
getComparator
- Specified by:
getComparatorin interfacePostAggregator
-
compute
- Specified by:
computein interfacePostAggregator
-
getName
- Specified by:
getNamein interfacePostAggregator
-
getType
Description copied from interface:PostAggregatorReturn the output type of a row processed with this post aggregator. Refer to theColumnTypejavadocs for details on the implications of choosing a type.- Specified by:
getTypein interfacePostAggregator- Parameters:
signature-
-
decorate
Description copied from interface:PostAggregatorAllows returning an enriched post aggregator, built from contextual information available from the given map ofAggregatorFactorykeyed by their names. Callers must call this method before callingPostAggregator.compute(java.util.Map<java.lang.String, java.lang.Object>)orPostAggregator.getComparator(). This is typically done in the constructor of queries which support post aggregators, viaQueries.prepareAggregations(java.util.List<org.apache.druid.query.aggregation.AggregatorFactory>, java.util.List<org.apache.druid.query.aggregation.PostAggregator>).- Specified by:
decoratein interfacePostAggregator
-
getCacheKey
public byte[] getCacheKey()Description copied from interface:CacheableGet a byte array used as a cache key.- Specified by:
getCacheKeyin interfaceCacheable- Returns:
- bytes to be used as cache key - or null if this object should not be cached.
-
getFnName
-
getOrdering
-
getFields
-
toString
-
equals
-
hashCode
public int hashCode()
-