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.
|
Modifier and Type | Field and Description |
---|---|
(package private) CodecReader |
MergeReaderWrapper.in |
protected CodecReader |
FilterCodecReader.in
The underlying CodecReader instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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,
boolean verbose,
boolean failFast,
Version version)
Test the term index.
|
static CheckIndex.Status.TermIndexStatus |
CheckIndex.testPostings(CodecReader reader,
java.io.PrintStream infoStream,
Version version)
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,
boolean verbose,
boolean crossCheckTermVectors,
boolean failFast,
Version version)
Test term vectors.
|
static CheckIndex.Status.TermVectorStatus |
CheckIndex.testTermVectors(CodecReader reader,
java.io.PrintStream infoStream,
Version version)
Test term vectors.
|
private void |
IndexWriter.validateMergeReader(CodecReader leaf) |
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 MergeState.DocMap[] |
MergeState.buildDeletionDocMaps(java.util.List<CodecReader> readers) |
private MergeState.DocMap[] |
MergeState.buildDocMaps(java.util.List<CodecReader> readers,
Sort indexSort) |
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. |
private java.util.List<CodecReader> |
MergeState.maybeSortReaders(java.util.List<CodecReader> originalReaders,
SegmentInfo segmentInfo) |
(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) |
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) |