Package org.apache.druid.segment
Class ComparatorSortedDimensionDictionary<T>
- java.lang.Object
-
- org.apache.druid.segment.ComparatorSortedDimensionDictionary<T>
-
public class ComparatorSortedDimensionDictionary<T> extends Object
Comparator
basedSortedDimensionDictionary
There are a number of unused methods, because nested columns don't merge bitmap indexes during the merge phase, rather they are created when serializing the column, but leaving for now for compatibility with the other implementation
-
-
Constructor Summary
Constructors Constructor Description ComparatorSortedDimensionDictionary(List<T> idToValue, Comparator<T> comparator, 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)
-
-
-
Constructor Detail
-
ComparatorSortedDimensionDictionary
public ComparatorSortedDimensionDictionary(List<T> idToValue, Comparator<T> comparator, int length)
-
-
Method Detail
-
getUnsortedIdFromSortedId
public int getUnsortedIdFromSortedId(int index)
-
getSortedIdFromUnsortedId
public int getSortedIdFromUnsortedId(int id)
-
getValueFromSortedId
public T getValueFromSortedId(int index)
-
-