Package org.apache.druid.segment
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 Summary
Constructors Constructor Description SortedDimensionDictionary(List<T> idToValue, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSortedIdFromUnsortedId(int id)
int
getUnsortedIdFromSortedId(int index)
T
getValueFromSortedId(int index)
-
-
-
Method Detail
-
getUnsortedIdFromSortedId
public int getUnsortedIdFromSortedId(int index)
-
getSortedIdFromUnsortedId
public int getSortedIdFromUnsortedId(int id)
-
getValueFromSortedId
public T getValueFromSortedId(int index)
-
-