@InterfaceAudience.Public public enum MemoryCompactionPolicy extends Enum<MemoryCompactionPolicy>
| Enum Constant and Description | 
|---|
ADAPTIVE
Adaptive compaction adapts to the workload. 
 | 
BASIC
Basic policy applies optimizations which modify the index to a more compacted representation. 
 | 
EAGER
In addition to compacting the index representation as the basic policy, eager policy
 eliminates duplication while the data is still in memory (much like the
 on-disk compaction does after the data is flushed to disk). 
 | 
NONE
No memory compaction, when size threshold is exceeded data is flushed to disk 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static MemoryCompactionPolicy | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static MemoryCompactionPolicy[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final MemoryCompactionPolicy NONE
public static final MemoryCompactionPolicy BASIC
public static final MemoryCompactionPolicy EAGER
public static final MemoryCompactionPolicy ADAPTIVE
public static MemoryCompactionPolicy[] values()
for (MemoryCompactionPolicy c : MemoryCompactionPolicy.values()) System.out.println(c);
public static MemoryCompactionPolicy 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 © 2007–2022 The Apache Software Foundation. All rights reserved.