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 String
CARDINALITY_AGG_NULL_STRING
static char
CARDINALITY_AGG_SEPARATOR
-
Constructor Summary
Constructors Constructor Description StringCardinalityAggregatorColumnSelectorStrategy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addStringToCollector(HyperLogLogCollector collector, String s)
void
hashRow(DimensionSelector dimSelector, com.google.common.hash.Hasher hasher)
Retrieve the current row from dimSelector and add the row values to the hasher.void
hashValues(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:CardinalityAggregatorColumnSelectorStrategy
Retrieve the current row from dimSelector and add the row values to the hasher.- Specified by:
hashRow
in 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:CardinalityAggregatorColumnSelectorStrategy
Retrieve the current row from dimSelector and add the row values to HyperLogLogCollector.- Specified by:
hashValues
in interfaceCardinalityAggregatorColumnSelectorStrategy<DimensionSelector>
- Parameters:
dimSelector
- Dimension value selectorcollector
- HLL collector used for cardinality aggregator calculations
-
-