public class ReaderUtil
extends java.lang.Object
IndexReaders.| Constructor and Description |
|---|
ReaderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
gatherSubReaders(java.util.List 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.
|
public static void gatherSubReaders(java.util.List allSubReaders,
IndexReader reader)
allSubReaders - reader - public static IndexReader subReader(int doc, IndexReader reader)
doc - id of documentreader - parent readerpublic static IndexReader subReader(IndexReader reader, int subIndex)
reader - parent readersubIndex - index of desired sub readerpublic static int subIndex(int n,
int[] docStarts)
n in the
array used to construct this searcher/reader.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.