Package org.apache.lucene.index
Class Sorter
java.lang.Object
org.apache.lucene.index.Sorter
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.
-
Nested Class Summary
-
Method Summary
-
Method Details
-
getID
Returns the identifier of thisSorter
.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 differentsorts
. -
toString
-