|
|||||||||
| 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 |
|---|
DEFAULT_MAX_MERGE_DOCS, DEFAULT_MERGE_FACTOR, LEVEL_LOG_SPAN |
| Constructor Summary | |
|---|---|
LogDocMergePolicy()
|
|
| 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(org.apache.lucene.index.SegmentInfo info)
|
| Methods inherited from class org.apache.lucene.index.LogMergePolicy |
|---|
close, findMerges, findMergesForOptimize, findMergesToExpungeDeletes, getMaxMergeDocs, getMergeFactor, getUseCompoundDocStore, getUseCompoundFile, setMaxMergeDocs, setMergeFactor, setUseCompoundDocStore, setUseCompoundFile, useCompoundDocStore, useCompoundFile |
| 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()
| Method Detail |
|---|
protected long size(org.apache.lucene.index.SegmentInfo info)
size in class LogMergePolicypublic 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 | ||||||||