public class LongCardinalityAggregatorColumnSelectorStrategy extends Object implements CardinalityAggregatorColumnSelectorStrategy<BaseLongColumnValueSelector>
NullHandling.replaceWithDefault() is false,
and one - when it's true, moving this computation out of the tight loop| Constructor and Description |
|---|
LongCardinalityAggregatorColumnSelectorStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
hashRow(BaseLongColumnValueSelector selector,
com.google.common.hash.Hasher hasher)
Retrieve the current row from dimSelector and add the row values to the hasher.
|
void |
hashValues(BaseLongColumnValueSelector selector,
HyperLogLogCollector collector)
Retrieve the current row from dimSelector and add the row values to HyperLogLogCollector.
|
public LongCardinalityAggregatorColumnSelectorStrategy()
public void hashRow(BaseLongColumnValueSelector selector, com.google.common.hash.Hasher hasher)
CardinalityAggregatorColumnSelectorStrategyhashRow in interface CardinalityAggregatorColumnSelectorStrategy<BaseLongColumnValueSelector>selector - Dimension value selectorhasher - Hasher used for cardinality aggregator calculationspublic void hashValues(BaseLongColumnValueSelector selector, HyperLogLogCollector collector)
CardinalityAggregatorColumnSelectorStrategyhashValues in interface CardinalityAggregatorColumnSelectorStrategy<BaseLongColumnValueSelector>selector - Dimension value selectorcollector - HLL collector used for cardinality aggregator calculationsCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.