Package org.apache.druid.segment.nested
Class ValueDictionary
- java.lang.Object
-
- org.apache.druid.segment.nested.ValueDictionary
-
public class ValueDictionary extends Object
Used byAutoTypeColumnIndexer
to build the value dictionary, which can be converted into aSortedValueDictionary
to 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 int
addDoubleArray(Object[] value)
int
addDoubleValue(Double value)
int
addLongArray(Object[] value)
int
addLongValue(Long value)
int
addStringArray(Object[] value)
int
addStringValue(String value)
int
getCardinality()
SortedValueDictionary
getSortedCollector()
long
sizeInBytes()
-
-
-
Method Detail
-
getSortedCollector
public SortedValueDictionary getSortedCollector()
-
sizeInBytes
public long sizeInBytes()
-
getCardinality
public int getCardinality()
-
-