Class Sorter

java.lang.Object
org.apache.lucene.index.Sorter

public final class Sorter extends Object
Sorts documents of a given index by returning a permutation on the document IDs.
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Method Details

    • getID

      public String getID()
      Returns the identifier of this Sorter.

      This identifier is similar to Object.hashCode() and should be chosen so that two instances of this class that sort documents likewise will have the same identifier. On the contrary, this identifier should be different on different sorts.

    • toString

      public String toString()
      Overrides:
      toString in class Object