Class LongSumAggregateCombiner
java.lang.Object
org.apache.druid.query.aggregation.LongAggregateCombiner
org.apache.druid.query.aggregation.LongSumAggregateCombiner
- All Implemented Interfaces:
AggregateCombiner<Long>,HotLoopCallee,BaseDoubleColumnValueSelector,BaseFloatColumnValueSelector,BaseLongColumnValueSelector,BaseNullableColumnValueSelector,BaseObjectColumnValueSelector<Long>,ColumnValueSelector<Long>,LongColumnSelector
-
Field Summary
Fields inherited from interface org.apache.druid.segment.ColumnValueSelector
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfold(ColumnValueSelector selector) Folds this AggregateCombiner's state value with the value of the given selector and saves it in this AggregateCombiner's state, e.longgetLong()voidreset(ColumnValueSelector selector) Resets this AggregateCombiner's state value to the value of the given selector, e.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.query.aggregation.AggregateCombiner
inspectRuntimeShape, isNullMethods inherited from interface org.apache.druid.segment.LongColumnSelector
classOfObject, getDouble, getFloat, getObject
-
Constructor Details
-
LongSumAggregateCombiner
public LongSumAggregateCombiner()
-
-
Method Details
-
reset
Description copied from interface:AggregateCombinerResets this AggregateCombiner's state value to the value of the given selector, e. g. after calling this method combiner.get*() should return the same value as selector.get*(). If the selector is anObjectColumnSelector, the object returned fromBaseObjectColumnValueSelector.getObject()must not be modified, and must not become a subject for modification during subsequentAggregateCombiner.fold(org.apache.druid.segment.ColumnValueSelector)calls. -
fold
Description copied from interface:AggregateCombinerFolds this AggregateCombiner's state value with the value of the given selector and saves it in this AggregateCombiner's state, e. g. after calling combiner.fold(selector), combiner.get*() should return the value that would be the result ofaggregatorFactory.combine(combiner.get*(), selector.get*())call. UnlikeAggregatorFactory.combine(java.lang.Object, java.lang.Object), if the selector is anObjectColumnSelector, the object returned fromBaseObjectColumnValueSelector.getObject()must not be modified, and must not become a subject for modification during subsequent fold() calls. Since the state of AggregateCombiner is undefined beforeAggregateCombiner.reset(org.apache.druid.segment.ColumnValueSelector)is ever called on it, the effects of calling fold() are also undefined in this case.- See Also:
-
getLong
public long getLong()
-