Uses of Class
org.apache.lucene.index.LeafReader
-
Packages that use LeafReader Package Description org.apache.lucene.document The logical representation of aDocumentfor indexing and searching.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.index.memory High-performance single-document main memory Apache Lucene fulltext search index.org.apache.lucene.monitor Monitoring frameworkorg.apache.lucene.search Code to search indices.org.apache.lucene.search.highlight Highlighting search terms.org.apache.lucene.search.join Support for index-time and query-time joins.org.apache.lucene.search.suggest.document Support for document suggestionorg.apache.lucene.search.uhighlight The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis. -
-
Uses of LeafReader in org.apache.lucene.document
Methods in org.apache.lucene.document with parameters of type LeafReader Modifier and Type Method Description private ScorerSpatialQuery.RelationScorerSupplier. getContainsDenseScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode)private ScorerSpatialQuery.RelationScorerSupplier. getDenseScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode)Scorer used for WITHIN and DISJOINTprotected ScorerSpatialQuery.RelationScorerSupplier. getScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode)private ScorerSpatialQuery.RelationScorerSupplier. getSparseScorer(LeafReader reader, Weight weight, float boost, ScoreMode scoreMode)Scorer used for INTERSECTS and single value pointsprivate BinaryRangeDocValuesBinaryRangeFieldRangeQuery. getValues(LeafReader reader, java.lang.String field)(package private) abstract SortedNumericDocValuesSortedNumericDocValuesRangeQuery. getValues(LeafReader reader, java.lang.String field)(package private) abstract SortedSetDocValuesSortedSetDocValuesRangeQuery. getValues(LeafReader reader, java.lang.String field) -
Uses of LeafReader in org.apache.lucene.index
Subclasses of LeafReader in org.apache.lucene.index Modifier and Type Class Description classCodecReaderLeafReader implemented by codec APIs.(package private) classDocValuesLeafReaderstatic classExitableDirectoryReader.ExitableFilterAtomicReaderWrapper class for another FilterAtomicReader.classFilterCodecReaderAFilterCodecReadercontains another CodecReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.classFilterLeafReaderAFilterLeafReadercontains another LeafReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.(package private) classMergeReaderWrapperThis is a hack to make index sorting fast, with aLeafReaderthat always returns merge instances when you ask for the codec readers.private static classMultiPassIndexSplitter.FakeDeleteLeafIndexReaderclassParallelLeafReaderAnLeafReaderwhich reads multiple, parallel indexes.private static classPKIndexSplitter.DocumentFilteredLeafIndexReaderclassSegmentReaderIndexReader implementation over a single segment.(package private) static classSoftDeletesDirectoryReaderWrapper.SoftDeletesFilterCodecReader(package private) static classSoftDeletesDirectoryReaderWrapper.SoftDeletesFilterLeafReaderclassSortingCodecReaderAnCodecReaderwhich supports sorting documents by a givenSort.Fields in org.apache.lucene.index declared as LeafReader Modifier and Type Field Description protected LeafReaderFilterLeafReader. inThe underlying LeafReader.private LeafReader[]ParallelLeafReader. parallelReadersprivate LeafReaderLeafReaderContext. readerprivate LeafReaderSoftDeletesDirectoryReaderWrapper.SoftDeletesFilterCodecReader. readerprivate LeafReaderSoftDeletesDirectoryReaderWrapper.SoftDeletesFilterLeafReader. readerprivate LeafReader[]ParallelLeafReader. storedFieldsReadersFields in org.apache.lucene.index with type parameters of type LeafReader Modifier and Type Field Description private java.util.Set<LeafReader>ParallelLeafReader. completeReaderSetprivate java.util.SortedMap<java.lang.String,LeafReader>ParallelLeafReader. fieldToReaderprivate java.util.Map<IndexReader.CacheKey,LeafReader>SoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper. mappingprivate java.util.Map<java.lang.String,LeafReader>ParallelLeafReader. termsFieldToReaderprivate java.util.SortedMap<java.lang.String,LeafReader>ParallelLeafReader. tvFieldToReaderMethods in org.apache.lucene.index that return LeafReader Modifier and Type Method Description LeafReaderFilterLeafReader. getDelegate()Returns the wrappedLeafReader.private LeafReaderDefaultIndexingChain. getDocValuesLeafReader()LeafReader[]ParallelLeafReader. getParallelReaders()Returns theLeafReaders that were passed on init.private static LeafReader[]ParallelCompositeReader. prepareLeafReaders(CompositeReader[] readers, CompositeReader[] storedFieldsReaders)LeafReaderLeafReaderContext. reader()static LeafReaderFilterLeafReader. unwrap(LeafReader reader)Get the wrapped instance byreaderas long as this reader is an instance ofFilterLeafReader.LeafReaderExitableDirectoryReader.ExitableSubReaderWrapper. wrap(LeafReader reader)protected LeafReader[]FilterDirectoryReader.SubReaderWrapper. wrap(java.util.List<? extends LeafReader> readers)Wraps a list of LeafReadersabstract LeafReaderFilterDirectoryReader.SubReaderWrapper. wrap(LeafReader reader)Wrap one of the parent DirectoryReader's subreadersprotected LeafReader[]SoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper. wrap(java.util.List<? extends LeafReader> readers)LeafReaderSoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper. wrap(LeafReader reader)(package private) static LeafReaderSoftDeletesDirectoryReaderWrapper. wrap(LeafReader reader, java.lang.String field)Methods in org.apache.lucene.index with parameters of type LeafReader Modifier and Type Method Description private static booleanSoftDeletesDirectoryReaderWrapper. assertDocCounts(int expectedNumDocs, int numSoftDeletes, LeafReader reader)private static voidDocValues. checkField(LeafReader in, java.lang.String field, DocValuesType... expected)NumericDocValuesIndexSorter.NumericDocValuesProvider. get(LeafReader reader)Returns the NumericDocValues instance for this LeafReaderSortedDocValuesIndexSorter.SortedDocValuesProvider. get(LeafReader reader)Returns the SortedDocValues instance for this LeafReaderstatic BinaryDocValuesDocValues. getBinary(LeafReader reader, java.lang.String field)Returns BinaryDocValues for the field, orDocValues.emptyBinary()if it has none.IndexSorter.DocComparatorIndexSorter.DoubleSorter. getDocComparator(LeafReader reader, int maxDoc)IndexSorter.DocComparatorIndexSorter.FloatSorter. getDocComparator(LeafReader reader, int maxDoc)IndexSorter.DocComparatorIndexSorter. getDocComparator(LeafReader reader, int maxDoc)Get a comparator that determines the sort order of docs within a single Reader.IndexSorter.DocComparatorIndexSorter.IntSorter. getDocComparator(LeafReader reader, int maxDoc)IndexSorter.DocComparatorIndexSorter.LongSorter. getDocComparator(LeafReader reader, int maxDoc)IndexSorter.DocComparatorIndexSorter.StringSorter. getDocComparator(LeafReader reader, int maxDoc)static NumericDocValuesDocValues. getNumeric(LeafReader reader, java.lang.String field)Returns NumericDocValues for the field, orDocValues.emptyNumeric()if it has none.static SortedDocValuesDocValues. getSorted(LeafReader reader, java.lang.String field)Returns SortedDocValues for the field, orDocValues.emptySorted()if it has none.static SortedNumericDocValuesDocValues. getSortedNumeric(LeafReader reader, java.lang.String field)Returns SortedNumericDocValues for the field, orDocValues.emptySortedNumeric()if it has none.static SortedSetDocValuesDocValues. getSortedSet(LeafReader reader, java.lang.String field)Returns SortedSetDocValues for the field, orDocValues.emptySortedSet()if it has none.private static PointsReaderSlowCodecReaderWrapper. pointValuesToReader(LeafReader reader)private static DocValuesProducerSlowCodecReaderWrapper. readerToDocValuesProducer(LeafReader reader)private static FieldsProducerSlowCodecReaderWrapper. readerToFieldsProducer(LeafReader reader)private static NormsProducerSlowCodecReaderWrapper. readerToNormsProducer(LeafReader reader)private static StoredFieldsReaderSlowCodecReaderWrapper. readerToStoredFieldsReader(LeafReader reader)private static TermVectorsReaderSlowCodecReaderWrapper. readerToTermVectorsReader(LeafReader reader)(package private) Sorter.DocMapSorter. sort(LeafReader reader)Returns a mapping from the old document ID to its new location in the sorted index.static LeafReaderFilterLeafReader. unwrap(LeafReader reader)Get the wrapped instance byreaderas long as this reader is an instance ofFilterLeafReader.voidIndexWriter.IndexReaderWarmer. warm(LeafReader reader)Invoked on theLeafReaderfor the newly merged segment, before that segment is made visible to near-real-time readers.voidSimpleMergedSegmentWarmer. warm(LeafReader reader)LeafReaderExitableDirectoryReader.ExitableSubReaderWrapper. wrap(LeafReader reader)abstract LeafReaderFilterDirectoryReader.SubReaderWrapper. wrap(LeafReader reader)Wrap one of the parent DirectoryReader's subreadersstatic CodecReaderSlowCodecReaderWrapper. wrap(LeafReader reader)Returns aCodecReaderview of reader.LeafReaderSoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper. wrap(LeafReader reader)(package private) static LeafReaderSoftDeletesDirectoryReaderWrapper. wrap(LeafReader reader, java.lang.String field)Method parameters in org.apache.lucene.index with type arguments of type LeafReader Modifier and Type Method Description IndexSorter.ComparableProvider[]IndexSorter.DoubleSorter. getComparableProviders(java.util.List<? extends LeafReader> readers)IndexSorter.ComparableProvider[]IndexSorter.FloatSorter. getComparableProviders(java.util.List<? extends LeafReader> readers)IndexSorter.ComparableProvider[]IndexSorter. getComparableProviders(java.util.List<? extends LeafReader> readers)Get an array ofIndexSorter.ComparableProvider, one per segment, for merge sorting documents in different segmentsIndexSorter.ComparableProvider[]IndexSorter.IntSorter. getComparableProviders(java.util.List<? extends LeafReader> readers)IndexSorter.ComparableProvider[]IndexSorter.LongSorter. getComparableProviders(java.util.List<? extends LeafReader> readers)IndexSorter.ComparableProvider[]IndexSorter.StringSorter. getComparableProviders(java.util.List<? extends LeafReader> readers)static DirectoryReaderStandardDirectoryReader. open(Directory directory, SegmentInfos infos, java.util.List<? extends LeafReader> oldReaders)This constructor is only used forStandardDirectoryReader.doOpenIfChanged(SegmentInfos), as well as NRT replication.protected LeafReader[]FilterDirectoryReader.SubReaderWrapper. wrap(java.util.List<? extends LeafReader> readers)Wraps a list of LeafReadersprotected LeafReader[]SoftDeletesDirectoryReaderWrapper.SoftDeletesSubReaderWrapper. wrap(java.util.List<? extends LeafReader> readers)Constructors in org.apache.lucene.index with parameters of type LeafReader Constructor Description DirectoryReader(Directory directory, LeafReader[] segmentReaders)Expert: Constructs aDirectoryReaderon the given subReaders.ExitableFilterAtomicReader(LeafReader in, QueryTimeout queryTimeout)ConstructorFilterLeafReader(LeafReader in)Construct a FilterLeafReader based on the specified base reader.LeafReaderContext(CompositeReaderContext parent, LeafReader reader, int ord, int docBase, int leafOrd, int leafDocBase)Creates a newLeafReaderContextLeafReaderContext(LeafReader leafReader)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().SoftDeletesFilterLeafReader(LeafReader reader, FixedBitSet bits, int numDocs)StandardDirectoryReader(Directory directory, LeafReader[] readers, IndexWriter writer, SegmentInfos sis, boolean applyAllDeletes, boolean writeAllDeletes)called only from static open() methodsTermDocsIterator(LeafReader reader, boolean sortedTerms)Constructor parameters in org.apache.lucene.index with type arguments of type LeafReader Constructor Description SoftDeletesSubReaderWrapper(java.util.Map<IndexReader.CacheKey,LeafReader> oldReadersCache, java.lang.String field) -
Uses of LeafReader in org.apache.lucene.index.memory
Subclasses of LeafReader in org.apache.lucene.index.memory Modifier and Type Class Description private classMemoryIndex.MemoryIndexReaderSearch support for Lucene framework integration; implements all methods required by the Lucene IndexReader contracts. -
Uses of LeafReader in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as LeafReader Modifier and Type Field Description private LeafReaderDocumentBatch.MultiDocumentBatch. readerprivate LeafReaderDocumentBatch.SingletonDocumentBatch. readerMethods in org.apache.lucene.monitor that return LeafReader Modifier and Type Method Description private LeafReaderDocumentBatch.MultiDocumentBatch. build(IndexWriter writer, Document... docs)LeafReaderDocumentBatch.MultiDocumentBatch. get()LeafReaderDocumentBatch.SingletonDocumentBatch. get()Methods in org.apache.lucene.monitor with parameters of type LeafReader Modifier and Type Method Description private QueryTermFilteredPresearcher. buildFilterClause(LeafReader reader, java.lang.String field)private QueryTermFilteredPresearcher. buildFilterFields(LeafReader reader)abstract QueryPresearcher. buildQuery(LeafReader reader, java.util.function.BiPredicate<java.lang.String,BytesRef> termAcceptor)Build a query for a Monitor's queryindex from a LeafReader over a set of documents to monitor.QueryTermFilteredPresearcher. buildQuery(LeafReader reader, java.util.function.BiPredicate<java.lang.String,BytesRef> termAcceptor) -
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 DocIdSetIteratorDocValuesFieldExistsQuery. getDocValuesDocIdSetIterator(java.lang.String field, LeafReader reader)Returns aDocIdSetIteratorfrom 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.private NumericDocValuesSortedNumericSortField. getValue(LeafReader reader)private SortedDocValuesSortedSetSortField. getValues(LeafReader reader)private static booleanPhraseQuery. termNotInReader(LeafReader reader, Term term)private booleanTermQuery.TermWeight. termNotInReader(LeafReader reader, Term term)Constructors in org.apache.lucene.search with parameters of type LeafReader Constructor Description LeafSimScorer(Similarity.SimScorer scorer, LeafReader reader, java.lang.String field, boolean needsScores)Sole constructor: Score documents ofreaderwithscorer.MultiNormsLeafSimScorer(Similarity.SimScorer scorer, LeafReader reader, java.util.Collection<BM25FQuery.FieldAndWeight> normFields, boolean needsScores)Sole constructor: Score documents ofreaderwithscorer. -
Uses of LeafReader in org.apache.lucene.search.highlight
Subclasses of LeafReader in org.apache.lucene.search.highlight Modifier and Type Class Description classTermVectorLeafReaderWraps a Terms with aLeafReader, typically from term vectors.(package private) static classWeightedSpanTermExtractor.DelegatingLeafReaderFields in org.apache.lucene.search.highlight declared as LeafReader Modifier and Type Field Description private LeafReaderWeightedSpanTermExtractor. internalReaderConstructors in org.apache.lucene.search.highlight with parameters of type LeafReader Constructor Description DelegatingLeafReader(LeafReader in) -
Uses of LeafReader in org.apache.lucene.search.join
Methods in org.apache.lucene.search.join with parameters of type LeafReader Modifier and Type Method Description RDocValuesTermsCollector.Function. apply(LeafReader t) -
Uses of LeafReader in org.apache.lucene.search.suggest.document
Fields in org.apache.lucene.search.suggest.document declared as LeafReader Modifier and Type Field Description (package private) LeafReaderCompletionScorer. readerConstructors in org.apache.lucene.search.suggest.document with parameters of type LeafReader Constructor Description CompletionScorer(CompletionWeight weight, NRTSuggester suggester, LeafReader reader, Bits filterDocs, boolean filtered, Automaton automaton)Creates a scorer for a field-specificsuggesterscoped byacceptDocs -
Uses of LeafReader in org.apache.lucene.search.uhighlight
Subclasses of LeafReader in org.apache.lucene.search.uhighlight Modifier and Type Class Description classOverlaySingleDocTermsLeafReaderOverlays a 2nd LeafReader for the terms of one field, otherwise the primary reader is consulted.private static classPhraseHelper.SingleFieldWithOffsetsFilterLeafReaderNeeded to support the ability to highlight a query irrespective of the field a query refers to (aka requireFieldMatch=false).(package private) classTermVectorFilteredLeafReaderA filtered LeafReader that only includes the terms that are also in a provided set of terms.private static classUnifiedHighlighter.TermVectorReusingLeafReaderWraps an IndexReader that remembers/caches the last call toIndexReader.getTermVectors(int)so that if the next call has the same ID, then it is reused.Fields in org.apache.lucene.search.uhighlight declared as LeafReader Modifier and Type Field Description private LeafReaderOverlaySingleDocTermsLeafReader. in2private LeafReaderMemoryIndexOffsetStrategy. memIndexLeafReaderMethods in org.apache.lucene.search.uhighlight with parameters of type LeafReader Modifier and Type Method Description protected OffsetsEnumFieldOffsetStrategy. createOffsetsEnumFromReader(LeafReader leafReader, int doc)voidPhraseHelper. createOffsetsEnumsForSpans(LeafReader leafReader, int docId, java.util.List<OffsetsEnum> results)Given the internal SpanQueries, produce a number of OffsetsEnum into theresultsparam.protected voidFieldOffsetStrategy. createOffsetsEnumsWeightMatcher(LeafReader _leafReader, int docId, java.util.List<OffsetsEnum> results)abstract OffsetsEnumFieldOffsetStrategy. getOffsetsEnum(LeafReader reader, int docId, java.lang.String content)The primary method -- return offsets for highlightable words in the specified document.OffsetsEnumMemoryIndexOffsetStrategy. getOffsetsEnum(LeafReader reader, int docId, java.lang.String content)OffsetsEnumNoOpOffsetStrategy. getOffsetsEnum(LeafReader reader, int docId, java.lang.String content)OffsetsEnumPostingsOffsetStrategy. getOffsetsEnum(LeafReader reader, int docId, java.lang.String content)OffsetsEnumPostingsWithTermVectorsOffsetStrategy. getOffsetsEnum(LeafReader leafReader, int docId, java.lang.String content)OffsetsEnumTermVectorOffsetStrategy. getOffsetsEnum(LeafReader reader, int docId, java.lang.String content)OffsetsEnumTokenStreamOffsetStrategy. getOffsetsEnum(LeafReader reader, int docId, java.lang.String content)java.lang.ObjectFieldHighlighter. highlightFieldForDoc(LeafReader reader, int docId, java.lang.String content)The primary method -- highlight this doc, assuming a specific field and given this content.Constructors in org.apache.lucene.search.uhighlight with parameters of type LeafReader Constructor Description OverlaySingleDocTermsLeafReader(LeafReader in, LeafReader in2, java.lang.String in2Field, int in2TargetDocId)SingleFieldWithOffsetsFilterLeafReader(LeafReader in, java.lang.String fieldName)TermVectorFilteredLeafReader(LeafReader baseLeafReader, Terms filterTerms, java.lang.String fieldFilter)Construct a FilterLeafReader based on the specified base reader.TermVectorReusingLeafReader(LeafReader in)
-