Class SortedDimensionDictionary<T extends Comparable<T>>

java.lang.Object
org.apache.druid.segment.SortedDimensionDictionary<T>

public class SortedDimensionDictionary<T extends Comparable<T>> extends Object
Creates a sorted dictionary given some existing dictionary, storing a mapping of both sorted id to unsorted id and unsorted id to sorted id
  • Constructor Details

    • SortedDimensionDictionary

      public SortedDimensionDictionary(List<T> idToValue, int length)
  • Method Details

    • getUnsortedIdFromSortedId

      public int getUnsortedIdFromSortedId(int index)
    • getSortedIdFromUnsortedId

      public int getSortedIdFromUnsortedId(int id)
    • getValueFromSortedId

      public T getValueFromSortedId(int index)