public enum MergeTrigger extends Enum<MergeTrigger>
MergePolicy.findMerges(MergeTrigger, org.apache.lucene.index.SegmentInfos, IndexWriter)
to indicate the
event that triggered the merge.Enum Constant and Description |
---|
CLOSING
Merge was triggered by a closing IndexWriter.
|
EXPLICIT
Merge has been triggered explicitly by the user.
|
FULL_FLUSH
Merge was triggered by a full flush.
|
MERGE_FINISHED
Merge was triggered by a successfully finished merge.
|
SEGMENT_FLUSH
Merge was triggered by a segment flush.
|
Modifier and Type | Method and Description |
---|---|
static MergeTrigger |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MergeTrigger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MergeTrigger SEGMENT_FLUSH
public static final MergeTrigger FULL_FLUSH
public static final MergeTrigger EXPLICIT
public static final MergeTrigger MERGE_FINISHED
public static final MergeTrigger CLOSING
public static MergeTrigger[] values()
for (MergeTrigger c : MergeTrigger.values()) System.out.println(c);
public static MergeTrigger valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.