public static interface MergePolicy.MergeContext
Modifier and Type | Method and Description |
---|---|
InfoStream |
getInfoStream()
Returns the info stream that can be used to log messages
|
Set<SegmentCommitInfo> |
getMergingSegments()
Returns an unmodifiable set of segments that are currently merging.
|
int |
numDeletedDocs(SegmentCommitInfo info)
Returns the number of deleted documents in the given segments.
|
int |
numDeletesToMerge(SegmentCommitInfo info)
Returns the number of deletes a merge would claim back if the given segment is merged.
|
int numDeletesToMerge(SegmentCommitInfo info) throws IOException
info
- the segment to get the number of deletes forIOException
MergePolicy.numDeletesToMerge(SegmentCommitInfo, int, org.apache.lucene.util.IOSupplier)
int numDeletedDocs(SegmentCommitInfo info)
InfoStream getInfoStream()
Set<SegmentCommitInfo> getMergingSegments()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.