Uses of Class
org.apache.lucene.index.AtomicReader
-
Packages that use AtomicReader Package Description org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.search Code to search indices. -
-
Uses of AtomicReader in org.apache.lucene.index
Subclasses of AtomicReader in org.apache.lucene.index Modifier and Type Class Description classFilterAtomicReaderAFilterAtomicReadercontains another AtomicReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.classParallelAtomicReaderAnAtomicReaderwhich reads multiple, parallel indexes.classSegmentReaderIndexReader implementation over a single segment.classSlowCompositeReaderWrapperThis class forces a composite reader (eg aMultiReaderorDirectoryReader) to emulate an atomic reader.Fields in org.apache.lucene.index declared as AtomicReader Modifier and Type Field Description protected AtomicReaderFilterAtomicReader. inThe underlying AtomicReader.Fields in org.apache.lucene.index with type parameters of type AtomicReader Modifier and Type Field Description List<AtomicReader>MergeState. readersReaders being merged.Methods in org.apache.lucene.index that return AtomicReader Modifier and Type Method Description AtomicReaderAtomicReaderContext. reader()AtomicReaderFilterDirectoryReader.StandardReaderWrapper. wrap(AtomicReader reader)abstract AtomicReaderFilterDirectoryReader.SubReaderWrapper. wrap(AtomicReader reader)Wrap one of the parent DirectoryReader's subreadersstatic AtomicReaderSlowCompositeReaderWrapper. wrap(IndexReader reader)This method is sugar for getting anAtomicReaderfrom anIndexReaderof any kind.Methods in org.apache.lucene.index that return types with arguments of type AtomicReader Modifier and Type Method Description List<AtomicReader>MergePolicy.OneMerge. getMergeReaders()Expert: Get the list of readers to merge.Methods in org.apache.lucene.index with parameters of type AtomicReader Modifier and Type Method Description static MergeState.DocMapMergeState.DocMap. build(AtomicReader reader)Creates aMergeState.DocMapinstance appropriate for this reader.TermsEnumDocTermOrds. getOrdTermsEnum(AtomicReader reader)Returns a TermsEnum that implements ord.SortedSetDocValuesDocTermOrds. iterator(AtomicReader reader)Returns a SortedSetDocValues view of this instancestatic CheckIndex.Status.DocValuesStatusCheckIndex. testDocValues(AtomicReader reader, PrintStream infoStream)Test docvalues.static CheckIndex.Status.FieldNormStatusCheckIndex. testFieldNorms(AtomicReader reader, PrintStream infoStream)Test field norms.static CheckIndex.Status.TermIndexStatusCheckIndex. testPostings(AtomicReader reader, PrintStream infoStream)Test the term index.static CheckIndex.Status.TermIndexStatusCheckIndex. testPostings(AtomicReader reader, PrintStream infoStream, boolean verbose)Test the term index.static CheckIndex.Status.StoredFieldStatusCheckIndex. testStoredFields(AtomicReader reader, PrintStream infoStream)Test stored fields.static CheckIndex.Status.TermVectorStatusCheckIndex. testTermVectors(AtomicReader reader, PrintStream infoStream)Test term vectors.static CheckIndex.Status.TermVectorStatusCheckIndex. testTermVectors(AtomicReader reader, PrintStream infoStream, boolean verbose, boolean crossCheckTermVectors)Test term vectors.protected voidDocTermOrds. uninvert(AtomicReader reader, Bits liveDocs, BytesRef termPrefix)Call this only once (if you subclass!)abstract voidIndexWriter.IndexReaderWarmer. warm(AtomicReader reader)Invoked on theAtomicReaderfor the newly merged segment, before that segment is made visible to near-real-time readers.voidSimpleMergedSegmentWarmer. warm(AtomicReader reader)AtomicReaderFilterDirectoryReader.StandardReaderWrapper. wrap(AtomicReader reader)abstract AtomicReaderFilterDirectoryReader.SubReaderWrapper. wrap(AtomicReader reader)Wrap one of the parent DirectoryReader's subreadersConstructors in org.apache.lucene.index with parameters of type AtomicReader Constructor Description DirectoryReader(Directory directory, AtomicReader[] segmentReaders)Expert: Constructs aDirectoryReaderon 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).FilterAtomicReader(AtomicReader in)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 AtomicReader Modifier and Type Method Description protected DocIdSetCachingWrapperFilter. cacheImpl(DocIdSetIterator iterator, AtomicReader reader)Default cache implementation: usesWAH8DocIdSet.protected DocIdSetCachingWrapperFilter. docIdSetToCache(DocIdSet docIdSet, AtomicReader reader)Provide the DocIdSet to be cached, using the DocIdSet provided by the wrapped Filter.FieldCache.BytesFieldCache. getBytes(AtomicReader reader, String field, boolean setDocsWithField)Deprecated.(4.4) Index as a numeric field usingIntFieldand then useFieldCache.getInts(AtomicReader, String, boolean)instead.FieldCache.BytesFieldCache. getBytes(AtomicReader reader, String field, FieldCache.ByteParser parser, boolean setDocsWithField)Deprecated.(4.4) Index as a numeric field usingIntFieldand then useFieldCache.getInts(AtomicReader, String, boolean)instead.BitsFieldCache. getDocsWithField(AtomicReader reader, String field)Checks the internal cache for an appropriate entry, and if none is found, reads the terms infieldand returns a bit set at the size ofreader.maxDoc(), with turned on bits for each docid that does have a value for this field.SortedSetDocValuesFieldCache. getDocTermOrds(AtomicReader reader, String field)Checks the internal cache for an appropriate entry, and if none is found, reads the term values infieldand returns aDocTermOrdsinstance, providing a method to retrieve the terms (as ords) per document.FieldCache.DoublesFieldCache. getDoubles(AtomicReader reader, String field, boolean setDocsWithField)Returns aFieldCache.Doublesover the values found in documents in the given field.FieldCache.DoublesFieldCache. getDoubles(AtomicReader reader, String field, FieldCache.DoubleParser parser, boolean setDocsWithField)Returns aFieldCache.Doublesover the values found in documents in the given field.FieldCache.FloatsFieldCache. getFloats(AtomicReader reader, String field, boolean setDocsWithField)Returns aFieldCache.Floatsover the values found in documents in the given field.FieldCache.FloatsFieldCache. getFloats(AtomicReader reader, String field, FieldCache.FloatParser parser, boolean setDocsWithField)Returns aFieldCache.Floatsover the values found in documents in the given field.FieldCache.IntsFieldCache. getInts(AtomicReader reader, String field, boolean setDocsWithField)Returns anFieldCache.Intsover the values found in documents in the given field.FieldCache.IntsFieldCache. getInts(AtomicReader reader, String field, FieldCache.IntParser parser, boolean setDocsWithField)Returns anFieldCache.Intsover the values found in documents in the given field.FieldCache.LongsFieldCache. getLongs(AtomicReader reader, String field, boolean setDocsWithField)Returns aFieldCache.Longsover the values found in documents in the given field.FieldCache.LongsFieldCache. getLongs(AtomicReader reader, String field, FieldCache.LongParser parser, boolean setDocsWithField)Returns aFieldCache.Longsover the values found in documents in the given field.FieldCache.ShortsFieldCache. getShorts(AtomicReader reader, String field, boolean setDocsWithField)Deprecated.(4.4) Index as a numeric field usingIntFieldand then useFieldCache.getInts(AtomicReader, String, boolean)instead.FieldCache.ShortsFieldCache. getShorts(AtomicReader reader, String field, FieldCache.ShortParser parser, boolean setDocsWithField)Deprecated.(4.4) Index as a numeric field usingIntFieldand then useFieldCache.getInts(AtomicReader, String, boolean)instead.BinaryDocValuesFieldCache. getTerms(AtomicReader reader, String field, boolean setDocsWithField)Checks the internal cache for an appropriate entry, and if none is found, reads the term values infieldand returns aBinaryDocValuesinstance, providing a method to retrieve the term (as a BytesRef) per document.BinaryDocValuesFieldCache. 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").SortedDocValuesFieldCache. getTermsIndex(AtomicReader reader, String field)Checks the internal cache for an appropriate entry, and if none is found, reads the term values infieldand returns aSortedDocValuesinstance, providing methods to retrieve sort ordinals and terms (as a ByteRef) per document.SortedDocValuesFieldCache. 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").
-