public final class HyperLogLogCollectorAggregateCombiner extends ObjectAggregateCombiner<HyperLogLogCollector>
Constructor and Description |
---|
HyperLogLogCollectorAggregateCombiner() |
Modifier and Type | Method and Description |
---|---|
Class<HyperLogLogCollector> |
classOfObject() |
void |
fold(ColumnValueSelector selector)
Folds this AggregateCombiner's state value with the value of the given selector and saves it in this
AggregateCombiner's state, e.
|
HyperLogLogCollector |
getObject() |
void |
reset(ColumnValueSelector selector)
Resets this AggregateCombiner's state value to the value of the given selector, e.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
inspectRuntimeShape
getDouble, getFloat, getLong
public HyperLogLogCollectorAggregateCombiner()
public void reset(ColumnValueSelector selector)
AggregateCombiner
ObjectColumnSelector
, the object returned from BaseObjectColumnValueSelector.getObject()
must not be modified, and must not become a subject for
modification during subsequent AggregateCombiner.fold(io.druid.segment.ColumnValueSelector)
calls.public void fold(ColumnValueSelector selector)
AggregateCombiner
aggregatorFactory.combine(combiner.get*(), selector.get*())
call.
Unlike AggregatorFactory.combine(java.lang.Object, java.lang.Object)
, if the selector is an ObjectColumnSelector
, the
object returned from BaseObjectColumnValueSelector.getObject()
must not be modified, and must not
become a subject for modification during subsequent fold() calls.
Since the state of AggregateCombiner is undefined before AggregateCombiner.reset(io.druid.segment.ColumnValueSelector)
is ever called on it, the effects of
calling fold() are also undefined in this case.public Class<HyperLogLogCollector> classOfObject()
@Nullable public HyperLogLogCollector getObject()
Copyright © 2011–2018. All rights reserved.