Uses of Class
org.apache.lucene.index.LeafReader
-
Packages that use LeafReader Package Description org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.search Code to search indices. -
-
Uses of LeafReader in org.apache.lucene.index
Subclasses of LeafReader in org.apache.lucene.index Modifier and Type Class Description class
CodecReader
LeafReader implemented by codec APIs.static class
ExitableDirectoryReader.ExitableFilterAtomicReader
Wrapper class for another FilterAtomicReader.class
FilterCodecReader
AFilterCodecReader
contains another CodecReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.class
FilterLeafReader
AFilterLeafReader
contains another LeafReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.class
ParallelLeafReader
AnLeafReader
which reads multiple, parallel indexes.class
SegmentReader
IndexReader implementation over a single segment.Fields in org.apache.lucene.index declared as LeafReader Modifier and Type Field Description protected LeafReader
FilterLeafReader. in
The underlying LeafReader.Methods in org.apache.lucene.index that return LeafReader Modifier and Type Method Description LeafReader
FilterLeafReader. getDelegate()
Returns the wrappedLeafReader
.LeafReader[]
ParallelLeafReader. getParallelReaders()
Returns theLeafReader
s that were passed on init.LeafReader
LeafReaderContext. reader()
static LeafReader
FilterLeafReader. unwrap(LeafReader reader)
Get the wrapped instance byreader
as long as this reader is an instance ofFilterLeafReader
.LeafReader
ExitableDirectoryReader.ExitableSubReaderWrapper. wrap(LeafReader reader)
protected LeafReader[]
FilterDirectoryReader.SubReaderWrapper. wrap(List<? extends LeafReader> readers)
Wraps a list of LeafReadersabstract LeafReader
FilterDirectoryReader.SubReaderWrapper. wrap(LeafReader reader)
Wrap one of the parent DirectoryReader's subreadersMethods in org.apache.lucene.index with parameters of type LeafReader Modifier and Type Method Description static BinaryDocValues
DocValues. getBinary(LeafReader reader, String field)
Returns BinaryDocValues for the field, orDocValues.emptyBinary()
if it has none.static NumericDocValues
DocValues. getNumeric(LeafReader reader, String field)
Returns NumericDocValues for the field, orDocValues.emptyNumeric()
if it has none.static SortedDocValues
DocValues. getSorted(LeafReader reader, String field)
Returns SortedDocValues for the field, orDocValues.emptySorted()
if it has none.static SortedNumericDocValues
DocValues. getSortedNumeric(LeafReader reader, String field)
Returns SortedNumericDocValues for the field, orDocValues.emptySortedNumeric(int)
if it has none.static SortedSetDocValues
DocValues. getSortedSet(LeafReader reader, String field)
Returns SortedSetDocValues for the field, orDocValues.emptySortedSet()
if it has none.static LeafReader
FilterLeafReader. unwrap(LeafReader reader)
Get the wrapped instance byreader
as long as this reader is an instance ofFilterLeafReader
.void
IndexWriter.IndexReaderWarmer. warm(LeafReader reader)
Invoked on theLeafReader
for the newly merged segment, before that segment is made visible to near-real-time readers.void
SimpleMergedSegmentWarmer. warm(LeafReader reader)
LeafReader
ExitableDirectoryReader.ExitableSubReaderWrapper. wrap(LeafReader reader)
abstract LeafReader
FilterDirectoryReader.SubReaderWrapper. wrap(LeafReader reader)
Wrap one of the parent DirectoryReader's subreadersstatic CodecReader
SlowCodecReaderWrapper. wrap(LeafReader reader)
Returns aCodecReader
view of reader.Method parameters in org.apache.lucene.index with type arguments of type LeafReader Modifier and Type Method Description static DirectoryReader
StandardDirectoryReader. open(Directory directory, SegmentInfos infos, List<? extends LeafReader> oldReaders, Map<String,String> readerAttributes)
This constructor is only used forStandardDirectoryReader.doOpenIfChanged(SegmentInfos)
, as well as NRT replication.protected LeafReader[]
FilterDirectoryReader.SubReaderWrapper. wrap(List<? extends LeafReader> readers)
Wraps a list of LeafReadersConstructors in org.apache.lucene.index with parameters of type LeafReader Constructor Description DirectoryReader(Directory directory, LeafReader[] segmentReaders)
Expert: Constructs aDirectoryReader
on the given subReaders.ExitableFilterAtomicReader(LeafReader in, QueryTimeout queryTimeout)
ConstructorFilterLeafReader(LeafReader in)
Construct a FilterLeafReader based on the specified base reader.ParallelLeafReader(boolean closeSubReaders, LeafReader... readers)
Create a ParallelLeafReader based on the provided readers.ParallelLeafReader(boolean closeSubReaders, LeafReader[] readers, LeafReader[] storedFieldsReaders)
Expert: create a ParallelLeafReader based on the provided readers and storedFieldReaders; when a document is loaded, only storedFieldsReaders will be used.ParallelLeafReader(LeafReader... readers)
Create a ParallelLeafReader based on the provided readers; auto-closes the given readers onIndexReader.close()
. -
Uses of LeafReader in org.apache.lucene.search
Methods in org.apache.lucene.search with parameters of type LeafReader Modifier and Type Method Description static DocIdSetIterator
DocValuesFieldExistsQuery. getDocValuesDocIdSetIterator(String field, LeafReader reader)
Returns aDocIdSetIterator
from the given field or null if the field doesn't exist in the reader or if the reader has no doc values for the field.Constructors in org.apache.lucene.search with parameters of type LeafReader Constructor Description LeafSimScorer(Similarity.SimScorer scorer, LeafReader reader, String field, boolean needsScores)
Sole constructor: Score documents ofreader
withscorer
.
-