Class StringCardinalityAggregatorColumnSelectorStrategy
java.lang.Object
org.apache.druid.query.aggregation.cardinality.types.StringCardinalityAggregatorColumnSelectorStrategy
- All Implemented Interfaces:
CardinalityAggregatorColumnSelectorStrategy<DimensionSelector>,ColumnSelectorStrategy
public class StringCardinalityAggregatorColumnSelectorStrategy
extends Object
implements CardinalityAggregatorColumnSelectorStrategy<DimensionSelector>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddStringToCollector(HyperLogLogCollector collector, String s) voidhashRow(DimensionSelector dimSelector, com.google.common.hash.Hasher hasher) Retrieve the current row from dimSelector and add the row values to the hasher.voidhashValues(DimensionSelector dimSelector, HyperLogLogCollector collector) Retrieve the current row from dimSelector and add the row values to HyperLogLogCollector.
-
Field Details
-
CARDINALITY_AGG_NULL_STRING
- See Also:
-
CARDINALITY_AGG_SEPARATOR
public static final char CARDINALITY_AGG_SEPARATOR- See Also:
-
-
Constructor Details
-
StringCardinalityAggregatorColumnSelectorStrategy
public StringCardinalityAggregatorColumnSelectorStrategy()
-
-
Method Details
-
addStringToCollector
-
hashRow
Description copied from interface:CardinalityAggregatorColumnSelectorStrategyRetrieve the current row from dimSelector and add the row values to the hasher.- Specified by:
hashRowin interfaceCardinalityAggregatorColumnSelectorStrategy<DimensionSelector>- Parameters:
dimSelector- 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<DimensionSelector>- Parameters:
dimSelector- Dimension value selectorcollector- HLL collector used for cardinality aggregator calculations
-