|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.ReaderUtil
public final class ReaderUtil
Common util methods for dealing with IndexReaders.
| Nested Class Summary | |
|---|---|
static class |
ReaderUtil.Gather
Recursively visits all sub-readers of a reader. |
| Method Summary | |
|---|---|
static void |
gatherSubReaders(List<IndexReader> allSubReaders,
IndexReader reader)
Gathers sub-readers from reader into a List. |
static int |
subIndex(int n,
int[] docStarts)
Returns index of the searcher/reader for document n in the
array used to construct this searcher/reader. |
static IndexReader |
subReader(IndexReader reader,
int subIndex)
Returns sub-reader subIndex from reader. |
static IndexReader |
subReader(int doc,
IndexReader reader)
Returns sub IndexReader that contains the given document id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void gatherSubReaders(List<IndexReader> allSubReaders,
IndexReader reader)
allSubReaders - reader -
public static IndexReader subReader(int doc,
IndexReader reader)
doc - id of documentreader - parent reader
public static IndexReader subReader(IndexReader reader,
int subIndex)
reader - parent readersubIndex - index of desired sub reader
public static int subIndex(int n,
int[] docStarts)
n in the
array used to construct this searcher/reader.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||