@EnumDescription(value="Controls when compaction is scheduled.") public enum CompactionTriggerStrategy extends Enum<CompactionTriggerStrategy>
| Enum Constant and Description |
|---|
NUM_AND_TIME |
NUM_COMMITS |
NUM_COMMITS_AFTER_LAST_REQUEST |
NUM_OR_TIME |
TIME_ELAPSED |
| Modifier and Type | Method and Description |
|---|---|
static CompactionTriggerStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompactionTriggerStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@EnumFieldDescription(value="triggers compaction when there are at least N delta commits after last completed compaction.") public static final CompactionTriggerStrategy NUM_COMMITS
@EnumFieldDescription(value="triggers compaction when there are at least N delta commits after last completed or requested compaction.") public static final CompactionTriggerStrategy NUM_COMMITS_AFTER_LAST_REQUEST
@EnumFieldDescription(value="triggers compaction after N seconds since last compaction.") public static final CompactionTriggerStrategy TIME_ELAPSED
@EnumFieldDescription(value="triggers compaction when both there are at least N delta commits and N seconds elapsed (both must be satisfied) after last completed compaction.") public static final CompactionTriggerStrategy NUM_AND_TIME
@EnumFieldDescription(value="triggers compaction when both there are at least N delta commits or N seconds elapsed (either condition is satisfied) after last completed compaction.") public static final CompactionTriggerStrategy NUM_OR_TIME
public static CompactionTriggerStrategy[] values()
for (CompactionTriggerStrategy c : CompactionTriggerStrategy.values()) System.out.println(c);
public static CompactionTriggerStrategy 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 © 2024 The Apache Software Foundation. All rights reserved.