@InterfaceAudience.Public public enum MemoryCompactionPolicy extends Enum<MemoryCompactionPolicy>
| Enum Constant and Description | 
|---|
| ADAPTIVEAdaptive compaction adapts to the workload. | 
| BASICBasic policy applies optimizations which modify the index to a more compacted representation. | 
| EAGERIn 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). | 
| NONENo 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–2020 The Apache Software Foundation. All rights reserved.