Uses of Class
org.apache.lucene.index.LeafReader
-
-
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.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.classSegmentReaderIndexReader implementation over a single segment.Fields in org.apache.lucene.index declared as LeafReader Modifier and Type Field Description protected LeafReaderFilterLeafReader. inThe underlying LeafReader.Methods in org.apache.lucene.index that return LeafReader Modifier and Type Method Description LeafReaderFilterLeafReader. getDelegate()Returns the wrappedLeafReader.LeafReaderLeafReaderContext. reader()static LeafReaderFilterLeafReader. unwrap(LeafReader reader)Get the wrapped instance byreaderas long as this reader is an instance ofFilterLeafReader.protected LeafReader[]FilterDirectoryReader.SubReaderWrapper. wrap(List<? extends LeafReader> readers)Wraps a list of LeafReadersabstract LeafReaderFilterDirectoryReader.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 BinaryDocValuesDocValues. getBinary(LeafReader reader, String field)Returns BinaryDocValues for the field, orDocValues.emptyBinary()if it has none.static NumericDocValuesDocValues. getNumeric(LeafReader reader, String field)Returns NumericDocValues for the field, orDocValues.emptyNumeric()if it has none.static SortedDocValuesDocValues. getSorted(LeafReader reader, String field)Returns SortedDocValues for the field, orDocValues.emptySorted()if it has none.static SortedNumericDocValuesDocValues. getSortedNumeric(LeafReader reader, String field)Returns SortedNumericDocValues for the field, orDocValues.emptySortedNumeric(int)if it has none.static SortedSetDocValuesDocValues. getSortedSet(LeafReader reader, String field)Returns SortedSetDocValues for the field, orDocValues.emptySortedSet()if it has none.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.abstract LeafReaderFilterDirectoryReader.SubReaderWrapper. wrap(LeafReader reader)Wrap one of the parent DirectoryReader's subreadersMethod parameters in org.apache.lucene.index with type arguments of type LeafReader Modifier and Type Method Description static DirectoryReaderStandardDirectoryReader. 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 aDirectoryReaderon the given subReaders.FilterLeafReader(LeafReader in)Construct a FilterLeafReader based on the specified base reader. -
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(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.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 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. -
Uses of LeafReader in org.apache.lucene.search.suggest.document
Constructors 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.Methods 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, List<OffsetsEnum> results)Given the internal SpanQueries, produce a number of OffsetsEnum into theresultsparam.protected voidFieldOffsetStrategy. createOffsetsEnumsWeightMatcher(LeafReader _leafReader, int docId, List<OffsetsEnum> results)abstract OffsetsEnumFieldOffsetStrategy. getOffsetsEnum(LeafReader reader, int docId, String content)The primary method -- return offsets for highlightable words in the specified document.OffsetsEnumMemoryIndexOffsetStrategy. getOffsetsEnum(LeafReader reader, int docId, String content)OffsetsEnumNoOpOffsetStrategy. getOffsetsEnum(LeafReader reader, int docId, String content)OffsetsEnumPostingsOffsetStrategy. getOffsetsEnum(LeafReader reader, int docId, String content)OffsetsEnumPostingsWithTermVectorsOffsetStrategy. getOffsetsEnum(LeafReader leafReader, int docId, String content)OffsetsEnumTermVectorOffsetStrategy. getOffsetsEnum(LeafReader reader, int docId, String content)OffsetsEnumTokenStreamOffsetStrategy. getOffsetsEnum(LeafReader reader, int docId, String content)ObjectFieldHighlighter. highlightFieldForDoc(LeafReader reader, int docId, 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, String in2Field, int in2TargetDocId) -
Uses of LeafReader in org.apache.lucene.spatial.util
Methods in org.apache.lucene.spatial.util with parameters of type LeafReader Modifier and Type Method Description ShapeFieldCache<T>ShapeFieldCacheProvider. getCache(LeafReader reader) -
Uses of LeafReader in org.elasticsearch.common.lucene
Methods in org.elasticsearch.common.lucene that return LeafReader Modifier and Type Method Description static LeafReaderLucene. emptyReader(int maxDoc)Returns an empty leaf reader with the given max docs.Methods in org.elasticsearch.common.lucene with parameters of type LeafReader Modifier and Type Method Description voidShardCoreKeyMap. add(LeafReader reader)Register aLeafReader.static SegmentReaderLucene. segmentReader(LeafReader reader)Tries to extract a segment reader from the given index reader. -
Uses of LeafReader in org.elasticsearch.common.lucene.index
Subclasses of LeafReader in org.elasticsearch.common.lucene.index Modifier and Type Class Description classElasticsearchLeafReaderAFilterLeafReaderthat exposes Elasticsearch internal per shard / index information like the shard ID.Methods in org.elasticsearch.common.lucene.index with parameters of type LeafReader Modifier and Type Method Description static ElasticsearchLeafReaderElasticsearchLeafReader. getElasticsearchLeafReader(LeafReader reader)Constructors in org.elasticsearch.common.lucene.index with parameters of type LeafReader Constructor Description ElasticsearchLeafReader(LeafReader in, ShardId shardId)Construct a FilterLeafReader based on the specified base reader. -
Uses of LeafReader in org.elasticsearch.common.lucene.uid
Fields in org.elasticsearch.common.lucene.uid declared as LeafReader Modifier and Type Field Description LeafReaderVersionsAndSeqNoResolver.DocIdAndVersion. readerConstructors in org.elasticsearch.common.lucene.uid with parameters of type LeafReader Constructor Description DocIdAndVersion(int docId, long version, long seqNo, long primaryTerm, LeafReader reader, int docBase) -
Uses of LeafReader in org.elasticsearch.index.fielddata.plain
Methods in org.elasticsearch.index.fielddata.plain with parameters of type LeafReader Modifier and Type Method Description protected TermsEnumAbstractIndexOrdinalsFieldData. filter(Terms terms, TermsEnum iterator, LeafReader reader)Constructors in org.elasticsearch.index.fielddata.plain with parameters of type LeafReader Constructor Description BinaryDVAtomicFieldData(LeafReader reader, String field) -
Uses of LeafReader in org.elasticsearch.index.shard
Methods in org.elasticsearch.index.shard with parameters of type LeafReader Modifier and Type Method Description static ShardIdShardUtils. extractShardId(LeafReader reader)Tries to extract the shard id from a reader if possible, when its not possible, will return null. -
Uses of LeafReader in org.elasticsearch.search.fetch
Methods in org.elasticsearch.search.fetch that return LeafReader Modifier and Type Method Description LeafReaderFetchSubPhase.HitContext. reader()
-