public enum CompactionPriority extends java.lang.Enum<CompactionPriority>
| 枚举常量和说明 |
|---|
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.
|
RoundRobin
Keeps a cursor(s) of the successor of the file (key range) was/were
compacted before, and always picks the next files (key range) in that
level.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static CompactionPriority |
getCompactionPriority(byte value)
Get CompactionPriority by byte value.
|
byte |
getValue()
Returns the byte value of the enumerations value
|
static CompactionPriority |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static CompactionPriority[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CompactionPriority ByCompensatedSize
public static final CompactionPriority OldestLargestSeqFirst
public static final CompactionPriority OldestSmallestSeqFirst
public static final CompactionPriority MinOverlappingRatio
public static final CompactionPriority RoundRobin
public static CompactionPriority[] values()
for (CompactionPriority c : CompactionPriority.values()) System.out.println(c);
public static CompactionPriority valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public byte getValue()
public static CompactionPriority getCompactionPriority(byte value)
value - byte representation of CompactionPriority.CompactionPriority instance or null.java.lang.IllegalArgumentException - if an invalid
value is provided.