Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Field and Description |
---|---|
List<SegmentInfo> |
MergePolicy.OneMerge.segments |
Modifier and Type | Method and Description |
---|---|
SegmentInfo |
SegmentInfos.info(int i) |
Modifier and Type | Method and Description |
---|---|
List<SegmentInfo> |
SegmentInfos.asList()
Returns all contained segments as an unmodifiable
List view. |
Set<SegmentInfo> |
SegmentInfos.asSet()
Returns all contained segments as an unmodifiable
Set view. |
Collection<SegmentInfo> |
IndexWriter.getMergingSegments()
Expert: to be used by a
MergePolicy to avoid
selecting merges for segments already being merged. |
Iterator<SegmentInfo> |
SegmentInfos.iterator()
Returns an unmodifiable
Iterator of contained segments in order. |
Modifier and Type | Method and Description |
---|---|
void |
SegmentInfos.add(SegmentInfo si) |
boolean |
SegmentInfos.contains(SegmentInfo si) |
static SegmentReader |
SegmentReader.get(boolean readOnly,
Directory dir,
SegmentInfo si,
int readBufferSize,
boolean doOpenStores,
int termInfosIndexDivisor) |
static SegmentReader |
SegmentReader.get(boolean readOnly,
SegmentInfo si,
int termInfosIndexDivisor) |
int |
SegmentInfos.indexOf(SegmentInfo si) |
protected boolean |
LogMergePolicy.isMerged(SegmentInfo info)
Returns true if this single info is already fully merged (has no
pending norms or deletes, is in the same dir as the
writer, and matches the current compound file setting
|
int |
IndexWriter.numDeletedDocs(SegmentInfo info)
Obtain the number of deleted docs for a pooled reader.
|
void |
SegmentInfos.remove(SegmentInfo si) |
String |
IndexWriter.segString(SegmentInfo info) |
protected boolean |
UpgradeIndexMergePolicy.shouldUpgradeSegment(SegmentInfo si)
Returns if the given segment should be upgraded.
|
protected long |
LogDocMergePolicy.size(SegmentInfo info) |
protected abstract long |
LogMergePolicy.size(SegmentInfo info) |
protected long |
LogByteSizeMergePolicy.size(SegmentInfo info) |
protected long |
LogMergePolicy.sizeBytes(SegmentInfo info) |
protected long |
LogMergePolicy.sizeDocs(SegmentInfo info) |
boolean |
TieredMergePolicy.useCompoundFile(SegmentInfos infos,
SegmentInfo mergedInfo) |
boolean |
LogMergePolicy.useCompoundFile(SegmentInfos infos,
SegmentInfo mergedInfo) |
abstract boolean |
MergePolicy.useCompoundFile(SegmentInfos segments,
SegmentInfo newSegment)
Returns true if a new segment (regardless of its origin) should use the compound file format.
|
boolean |
UpgradeIndexMergePolicy.useCompoundFile(SegmentInfos segments,
SegmentInfo newSegment) |
boolean |
NoMergePolicy.useCompoundFile(SegmentInfos segments,
SegmentInfo newSegment) |
Modifier and Type | Method and Description |
---|---|
void |
SegmentInfos.addAll(Iterable<SegmentInfo> sis) |
MergePolicy.MergeSpecification |
TieredMergePolicy.findForcedMerges(SegmentInfos infos,
int maxSegmentCount,
Map<SegmentInfo,Boolean> segmentsToMerge) |
MergePolicy.MergeSpecification |
LogMergePolicy.findForcedMerges(SegmentInfos infos,
int maxNumSegments,
Map<SegmentInfo,Boolean> segmentsToMerge)
Returns the merges necessary to merge the index down
to a specified number of segments.
|
abstract MergePolicy.MergeSpecification |
MergePolicy.findForcedMerges(SegmentInfos segmentInfos,
int maxSegmentCount,
Map<SegmentInfo,Boolean> segmentsToMerge)
Determine what set of merge operations is necessary in
order to merge to <= the specified segment count.
|
MergePolicy.MergeSpecification |
UpgradeIndexMergePolicy.findForcedMerges(SegmentInfos segmentInfos,
int maxSegmentCount,
Map<SegmentInfo,Boolean> segmentsToMerge) |
MergePolicy.MergeSpecification |
NoMergePolicy.findForcedMerges(SegmentInfos segmentInfos,
int maxSegmentCount,
Map<SegmentInfo,Boolean> segmentsToMerge) |
protected boolean |
LogMergePolicy.isMerged(SegmentInfos infos,
int maxNumSegments,
Map<SegmentInfo,Boolean> segmentsToMerge) |
protected TieredMergePolicy.MergeScore |
TieredMergePolicy.score(List<SegmentInfo> candidate,
boolean hitTooLarge,
long mergingBytes)
Expert: scores one merge; subclasses can override.
|
String |
IndexWriter.segString(Iterable<SegmentInfo> infos) |
Constructor and Description |
---|
MergePolicy.OneMerge(List<SegmentInfo> segments) |