Package org.apache.lucene.index
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Sorter.DocMap
A permutation of doc IDs.
-
-
-
Method Detail
-
getID
public String 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
.
-
-