public class LogDocMergePolicy extends LogMergePolicy
LogMergePolicy
that measures size of a
segment as the number of documents (not taking deletions
into account).MergePolicy.MergeAbortedException, MergePolicy.MergeException, MergePolicy.MergeSpecification, MergePolicy.MergeTrigger, MergePolicy.OneMerge
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MIN_MERGE_DOCS
Default minimum segment size.
|
calibrateSizeByDeletes, DEFAULT_MAX_CFS_SEGMENT_SIZE, DEFAULT_MAX_MERGE_DOCS, DEFAULT_MERGE_FACTOR, DEFAULT_NO_CFS_RATIO, LEVEL_LOG_SPAN, maxCFSSegmentSize, maxMergeDocs, maxMergeSize, maxMergeSizeForForcedMerge, mergeFactor, minMergeSize, noCFSRatio, useCompoundFile
writer
Constructor and Description |
---|
LogDocMergePolicy()
Sole constructor, setting all settings to their
defaults.
|
Modifier and Type | Method and Description |
---|---|
int |
getMinMergeDocs()
Get the minimum size for a segment to remain
un-merged.
|
void |
setMinMergeDocs(int minMergeDocs)
Sets the minimum size for the lowest level segments.
|
protected long |
size(SegmentInfoPerCommit info)
Return the size of the provided
SegmentInfoPerCommit . |
close, findForcedDeletesMerges, findForcedMerges, findMerges, getCalibrateSizeByDeletes, getMaxCFSSegmentSizeMB, getMaxMergeDocs, getMergeFactor, getNoCFSRatio, getUseCompoundFile, isMerged, isMerged, message, setCalibrateSizeByDeletes, setMaxCFSSegmentSizeMB, setMaxMergeDocs, setMergeFactor, setNoCFSRatio, setUseCompoundFile, sizeBytes, sizeDocs, toString, useCompoundFile, verbose
clone, setIndexWriter
public static final int DEFAULT_MIN_MERGE_DOCS
public LogDocMergePolicy()
protected long size(SegmentInfoPerCommit info) throws IOException
LogMergePolicy
SegmentInfoPerCommit
.size
in class LogMergePolicy
IOException
public void setMinMergeDocs(int minMergeDocs)
public int getMinMergeDocs()
setMinMergeDocs(int)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.