public abstract static class Sorter.DocMap extends Object
IndexReader.maxDoc(), oldToNew(newToOld(docID)) must
return docID.| Constructor and Description |
|---|
Sorter.DocMap() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
newToOld(int docID)
Given the ordinal of a doc ID, return its doc ID in the original index.
|
abstract int |
oldToNew(int docID)
Given a doc ID from the original index, return its ordinal in the
sorted index.
|
abstract int |
size()
Return the number of documents in this map.
|
public abstract int oldToNew(int docID)
public abstract int newToOld(int docID)
public abstract int size()
number of documents of the
AtomicReader which is sorted.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.