Class ValueDictionary

java.lang.Object
org.apache.druid.segment.nested.ValueDictionary

public class ValueDictionary extends Object
Used by AutoTypeColumnIndexer to build the value dictionary, which can be converted into a SortedValueDictionary to sort and write out the values to a segment with getSortedCollector().
  • Constructor Details

    • ValueDictionary

      public ValueDictionary()
  • Method Details

    • addLongValue

      public int addLongValue(@Nullable Long value)
    • addDoubleValue

      public int addDoubleValue(@Nullable Double value)
    • addStringValue

      public int addStringValue(@Nullable String value)
    • addStringArray

      public int addStringArray(@Nullable Object[] value)
    • addLongArray

      public int addLongArray(@Nullable Object[] value)
    • addDoubleArray

      public int addDoubleArray(@Nullable Object[] value)
    • getSortedCollector

      public SortedValueDictionary getSortedCollector()
    • sizeInBytes

      public long sizeInBytes()
    • getCardinality

      public int getCardinality()