Uses of Class
org.apache.lucene.index.AtomicReader
Packages that use AtomicReader
Package
Description
Code to maintain and access indices.
Code to search indices.
-
Uses of AtomicReader in org.apache.lucene.index
Subclasses of AtomicReader in org.apache.lucene.indexModifier and TypeClassDescriptionclass
AFilterAtomicReader
contains another AtomicReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.class
AnAtomicReader
which reads multiple, parallel indexes.final class
IndexReader implementation over a single segment.final class
This class forces a composite reader (eg aMultiReader
orDirectoryReader
) to emulate an atomic reader.Fields in org.apache.lucene.index declared as AtomicReaderModifier and TypeFieldDescriptionprotected final AtomicReader
FilterAtomicReader.in
The underlying AtomicReader.Fields in org.apache.lucene.index with type parameters of type AtomicReaderModifier and TypeFieldDescriptionfinal List<AtomicReader>
MergeState.readers
Readers being merged.Methods in org.apache.lucene.index that return AtomicReaderModifier and TypeMethodDescriptionAtomicReaderContext.reader()
FilterDirectoryReader.StandardReaderWrapper.wrap
(AtomicReader reader) abstract AtomicReader
FilterDirectoryReader.SubReaderWrapper.wrap
(AtomicReader reader) Wrap one of the parent DirectoryReader's subreadersstatic AtomicReader
SlowCompositeReaderWrapper.wrap
(IndexReader reader) This method is sugar for getting anAtomicReader
from anIndexReader
of any kind.Methods in org.apache.lucene.index that return types with arguments of type AtomicReaderModifier and TypeMethodDescriptionMergePolicy.OneMerge.getMergeReaders()
Expert: Get the list of readers to merge.Methods in org.apache.lucene.index with parameters of type AtomicReaderModifier and TypeMethodDescriptionstatic MergeState.DocMap
MergeState.DocMap.build
(AtomicReader reader) Creates aMergeState.DocMap
instance appropriate for this reader.DocTermOrds.getOrdTermsEnum
(AtomicReader reader) Returns a TermsEnum that implements ord.DocTermOrds.iterator
(AtomicReader reader) Returns a SortedSetDocValues view of this instanceCheckIndex.testDocValues
(AtomicReader reader, PrintStream infoStream) Test docvalues.CheckIndex.testFieldNorms
(AtomicReader reader, PrintStream infoStream) Test field norms.CheckIndex.testPostings
(AtomicReader reader, PrintStream infoStream) Test the term index.CheckIndex.testPostings
(AtomicReader reader, PrintStream infoStream, boolean verbose) Test the term index.CheckIndex.testStoredFields
(AtomicReader reader, PrintStream infoStream) Test stored fields.CheckIndex.testTermVectors
(AtomicReader reader, PrintStream infoStream) Test term vectors.CheckIndex.testTermVectors
(AtomicReader reader, PrintStream infoStream, boolean verbose, boolean crossCheckTermVectors) Test term vectors.protected void
DocTermOrds.uninvert
(AtomicReader reader, Bits liveDocs, BytesRef termPrefix) Call this only once (if you subclass!)abstract void
IndexWriter.IndexReaderWarmer.warm
(AtomicReader reader) Invoked on theAtomicReader
for the newly merged segment, before that segment is made visible to near-real-time readers.void
SimpleMergedSegmentWarmer.warm
(AtomicReader reader) FilterDirectoryReader.StandardReaderWrapper.wrap
(AtomicReader reader) abstract AtomicReader
FilterDirectoryReader.SubReaderWrapper.wrap
(AtomicReader reader) Wrap one of the parent DirectoryReader's subreadersConstructors in org.apache.lucene.index with parameters of type AtomicReaderModifierConstructorDescriptionprotected
DirectoryReader
(Directory directory, AtomicReader[] segmentReaders) Expert: Constructs aDirectoryReader
on the given subReaders.DocTermOrds
(AtomicReader reader, Bits liveDocs, String field) Inverts all termsDocTermOrds
(AtomicReader reader, Bits liveDocs, String field, BytesRef termPrefix) Inverts only terms starting w/ prefixDocTermOrds
(AtomicReader reader, Bits liveDocs, String field, BytesRef termPrefix, int maxTermDocFreq) Inverts only terms starting w/ prefix, and only terms whose docFreq (not taking deletions into account) is <= maxTermDocFreqDocTermOrds
(AtomicReader reader, Bits liveDocs, String field, BytesRef termPrefix, int maxTermDocFreq, int indexIntervalBits) Inverts only terms starting w/ prefix, and only terms whose docFreq (not taking deletions into account) is <= maxTermDocFreq, with a custom indexing interval (default is every 128nd term).Construct a FilterAtomicReader based on the specified base reader.ParallelAtomicReader
(boolean closeSubReaders, AtomicReader... readers) Create a ParallelAtomicReader based on the provided readers.ParallelAtomicReader
(boolean closeSubReaders, AtomicReader[] readers, AtomicReader[] storedFieldsReaders) Expert: create a ParallelAtomicReader based on the provided readers and storedFieldReaders; when a document is loaded, only storedFieldsReaders will be used.ParallelAtomicReader
(AtomicReader... readers) Create a ParallelAtomicReader based on the provided readers; auto-closes the given readers onIndexReader.close()
. -
Uses of AtomicReader in org.apache.lucene.search
Methods in org.apache.lucene.search with parameters of type AtomicReaderModifier and TypeMethodDescriptionprotected DocIdSet
CachingWrapperFilter.cacheImpl
(DocIdSetIterator iterator, AtomicReader reader) Default cache implementation: usesWAH8DocIdSet
.protected DocIdSet
CachingWrapperFilter.docIdSetToCache
(DocIdSet docIdSet, AtomicReader reader) Provide the DocIdSet to be cached, using the DocIdSet provided by the wrapped Filter.FieldCache.getBytes
(AtomicReader reader, String field, boolean setDocsWithField) Deprecated.FieldCache.getBytes
(AtomicReader reader, String field, FieldCache.ByteParser parser, boolean setDocsWithField) Deprecated.(4.4) Index as a numeric field usingIntField
and then useFieldCache.getInts(AtomicReader, String, boolean)
instead.FieldCache.getDocsWithField
(AtomicReader reader, String field) Checks the internal cache for an appropriate entry, and if none is found, reads the terms infield
and returns a bit set at the size ofreader.maxDoc()
, with turned on bits for each docid that does have a value for this field.FieldCache.getDocTermOrds
(AtomicReader reader, String field) Checks the internal cache for an appropriate entry, and if none is found, reads the term values infield
and returns aDocTermOrds
instance, providing a method to retrieve the terms (as ords) per document.FieldCache.getDoubles
(AtomicReader reader, String field, boolean setDocsWithField) Returns aFieldCache.Doubles
over the values found in documents in the given field.FieldCache.getDoubles
(AtomicReader reader, String field, FieldCache.DoubleParser parser, boolean setDocsWithField) Returns aFieldCache.Doubles
over the values found in documents in the given field.FieldCache.getFloats
(AtomicReader reader, String field, boolean setDocsWithField) Returns aFieldCache.Floats
over the values found in documents in the given field.FieldCache.getFloats
(AtomicReader reader, String field, FieldCache.FloatParser parser, boolean setDocsWithField) Returns aFieldCache.Floats
over the values found in documents in the given field.FieldCache.getInts
(AtomicReader reader, String field, boolean setDocsWithField) Returns anFieldCache.Ints
over the values found in documents in the given field.FieldCache.getInts
(AtomicReader reader, String field, FieldCache.IntParser parser, boolean setDocsWithField) Returns anFieldCache.Ints
over the values found in documents in the given field.FieldCache.getLongs
(AtomicReader reader, String field, boolean setDocsWithField) Returns aFieldCache.Longs
over the values found in documents in the given field.FieldCache.getLongs
(AtomicReader reader, String field, FieldCache.LongParser parser, boolean setDocsWithField) Returns aFieldCache.Longs
over the values found in documents in the given field.FieldCache.getShorts
(AtomicReader reader, String field, boolean setDocsWithField) Deprecated.(4.4) Index as a numeric field usingIntField
and then useFieldCache.getInts(AtomicReader, String, boolean)
instead.FieldCache.getShorts
(AtomicReader reader, String field, FieldCache.ShortParser parser, boolean setDocsWithField) Deprecated.(4.4) Index as a numeric field usingIntField
and then useFieldCache.getInts(AtomicReader, String, boolean)
instead.FieldCache.getTerms
(AtomicReader reader, String field, boolean setDocsWithField) Checks the internal cache for an appropriate entry, and if none is found, reads the term values infield
and returns aBinaryDocValues
instance, providing a method to retrieve the term (as a BytesRef) per document.FieldCache.getTerms
(AtomicReader reader, String field, boolean setDocsWithField, float acceptableOverheadRatio) Expert: just likeFieldCache.getTerms(AtomicReader,String,boolean)
, but you can specify whether more RAM should be consumed in exchange for faster lookups (default is "true").FieldCache.getTermsIndex
(AtomicReader reader, String field) Checks the internal cache for an appropriate entry, and if none is found, reads the term values infield
and returns aSortedDocValues
instance, providing methods to retrieve sort ordinals and terms (as a ByteRef) per document.FieldCache.getTermsIndex
(AtomicReader reader, String field, float acceptableOverheadRatio) Expert: just likeFieldCache.getTermsIndex(AtomicReader,String)
, but you can specify whether more RAM should be consumed in exchange for faster lookups (default is "true").
IntField
and then useFieldCache.getInts(AtomicReader, String, boolean)
instead.