Uses of Class
org.apache.lucene.index.CodecReader
-
Packages that use CodecReader Package Description org.apache.lucene.index Code to maintain and access indices. -
-
Uses of CodecReader in org.apache.lucene.index
Subclasses of CodecReader in org.apache.lucene.index Modifier and Type Class Description classFilterCodecReaderAFilterCodecReadercontains another CodecReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.private static classMultiPassIndexSplitter.FakeDeleteLeafIndexReaderprivate static classPKIndexSplitter.DocumentFilteredLeafIndexReaderclassSegmentReaderIndexReader implementation over a single segment.(package private) static classSoftDeletesDirectoryReaderWrapper.SoftDeletesFilterCodecReaderclassSortingCodecReaderAnCodecReaderwhich supports sorting documents by a givenSort.Fields in org.apache.lucene.index declared as CodecReader Modifier and Type Field Description protected CodecReaderFilterCodecReader. inThe underlying CodecReader instance.(package private) CodecReaderMergeReaderWrapper. inMethods in org.apache.lucene.index that return CodecReader Modifier and Type Method Description (package private) static CodecReaderSoftDeletesRetentionMergePolicy. applyRetentionQuery(java.lang.String softDeleteField, Query retentionQuery, CodecReader reader)CodecReaderFilterCodecReader. getDelegate()Returns the wrappedCodecReader.private CodecReaderReadersAndUpdates. getLatestReader()static CodecReaderFilterCodecReader. unwrap(CodecReader reader)Get the wrapped instance byreaderas long as this reader is an instance ofFilterCodecReader.static CodecReaderSlowCodecReaderWrapper. wrap(LeafReader reader)Returns aCodecReaderview of reader.(package private) static CodecReaderSortingCodecReader. wrap(CodecReader reader, Sorter.DocMap docMap, Sort sort)Expert: same asSortingCodecReader.wrap(org.apache.lucene.index.CodecReader, Sort)but operates directly on aSorter.DocMap.static CodecReaderSortingCodecReader. wrap(CodecReader reader, Sort sort)Return a sorted view ofreaderaccording to the order defined bysort.CodecReaderMergePolicy.OneMerge. wrapForMerge(CodecReader reader)Wrap the reader in order to add/remove information to the merged segment.Methods in org.apache.lucene.index that return types with arguments of type CodecReader Modifier and Type Method Description private java.util.List<CodecReader>MergeState. maybeSortReaders(java.util.List<CodecReader> originalReaders, SegmentInfo segmentInfo)Methods in org.apache.lucene.index with parameters of type CodecReader Modifier and Type Method Description longIndexWriter. addIndexes(CodecReader... readers)Merges the provided indexes into this index.(package private) static CodecReaderSoftDeletesRetentionMergePolicy. applyRetentionQuery(java.lang.String softDeleteField, Query retentionQuery, CodecReader reader)private booleanIndexWriter. assertSoftDeletesCount(CodecReader reader, int expectedCount)private voidIndexWriter. countSoftDeletes(CodecReader reader, Bits wrappedLiveDocs, Bits hardLiveDocs, Counter softDeleteCounter, Counter hardDeleteCounter)private static ScorerSoftDeletesRetentionMergePolicy. getScorer(Query query, CodecReader reader)(package private) booleanPendingDeletes. needsRefresh(CodecReader reader)Returns true if the given reader needs to be refreshed in order to see the latest deletes(package private) voidPendingDeletes. onNewReader(CodecReader reader, SegmentCommitInfo info)Called once a new reader is opened for this segment ie.(package private) voidPendingSoftDeletes. onNewReader(CodecReader reader, SegmentCommitInfo info)static CheckIndex.Status.DocValuesStatusCheckIndex. testDocValues(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)Test docvalues.static CheckIndex.Status.FieldInfoStatusCheckIndex. testFieldInfos(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)Test field infos.static CheckIndex.Status.FieldNormStatusCheckIndex. testFieldNorms(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)Test field norms.static CheckIndex.Status.LiveDocStatusCheckIndex. testLiveDocs(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)Test live docs.static CheckIndex.Status.PointsStatusCheckIndex. testPoints(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)Test the points indexstatic CheckIndex.Status.TermIndexStatusCheckIndex. testPostings(CodecReader reader, java.io.PrintStream infoStream)Test the term index.static CheckIndex.Status.TermIndexStatusCheckIndex. testPostings(CodecReader reader, java.io.PrintStream infoStream, boolean verbose, boolean doSlowChecks, boolean failFast)Test the term index.static CheckIndex.Status.IndexSortStatusCheckIndex. testSort(CodecReader reader, Sort sort, java.io.PrintStream infoStream, boolean failFast)Tests index sort order.static CheckIndex.Status.StoredFieldStatusCheckIndex. testStoredFields(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)Test stored fields.static CheckIndex.Status.TermVectorStatusCheckIndex. testTermVectors(CodecReader reader, java.io.PrintStream infoStream)Test term vectors.static CheckIndex.Status.TermVectorStatusCheckIndex. testTermVectors(CodecReader reader, java.io.PrintStream infoStream, boolean verbose, boolean doSlowChecks, boolean failFast)Test term vectors.static CodecReaderFilterCodecReader. unwrap(CodecReader reader)Get the wrapped instance byreaderas long as this reader is an instance ofFilterCodecReader.private voidIndexWriter. validateMergeReader(CodecReader leaf)(package private) booleanPendingDeletes. verifyDocCounts(CodecReader reader)(package private) static CodecReaderSortingCodecReader. wrap(CodecReader reader, Sorter.DocMap docMap, Sort sort)Expert: same asSortingCodecReader.wrap(org.apache.lucene.index.CodecReader, Sort)but operates directly on aSorter.DocMap.static CodecReaderSortingCodecReader. wrap(CodecReader reader, Sort sort)Return a sorted view ofreaderaccording to the order defined bysort.CodecReaderMergePolicy.OneMerge. wrapForMerge(CodecReader reader)Wrap the reader in order to add/remove information to the merged segment.(package private) static FilterCodecReaderFilterCodecReader. wrapLiveDocs(CodecReader reader, Bits liveDocs, int numDocs)Returns a filtered codec reader with the given live docs and numDocs.Method parameters in org.apache.lucene.index with type arguments of type CodecReader Modifier and Type Method Description private MergeState.DocMap[]MergeState. buildDeletionDocMaps(java.util.List<CodecReader> readers)private MergeState.DocMap[]MergeState. buildDocMaps(java.util.List<CodecReader> readers, Sort indexSort)private voidPendingSoftDeletes. ensureInitialized(IOSupplier<CodecReader> readerIOSupplier)(package private) booleanPendingDeletes. isFullyDeleted(IOSupplier<CodecReader> readerIOSupplier)Returnstrueiff the segment represented by thisPendingDeletesis fully deleted(package private) booleanPendingSoftDeletes. isFullyDeleted(IOSupplier<CodecReader> readerIOSupplier)booleanFilterMergePolicy. keepFullyDeletedSegment(IOSupplier<CodecReader> readerIOSupplier)booleanMergePolicy. keepFullyDeletedSegment(IOSupplier<CodecReader> readerIOSupplier)Returns true if the segment represented by the given CodecReader should be keep even if it's fully deleted.booleanNoMergePolicy. keepFullyDeletedSegment(IOSupplier<CodecReader> readerIOSupplier)booleanSoftDeletesRetentionMergePolicy. keepFullyDeletedSegment(IOSupplier<CodecReader> readerIOSupplier)private java.util.List<CodecReader>MergeState. maybeSortReaders(java.util.List<CodecReader> originalReaders, SegmentInfo segmentInfo)intFilterMergePolicy. numDeletesToMerge(SegmentCommitInfo info, int delCount, IOSupplier<CodecReader> readerSupplier)intMergePolicy. numDeletesToMerge(SegmentCommitInfo info, int delCount, IOSupplier<CodecReader> readerSupplier)Returns the number of deletes that a merge would claim on the given segment.intNoMergePolicy. numDeletesToMerge(SegmentCommitInfo info, int delCount, IOSupplier<CodecReader> readerSupplier)(package private) intPendingDeletes. numDeletesToMerge(MergePolicy policy, IOSupplier<CodecReader> readerIOSupplier)(package private) intPendingSoftDeletes. numDeletesToMerge(MergePolicy policy, IOSupplier<CodecReader> readerIOSupplier)intSoftDeletesRetentionMergePolicy. numDeletesToMerge(SegmentCommitInfo info, int delCount, IOSupplier<CodecReader> readerSupplier)(package private) static MergeState.DocMap[]MultiSorter. sort(Sort sort, java.util.List<CodecReader> readers)Does a merge sort of the leaves of the incoming reader, returningMergeState.DocMapto map each leaf's documents into the merged segment.Constructors in org.apache.lucene.index with parameters of type CodecReader Constructor Description FakeDeleteLeafIndexReader(CodecReader reader)FilterCodecReader(CodecReader in)Creates a new FilterCodecReader.MergeReaderWrapper(CodecReader in)SoftDeletesFilterCodecReader(CodecReader reader, FixedBitSet bits, int numDocs)SortingCodecReader(CodecReader in, Sorter.DocMap docMap, LeafMetaData metaData)Constructor parameters in org.apache.lucene.index with type arguments of type CodecReader Constructor Description MergeState(java.util.List<CodecReader> originalReaders, SegmentInfo segmentInfo, InfoStream infoStream)Sole constructor.SegmentMerger(java.util.List<CodecReader> readers, SegmentInfo segmentInfo, InfoStream infoStream, Directory dir, FieldInfos.FieldNumbers fieldNumbers, IOContext context)
-