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.OneMerge| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MIN_MERGE_DOCS
Default minimum segment size.
|
DEFAULT_MAX_MERGE_DOCS, DEFAULT_MERGE_FACTOR, LEVEL_LOG_SPAN| Constructor and Description |
|---|
LogDocMergePolicy() |
| 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(org.apache.lucene.index.SegmentInfo info) |
close, findMerges, findMergesForOptimize, findMergesToExpungeDeletes, getMaxMergeDocs, getMergeFactor, getUseCompoundDocStore, getUseCompoundFile, setMaxMergeDocs, setMergeFactor, setUseCompoundDocStore, setUseCompoundFile, useCompoundDocStore, useCompoundFilepublic static final int DEFAULT_MIN_MERGE_DOCS
protected long size(org.apache.lucene.index.SegmentInfo info)
size in class LogMergePolicypublic void setMinMergeDocs(int minMergeDocs)
public int getMinMergeDocs()
setMinMergeDocs(int)Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.