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