Class StringSorter

    • Constructor Detail

      • StringSorter

        protected StringSorter​(java.util.Comparator<BytesRef> cmp)
    • Method Detail

      • compare

        protected int compare​(int i,
                              int j)
        Description copied from class: Sorter
        Compare entries found in slots i and j. The contract for the returned value is the same as Comparator.compare(Object, Object).
        Specified by:
        compare in class Sorter
      • sort

        public void sort​(int from,
                         int to)
        Description copied from class: Sorter
        Sort the slice which starts at from (inclusive) and ends at to (exclusive).
        Specified by:
        sort in class Sorter
      • fallbackSorter

        protected Sorter fallbackSorter​(java.util.Comparator<BytesRef> cmp)