Class WordDelimiterGraphFilter.PositionSorter

java.lang.Object
org.apache.lucene.util.Sorter
org.apache.lucene.util.InPlaceMergeSorter
org.apache.lucene.analysis.miscellaneous.WordDelimiterGraphFilter.PositionSorter
Enclosing class:
WordDelimiterGraphFilter

private class WordDelimiterGraphFilter.PositionSorter extends InPlaceMergeSorter
  • Constructor Details

    • PositionSorter

      private PositionSorter()
  • Method Details

    • 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
    • swap

      protected void swap(int i, int j)
      Description copied from class: Sorter
      Swap values at slots i and j.
      Specified by:
      swap in class Sorter