Class LongCardinalityAggregatorColumnSelectorStrategy
java.lang.Object
org.apache.druid.query.aggregation.cardinality.types.LongCardinalityAggregatorColumnSelectorStrategy
- All Implemented Interfaces:
CardinalityAggregatorColumnSelectorStrategy<BaseLongColumnValueSelector>,ColumnSelectorStrategy
public class LongCardinalityAggregatorColumnSelectorStrategy
extends Object
implements CardinalityAggregatorColumnSelectorStrategy<BaseLongColumnValueSelector>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddLongToCollector(HyperLogLogCollector collector, long n) voidhashRow(BaseLongColumnValueSelector selector, com.google.common.hash.Hasher hasher) Retrieve the current row from dimSelector and add the row values to the hasher.voidhashValues(BaseLongColumnValueSelector selector, HyperLogLogCollector collector) Retrieve the current row from dimSelector and add the row values to HyperLogLogCollector.
-
Constructor Details
-
LongCardinalityAggregatorColumnSelectorStrategy
public LongCardinalityAggregatorColumnSelectorStrategy()
-
-
Method Details
-
addLongToCollector
-
hashRow
Description copied from interface:CardinalityAggregatorColumnSelectorStrategyRetrieve the current row from dimSelector and add the row values to the hasher.- Specified by:
hashRowin interfaceCardinalityAggregatorColumnSelectorStrategy<BaseLongColumnValueSelector>- Parameters:
selector- Dimension value selectorhasher- Hasher used for cardinality aggregator calculations
-
hashValues
Description copied from interface:CardinalityAggregatorColumnSelectorStrategyRetrieve the current row from dimSelector and add the row values to HyperLogLogCollector.- Specified by:
hashValuesin interfaceCardinalityAggregatorColumnSelectorStrategy<BaseLongColumnValueSelector>- Parameters:
selector- Dimension value selectorcollector- HLL collector used for cardinality aggregator calculations
-