Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Class and Description |
---|---|
class |
FilterCodecReader
A
FilterCodecReader contains another CodecReader, which it
uses as its basic source of data, possibly transforming the data along the
way or providing additional functionality. |
private static class |
MultiPassIndexSplitter.FakeDeleteLeafIndexReader |
private static class |
PKIndexSplitter.DocumentFilteredLeafIndexReader |
class |
SegmentReader
IndexReader implementation over a single segment.
|
(package private) static class |
SoftDeletesDirectoryReaderWrapper.SoftDeletesFilterCodecReader |
Modifier and Type | Field and Description |
---|---|
protected CodecReader |
FilterCodecReader.in
The underlying CodecReader instance.
|
(package private) CodecReader |
MergeReaderWrapper.in |
Modifier and Type | Method and Description |
---|---|
(package private) static CodecReader |
SoftDeletesRetentionMergePolicy.applyRetentionQuery(java.lang.String softDeleteField,
Query retentionQuery,
CodecReader reader) |
CodecReader |
FilterCodecReader.getDelegate()
Returns the wrapped
CodecReader . |
private CodecReader |
ReadersAndUpdates.getLatestReader() |
static CodecReader |
FilterCodecReader.unwrap(CodecReader reader)
Get the wrapped instance by
reader as long as this reader is
an instance of FilterCodecReader . |
static CodecReader |
SlowCodecReaderWrapper.wrap(LeafReader reader)
Returns a
CodecReader view of reader. |
CodecReader |
MergePolicy.OneMerge.wrapForMerge(CodecReader reader)
Wrap the reader in order to add/remove information to the merged segment.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<CodecReader> |
MergeState.maybeSortReaders(java.util.List<CodecReader> originalReaders,
SegmentInfo segmentInfo) |
Modifier and Type | Method and 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 |
PendingSoftDeletes.onNewReader(CodecReader reader,
SegmentCommitInfo info) |
(package private) void |
PendingDeletes.onNewReader(CodecReader reader,
SegmentCommitInfo info)
Called once a new reader is opened for this segment ie.
|
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 index
|
static 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 CodecReader |
FilterCodecReader.unwrap(CodecReader reader)
Get the wrapped instance by
reader as long as this reader is
an instance of FilterCodecReader . |
private void |
IndexWriter.validateMergeReader(CodecReader leaf) |
(package private) boolean |
PendingDeletes.verifyDocCounts(CodecReader reader) |
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.
|
Modifier and Type | Method and 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) |
private static MultiSorter.ComparableProvider[] |
MultiSorter.getComparableProviders(java.util.List<CodecReader> readers,
SortField sortField)
Returns
ComparableProvider s for the provided readers to represent the requested SortField sort order. |
(package private) boolean |
PendingSoftDeletes.isFullyDeleted(IOSupplier<CodecReader> readerIOSupplier) |
(package private) boolean |
PendingDeletes.isFullyDeleted(IOSupplier<CodecReader> readerIOSupplier)
Returns
true iff the segment represented by this PendingDeletes is fully deleted |
boolean |
SoftDeletesRetentionMergePolicy.keepFullyDeletedSegment(IOSupplier<CodecReader> readerIOSupplier) |
boolean |
FilterMergePolicy.keepFullyDeletedSegment(IOSupplier<CodecReader> readerIOSupplier) |
boolean |
NoMergePolicy.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.
|
private java.util.List<CodecReader> |
MergeState.maybeSortReaders(java.util.List<CodecReader> originalReaders,
SegmentInfo segmentInfo) |
(package private) int |
PendingSoftDeletes.numDeletesToMerge(MergePolicy policy,
IOSupplier<CodecReader> readerIOSupplier) |
(package private) int |
PendingDeletes.numDeletesToMerge(MergePolicy policy,
IOSupplier<CodecReader> readerIOSupplier) |
int |
SoftDeletesRetentionMergePolicy.numDeletesToMerge(SegmentCommitInfo info,
int delCount,
IOSupplier<CodecReader> readerSupplier) |
int |
FilterMergePolicy.numDeletesToMerge(SegmentCommitInfo info,
int delCount,
IOSupplier<CodecReader> readerSupplier) |
int |
NoMergePolicy.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.
|
(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, returning
MergeState.DocMap to map each leaf's
documents into the merged segment. |
Constructor and Description |
---|
FakeDeleteLeafIndexReader(CodecReader reader) |
FilterCodecReader(CodecReader in)
Creates a new FilterCodecReader.
|
MergeReaderWrapper(CodecReader in) |
SoftDeletesFilterCodecReader(CodecReader reader,
FixedBitSet bits,
int numDocs) |
Constructor and 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) |