|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.MergePolicy
org.apache.lucene.index.LogMergePolicy
org.apache.lucene.index.LogDocMergePolicy
public class LogDocMergePolicy
This is a LogMergePolicy
that measures size of a
segment as the number of documents (not taking deletions
into account).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.lucene.index.MergePolicy |
---|
MergePolicy.MergeAbortedException, MergePolicy.MergeException, MergePolicy.MergeSpecification, MergePolicy.OneMerge |
Field Summary | |
---|---|
static int |
DEFAULT_MIN_MERGE_DOCS
Default minimum segment size. |
Fields inherited from class org.apache.lucene.index.LogMergePolicy |
---|
calibrateSizeByDeletes, DEFAULT_MAX_MERGE_DOCS, DEFAULT_MERGE_FACTOR, DEFAULT_NO_CFS_RATIO, LEVEL_LOG_SPAN, noCFSRatio |
Fields inherited from class org.apache.lucene.index.MergePolicy |
---|
writer |
Constructor Summary | |
---|---|
LogDocMergePolicy(IndexWriter writer)
|
Method Summary | |
---|---|
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(SegmentInfo info)
|
Methods inherited from class org.apache.lucene.index.LogMergePolicy |
---|
close, findMerges, findMergesForOptimize, findMergesToExpungeDeletes, getCalibrateSizeByDeletes, getMaxMergeDocs, getMergeFactor, getNoCFSRatio, getUseCompoundDocStore, getUseCompoundFile, makeOneMerge, setCalibrateSizeByDeletes, setMaxMergeDocs, setMergeFactor, setNoCFSRatio, setUseCompoundDocStore, setUseCompoundFile, sizeBytes, sizeDocs, useCompoundDocStore, useCompoundFile, verbose |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MIN_MERGE_DOCS
Constructor Detail |
---|
public LogDocMergePolicy(IndexWriter writer)
Method Detail |
---|
protected long size(SegmentInfo info) throws java.io.IOException
size
in class LogMergePolicy
java.io.IOException
public void setMinMergeDocs(int minMergeDocs)
public int getMinMergeDocs()
setMinMergeDocs(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |