abstract static class Sorter.DocMap
extends java.lang.Object
IndexReader.maxDoc()
, oldToNew(newToOld(docID))
must
return docID
.Constructor and Description |
---|
DocMap() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract int |
newToOld(int docID)
Given the ordinal of a doc ID, return its doc ID in the original index.
|
(package private) abstract int |
oldToNew(int docID)
Given a doc ID from the original index, return its ordinal in the
sorted index.
|
(package private) abstract int |
size()
Return the number of documents in this map.
|
abstract int oldToNew(int docID)
abstract int newToOld(int docID)
abstract int size()
number of documents
of the
LeafReader
which is sorted.