Uses of Class
org.apache.lucene.index.LeafReader
Packages that use LeafReader
Package
Description
Code to maintain and access indices.
Code to search indices.
-
Uses of LeafReader in org.apache.lucene.index
Subclasses of LeafReader in org.apache.lucene.indexModifier and TypeClassDescriptionclassLeafReader implemented by codec APIs.static classWrapper class for another FilterAtomicReader.classAFilterCodecReadercontains another CodecReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.classAFilterLeafReadercontains another LeafReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.classAnLeafReaderwhich reads multiple, parallel indexes.final classIndexReader implementation over a single segment.final classAnCodecReaderwhich supports sorting documents by a givenSort.Fields in org.apache.lucene.index declared as LeafReaderModifier and TypeFieldDescriptionprotected final LeafReaderFilterLeafReader.inThe underlying LeafReader.Fields in org.apache.lucene.index with type parameters of type LeafReaderModifier and TypeFieldDescriptionprotected Comparator<LeafReader> LiveIndexWriterConfig.leafSorterThe comparator for sorting leaf readers.Methods in org.apache.lucene.index that return LeafReaderModifier and TypeMethodDescriptionFilterLeafReader.getDelegate()Returns the wrappedLeafReader.ParallelLeafReader.getParallelReaders()Returns theLeafReaders that were passed on init.LeafReaderContext.reader()static LeafReaderFilterLeafReader.unwrap(LeafReader reader) Get the wrapped instance byreaderas long as this reader is an instance ofFilterLeafReader.ExitableDirectoryReader.ExitableSubReaderWrapper.wrap(LeafReader reader) 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 that return types with arguments of type LeafReaderModifier and TypeMethodDescriptionLiveIndexWriterConfig.getLeafSorter()Returns a comparator for sorting leaf readers.Methods in org.apache.lucene.index with parameters of type LeafReaderModifier and TypeMethodDescriptionstatic voidByteVectorValues.checkField(LeafReader in, String field) Checks the Vector Encoding of a fieldstatic voidFloatVectorValues.checkField(LeafReader in, String field) Checks the Vector Encoding of a fieldIndexSorter.NumericDocValuesProvider.get(LeafReader reader) Returns the NumericDocValues instance for this LeafReaderIndexSorter.SortedDocValuesProvider.get(LeafReader reader) Returns the SortedDocValues instance for this LeafReaderstatic BinaryDocValuesDocValues.getBinary(LeafReader reader, String field) Returns BinaryDocValues for the field, orDocValues.emptyBinary()if it has none.IndexSorter.DoubleSorter.getDocComparator(LeafReader reader, int maxDoc) IndexSorter.FloatSorter.getDocComparator(LeafReader reader, int maxDoc) IndexSorter.getDocComparator(LeafReader reader, int maxDoc) Get a comparator that determines the sort order of docs within a single Reader.IndexSorter.IntSorter.getDocComparator(LeafReader reader, int maxDoc) IndexSorter.LongSorter.getDocComparator(LeafReader reader, int maxDoc) IndexSorter.StringSorter.getDocComparator(LeafReader reader, int maxDoc) 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()if it has none.static SortedSetDocValuesDocValues.getSortedSet(LeafReader reader, String field) Returns SortedSetDocValues for the field, orDocValues.emptySortedSet()if it has none.static TermsTerms.getTerms(LeafReader reader, String field) Returns theTermsindex for this field, orTerms.EMPTYif 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.voidSimpleMergedSegmentWarmer.warm(LeafReader reader) ExitableDirectoryReader.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.Method parameters in org.apache.lucene.index with type arguments of type LeafReaderModifier and TypeMethodDescriptionIndexSorter.DoubleSorter.getComparableProviders(List<? extends LeafReader> readers) IndexSorter.FloatSorter.getComparableProviders(List<? extends LeafReader> readers) IndexSorter.getComparableProviders(List<? extends LeafReader> readers) Get an array ofIndexSorter.ComparableProvider, one per segment, for merge sorting documents in different segmentsIndexSorter.IntSorter.getComparableProviders(List<? extends LeafReader> readers) IndexSorter.LongSorter.getComparableProviders(List<? extends LeafReader> readers) IndexSorter.StringSorter.getComparableProviders(List<? extends LeafReader> readers) static DirectoryReaderDirectoryReader.open(IndexCommit commit, int minSupportedMajorVersion, Comparator<LeafReader> leafSorter) Expert: returns an IndexReader reading the index on the givenIndexCommit.static DirectoryReaderDirectoryReader.open(Directory directory, Comparator<LeafReader> leafSorter) Returns a IndexReader for the index in the given Directorystatic DirectoryReaderStandardDirectoryReader.open(Directory directory, SegmentInfos infos, List<? extends LeafReader> oldReaders, Comparator<LeafReader> leafSorter) This constructor is only used forStandardDirectoryReader.doOpenIfChanged(SegmentInfos), as well as NRT replication.static DirectoryReaderStandardDirectoryReader.open(Directory directory, SegmentInfos infos, List<? extends LeafReader> oldReaders, Comparator<LeafReader> leafSorter) This constructor is only used forStandardDirectoryReader.doOpenIfChanged(SegmentInfos), as well as NRT replication.IndexWriterConfig.setLeafSorter(Comparator<LeafReader> leafSorter) Set the comparator for sorting leaf readers.protected LeafReader[]FilterDirectoryReader.SubReaderWrapper.wrap(List<? extends LeafReader> readers) Wraps a list of LeafReadersConstructors in org.apache.lucene.index with parameters of type LeafReaderModifierConstructorDescriptionprotectedDirectoryReader(Directory directory, LeafReader[] segmentReaders, Comparator<LeafReader> leafSorter) Expert: Constructs aDirectoryReaderon the given subReaders.ExitableFilterAtomicReader(LeafReader in, QueryTimeout queryTimeout) Constructor *protectedConstruct 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().Constructor parameters in org.apache.lucene.index with type arguments of type LeafReaderModifierConstructorDescriptionprotectedDirectoryReader(Directory directory, LeafReader[] segmentReaders, Comparator<LeafReader> leafSorter) Expert: Constructs aDirectoryReaderon the given subReaders. -
Uses of LeafReader in org.apache.lucene.search
Methods in org.apache.lucene.search with parameters of type LeafReaderModifier and TypeMethodDescriptionstatic DocIdSetIteratorFieldExistsQuery.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.