public final class ReaderUtil extends Object
IndexReader
s.Modifier and Type | Class | Description |
---|---|---|
static class |
ReaderUtil.Gather |
Recursively visits all sub-readers of a reader.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
gatherSubReaders(List<IndexReader> allSubReaders,
IndexReader reader) |
Gathers sub-readers from reader into a List.
|
static Collection<String> |
getIndexedFields(IndexReader reader) |
|
static FieldInfos |
getMergedFieldInfos(IndexReader reader) |
Call this to get the (merged) FieldInfos for a
composite reader
|
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. |
public static void gatherSubReaders(List<IndexReader> allSubReaders, IndexReader reader)
allSubReaders
- reader
- public static int subIndex(int n, int[] docStarts)
n
in the
array used to construct this searcher/reader.public static Collection<String> getIndexedFields(IndexReader reader)
public static FieldInfos getMergedFieldInfos(IndexReader reader)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.