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 Modifier and Type Field Description static StringCARDINALITY_AGG_NULL_STRINGstatic charCARDINALITY_AGG_SEPARATOR
-
Constructor Summary
Constructors Constructor Description StringCardinalityAggregatorColumnSelectorStrategy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
CARDINALITY_AGG_NULL_STRING
public static final String CARDINALITY_AGG_NULL_STRING
- See Also:
- Constant Field Values
-
CARDINALITY_AGG_SEPARATOR
public static final char CARDINALITY_AGG_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
addStringToCollector
public static void addStringToCollector(HyperLogLogCollector collector, @Nullable String s)
-
hashRow
public void hashRow(DimensionSelector dimSelector, com.google.common.hash.Hasher hasher)
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
public void hashValues(DimensionSelector dimSelector, HyperLogLogCollector collector)
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
-
-