| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.index.ReaderUtil
public final class ReaderUtil
Common util methods for dealing with IndexReaders and IndexReaderContexts.
| Method Summary | |
|---|---|
static IndexReaderContext | 
getTopLevelContext(IndexReaderContext context)
Walks up the reader tree and return the given context's top level reader context, or in other words the reader tree's root context.  | 
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 int | 
subIndex(int n,
         List<AtomicReaderContext> leaves)
Returns index of the searcher/reader for document n in the
 array used to construct this searcher/reader. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static IndexReaderContext getTopLevelContext(IndexReaderContext context)
public static int subIndex(int n,
                           int[] docStarts)
n in the
 array used to construct this searcher/reader.
public static int subIndex(int n,
                           List<AtomicReaderContext> leaves)
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 | ||||||||