org.apache.lucene.index
public static enum MergePolicy.MergeTrigger extends Enum<MergePolicy.MergeTrigger>
MergePolicy.findMerges(MergeTrigger, SegmentInfos) to indicate the
event that triggered the merge.| Enum Constant and Description |
|---|
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 MergePolicy.MergeTrigger |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MergePolicy.MergeTrigger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MergePolicy.MergeTrigger SEGMENT_FLUSH
public static final MergePolicy.MergeTrigger FULL_FLUSH
public static final MergePolicy.MergeTrigger EXPLICIT
public static final MergePolicy.MergeTrigger MERGE_FINISHED
public static MergePolicy.MergeTrigger[] values()
for (MergePolicy.MergeTrigger c : MergePolicy.MergeTrigger.values()) System.out.println(c);
public static MergePolicy.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-2014 Apache Software Foundation. All Rights Reserved.