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