public enum CompactionPriority extends Enum<CompactionPriority>
| Enum Constant and Description |
|---|
ByCompensatedSize
Slightly Prioritize larger files by size compensated by #deletes
|
MinOverlappingRatio
First compact files whose ratio between overlapping size in next level
and its size is the smallest.
|
OldestLargestSeqFirst
First compact files whose data's latest update time is oldest.
|
OldestSmallestSeqFirst
First compact files whose range hasn't been compacted to the next level
for the longest.
|
| Modifier and Type | Method and Description |
|---|---|
static CompactionPriority |
getCompactionPriority(byte value)
Get CompactionPriority by byte value.
|
byte |
getValue()
Returns the byte value of the enumerations value
|
static CompactionPriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompactionPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompactionPriority ByCompensatedSize
public static final CompactionPriority OldestLargestSeqFirst
public static final CompactionPriority OldestSmallestSeqFirst
public static final CompactionPriority MinOverlappingRatio
public static CompactionPriority[] values()
for (CompactionPriority c : CompactionPriority.values()) System.out.println(c);
public static CompactionPriority 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 nullpublic byte getValue()
public static CompactionPriority getCompactionPriority(byte value)
value - byte representation of CompactionPriority.CompactionPriority instance or null.IllegalArgumentException - if an invalid
value is provided.Copyright © 2021. All rights reserved.