public static enum CompactionStrategy.CleanupType extends Enum<CompactionStrategy.CleanupType>
| Enum Constant and Description |
|---|
CLEAN_ALL
CLEAN_ALL must be used in conjunction with cloneBinaries
otherwise segments can go away (SegmentNotFoundException) |
CLEAN_NONE |
CLEAN_OLD
CLEAN_OLD with cloneBinaries |
| Modifier and Type | Method and Description |
|---|---|
static CompactionStrategy.CleanupType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompactionStrategy.CleanupType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompactionStrategy.CleanupType CLEAN_ALL
CLEAN_ALL must be used in conjunction with cloneBinaries
otherwise segments can go away (SegmentNotFoundException)
Pros: best compaction results
Cons: larger repo size during compaction (2x). High chances that a currently
running diff (e.g. observation) fails with SegmentNotFoundException.
public static final CompactionStrategy.CleanupType CLEAN_NONE
public static final CompactionStrategy.CleanupType CLEAN_OLD
CLEAN_OLD with cloneBinaries
Pros: better compaction results
Cons: larger repo size during compaction (2x). SegmentNotFoundException
with insufficiently large values for olderThan.
CLEAN_OLD without cloneBinaries
Pros: weakest compaction results, smaller size during compaction (1x + size of data-segments).
Cons: SegmentNotFoundException with insufficiently large values for
olderThan.
public static CompactionStrategy.CleanupType[] values()
for (CompactionStrategy.CleanupType c : CompactionStrategy.CleanupType.values()) System.out.println(c);
public static CompactionStrategy.CleanupType 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 © 2012-2018 The Apache Software Foundation. All Rights Reserved.