Package org.apache.druid.segment.nested
Class ValueDictionary
- java.lang.Object
-
- org.apache.druid.segment.nested.ValueDictionary
-
public class ValueDictionary extends Object
Used byAutoTypeColumnIndexerto build the value dictionary, which can be converted into aSortedValueDictionaryto sort and write out the values to a segment withgetSortedCollector().
-
-
Constructor Summary
Constructors Constructor Description ValueDictionary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddDoubleArray(Object[] value)intaddDoubleValue(Double value)intaddLongArray(Object[] value)intaddLongValue(Long value)intaddStringArray(Object[] value)intaddStringValue(String value)intgetCardinality()SortedValueDictionarygetSortedCollector()longsizeInBytes()
-
-
-
Method Detail
-
getSortedCollector
public SortedValueDictionary getSortedCollector()
-
sizeInBytes
public long sizeInBytes()
-
getCardinality
public int getCardinality()
-
-