Class DictionaryBuilding
- java.lang.Object
-
- org.apache.druid.query.groupby.epinephelinae.DictionaryBuilding
-
public class DictionaryBuilding extends Object
Utilities for parts of the groupBy engine that need to build dictionaries.
-
-
Constructor Summary
Constructors Constructor Description DictionaryBuilding()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> List<T>
createDictionary()
Creates a forward dictionary (dictionary ID -> value).static <T> it.unimi.dsi.fastutil.objects.Object2IntMap<T>
createReverseDictionary()
Creates a reverse dictionary (value -> dictionary ID).static int
estimateEntryFootprint(int valueFootprint)
Estimated footprint of a new entry.
-
-
-
Method Detail
-
createDictionary
public static <T> List<T> createDictionary()
Creates a forward dictionary (dictionary ID -> value).
-
createReverseDictionary
public static <T> it.unimi.dsi.fastutil.objects.Object2IntMap<T> createReverseDictionary()
Creates a reverse dictionary (value -> dictionary ID). If a value is not present in the reverse dictionary,Object2IntFunction.getInt(java.lang.Object)
will returnDimensionDictionary.ABSENT_VALUE_ID
.
-
estimateEntryFootprint
public static int estimateEntryFootprint(int valueFootprint)
Estimated footprint of a new entry.
-
-