Class SortedDimensionDictionary<T extends Comparable<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 Detail

      • SortedDimensionDictionary

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

      • getUnsortedIdFromSortedId

        public int getUnsortedIdFromSortedId​(int index)
      • getSortedIdFromUnsortedId

        public int getSortedIdFromUnsortedId​(int id)
      • getValueFromSortedId

        public T getValueFromSortedId​(int index)