Uses of Class
org.apache.lucene.index.CodecReader
-
Packages that use CodecReader Package Description org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.misc.index Misc index tools and index support. -
-
Uses of CodecReader in org.apache.lucene.index
Subclasses of CodecReader in org.apache.lucene.index Modifier and Type Class Description class
FilterCodecReader
AFilterCodecReader
contains another CodecReader, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.class
SegmentReader
IndexReader implementation over a single segment.(package private) static class
SoftDeletesDirectoryReaderWrapper.SoftDeletesFilterCodecReader
class
SortingCodecReader
AnCodecReader
which supports sorting documents by a givenSort
.Fields in org.apache.lucene.index declared as CodecReader Modifier and Type Field Description protected CodecReader
FilterCodecReader. in
The underlying CodecReader instance.Methods in org.apache.lucene.index that return CodecReader Modifier and Type Method Description (package private) static CodecReader
SoftDeletesRetentionMergePolicy. applyRetentionQuery(java.lang.String softDeleteField, Query retentionQuery, CodecReader reader)
CodecReader
FilterCodecReader. getDelegate()
Returns the wrappedCodecReader
.private CodecReader
ReadersAndUpdates. getLatestReader()
static CodecReader
FilterCodecReader. unwrap(CodecReader reader)
Get the wrapped instance byreader
as long as this reader is an instance ofFilterCodecReader
.static CodecReader
SlowCodecReaderWrapper. wrap(LeafReader reader)
Returns aCodecReader
view of reader.(package private) static CodecReader
SortingCodecReader. 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 CodecReader
SortingCodecReader. wrap(CodecReader reader, Sort sort)
Return a sorted view ofreader
according to the order defined bysort
.CodecReader
MergePolicy.OneMerge. wrapForMerge(CodecReader reader)
Wrap the reader in order to add/remove information to the merged segment.Methods in org.apache.lucene.index with parameters of type CodecReader Modifier and Type Method Description long
IndexWriter. addIndexes(CodecReader... readers)
Merges the provided indexes into this index.(package private) static CodecReader
SoftDeletesRetentionMergePolicy. applyRetentionQuery(java.lang.String softDeleteField, Query retentionQuery, CodecReader reader)
private boolean
IndexWriter. assertSoftDeletesCount(CodecReader reader, int expectedCount)
private void
IndexWriter. countSoftDeletes(CodecReader reader, Bits wrappedLiveDocs, Bits hardLiveDocs, Counter softDeleteCounter, Counter hardDeleteCounter)
private static Scorer
SoftDeletesRetentionMergePolicy. getScorer(Query query, CodecReader reader)
(package private) boolean
PendingDeletes. needsRefresh(CodecReader reader)
Returns true if the given reader needs to be refreshed in order to see the latest deletes(package private) void
PendingDeletes. onNewReader(CodecReader reader, SegmentCommitInfo info)
Called once a new reader is opened for this segment ie.(package private) void
PendingSoftDeletes. onNewReader(CodecReader reader, SegmentCommitInfo info)
static CheckIndex.Status.DocValuesStatus
CheckIndex. testDocValues(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)
Test docvalues.static CheckIndex.Status.FieldInfoStatus
CheckIndex. testFieldInfos(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)
Test field infos.static CheckIndex.Status.FieldNormStatus
CheckIndex. testFieldNorms(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)
Test field norms.static CheckIndex.Status.LiveDocStatus
CheckIndex. testLiveDocs(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)
Test live docs.static CheckIndex.Status.PointsStatus
CheckIndex. testPoints(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)
Test the points indexstatic CheckIndex.Status.TermIndexStatus
CheckIndex. testPostings(CodecReader reader, java.io.PrintStream infoStream)
Test the term index.static CheckIndex.Status.TermIndexStatus
CheckIndex. testPostings(CodecReader reader, java.io.PrintStream infoStream, boolean verbose, boolean doSlowChecks, boolean failFast)
Test the term index.static CheckIndex.Status.IndexSortStatus
CheckIndex. testSort(CodecReader reader, Sort sort, java.io.PrintStream infoStream, boolean failFast)
Tests index sort order.static CheckIndex.Status.StoredFieldStatus
CheckIndex. testStoredFields(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)
Test stored fields.static CheckIndex.Status.TermVectorStatus
CheckIndex. testTermVectors(CodecReader reader, java.io.PrintStream infoStream)
Test term vectors.static CheckIndex.Status.TermVectorStatus
CheckIndex. testTermVectors(CodecReader reader, java.io.PrintStream infoStream, boolean verbose, boolean doSlowChecks, boolean failFast)
Test term vectors.static CheckIndex.Status.VectorValuesStatus
CheckIndex. testVectors(CodecReader reader, java.io.PrintStream infoStream, boolean failFast)
Test the vectors indexstatic CodecReader
FilterCodecReader. unwrap(CodecReader reader)
Get the wrapped instance byreader
as long as this reader is an instance ofFilterCodecReader
.private void
IndexWriter. validateMergeReader(CodecReader leaf)
(package private) boolean
PendingDeletes. verifyDocCounts(CodecReader reader)
(package private) static CodecReader
SortingCodecReader. 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 CodecReader
SortingCodecReader. wrap(CodecReader reader, Sort sort)
Return a sorted view ofreader
according to the order defined bysort
.CodecReader
MergePolicy.OneMerge. wrapForMerge(CodecReader reader)
Wrap the reader in order to add/remove information to the merged segment.(package private) static FilterCodecReader
FilterCodecReader. 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 void
PendingSoftDeletes. ensureInitialized(IOSupplier<CodecReader> readerIOSupplier)
(package private) boolean
PendingDeletes. isFullyDeleted(IOSupplier<CodecReader> readerIOSupplier)
Returnstrue
iff the segment represented by thisPendingDeletes
is fully deleted(package private) boolean
PendingSoftDeletes. isFullyDeleted(IOSupplier<CodecReader> readerIOSupplier)
boolean
FilterMergePolicy. keepFullyDeletedSegment(IOSupplier<CodecReader> readerIOSupplier)
boolean
MergePolicy. keepFullyDeletedSegment(IOSupplier<CodecReader> readerIOSupplier)
Returns true if the segment represented by the given CodecReader should be keep even if it's fully deleted.boolean
NoMergePolicy. keepFullyDeletedSegment(IOSupplier<CodecReader> readerIOSupplier)
boolean
SoftDeletesRetentionMergePolicy. keepFullyDeletedSegment(IOSupplier<CodecReader> readerIOSupplier)
int
FilterMergePolicy. numDeletesToMerge(SegmentCommitInfo info, int delCount, IOSupplier<CodecReader> readerSupplier)
int
MergePolicy. numDeletesToMerge(SegmentCommitInfo info, int delCount, IOSupplier<CodecReader> readerSupplier)
Returns the number of deletes that a merge would claim on the given segment.int
NoMergePolicy. numDeletesToMerge(SegmentCommitInfo info, int delCount, IOSupplier<CodecReader> readerSupplier)
(package private) int
PendingDeletes. numDeletesToMerge(MergePolicy policy, IOSupplier<CodecReader> readerIOSupplier)
(package private) int
PendingSoftDeletes. numDeletesToMerge(MergePolicy policy, IOSupplier<CodecReader> readerIOSupplier)
int
SoftDeletesRetentionMergePolicy. 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.DocMap
to map each leaf's documents into the merged segment.private static void
MergeState. verifyIndexSort(java.util.List<CodecReader> readers, SegmentInfo segmentInfo)
Constructors in org.apache.lucene.index with parameters of type CodecReader Constructor Description FilterCodecReader(CodecReader in)
Creates a new FilterCodecReader.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> readers, SegmentInfo segmentInfo, InfoStream infoStream)
Sole constructor.SegmentMerger(java.util.List<CodecReader> readers, SegmentInfo segmentInfo, InfoStream infoStream, Directory dir, FieldInfos.FieldNumbers fieldNumbers, IOContext context)
-
Uses of CodecReader in org.apache.lucene.misc.index
Subclasses of CodecReader in org.apache.lucene.misc.index Modifier and Type Class Description private static class
IndexRearranger.DocSelectorFilteredCodecReader
private static class
MultiPassIndexSplitter.FakeDeleteLeafIndexReader
private static class
PKIndexSplitter.DocumentFilteredLeafIndexReader
Methods in org.apache.lucene.misc.index with parameters of type CodecReader Modifier and Type Method Description BitSet
BinaryDocValueSelector. getFilteredLiveDocs(CodecReader reader)
BitSet
IndexRearranger.DocumentSelector. getFilteredLiveDocs(CodecReader reader)
Constructors in org.apache.lucene.misc.index with parameters of type CodecReader Constructor Description DocSelectorFilteredCodecReader(CodecReader in, IndexRearranger.DocumentSelector selector)
FakeDeleteLeafIndexReader(CodecReader reader)
-