Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Method and Description |
---|---|
SegmentInfos |
SegmentInfos.range(int first,
int last)
Returns a new SegmentInfos containing the SegmentInfo
instances in the specified range first (inclusive) to
last (exclusive), so total number of segments returned
is last-first.
|
Modifier and Type | Method and Description |
---|---|
abstract MergePolicy.MergeSpecification |
MergePolicy.findMerges(SegmentInfos segmentInfos)
Determine what set of merge operations are now necessary on the index.
|
MergePolicy.MergeSpecification |
LogMergePolicy.findMerges(SegmentInfos infos)
Checks if any merges are now necessary and returns a
MergePolicy.MergeSpecification if so. |
abstract MergePolicy.MergeSpecification |
MergePolicy.findMergesForOptimize(SegmentInfos segmentInfos,
int maxSegmentCount,
java.util.Set segmentsToOptimize)
Determine what set of merge operations is necessary in order to optimize
the index.
|
MergePolicy.MergeSpecification |
LogMergePolicy.findMergesForOptimize(SegmentInfos infos,
int maxNumSegments,
java.util.Set segmentsToOptimize)
Returns the merges necessary to optimize the index.
|
abstract MergePolicy.MergeSpecification |
MergePolicy.findMergesToExpungeDeletes(SegmentInfos segmentInfos)
Determine what set of merge operations is necessary in order to expunge all
deletes from the index.
|
MergePolicy.MergeSpecification |
LogMergePolicy.findMergesToExpungeDeletes(SegmentInfos segmentInfos)
Finds merges necessary to expunge all deletes from the
index.
|
protected MergePolicy.OneMerge |
LogMergePolicy.makeOneMerge(SegmentInfos infos,
SegmentInfos infosToMerge) |
abstract boolean |
MergePolicy.useCompoundDocStore(SegmentInfos segments)
Returns true if the doc store files should use the
compound file format.
|
boolean |
LogMergePolicy.useCompoundDocStore(SegmentInfos infos) |
abstract boolean |
MergePolicy.useCompoundFile(SegmentInfos segments,
SegmentInfo newSegment)
Returns true if a newly flushed (not from merge)
segment should use the compound file format.
|
boolean |
LogMergePolicy.useCompoundFile(SegmentInfos infos,
SegmentInfo info) |
Constructor and Description |
---|
OneMerge(SegmentInfos segments,
boolean useCompoundFile) |
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.