Enum Class MemoryCompactionPolicy

java.lang.Object
java.lang.Enum<MemoryCompactionPolicy>
org.apache.hadoop.hbase.MemoryCompactionPolicy
All Implemented Interfaces:
Serializable, Comparable<MemoryCompactionPolicy>, Constable

Enum describing all possible memory compaction policies
  • Enum Constant Details

    • NONE

      public static final MemoryCompactionPolicy NONE
      No memory compaction, when size threshold is exceeded data is flushed to disk
    • BASIC

      public static final MemoryCompactionPolicy BASIC
      Basic policy applies optimizations which modify the index to a more compacted representation. This is beneficial in all access patterns. The smaller the cells are the greater the benefit of this policy. This is the default policy.
    • EAGER

      public static final MemoryCompactionPolicy 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). This policy is most useful for applications with high data churn or small working sets.
    • ADAPTIVE

      public static final MemoryCompactionPolicy ADAPTIVE
      Adaptive compaction adapts to the workload. It applies either index compaction or data compaction based on the ratio of duplicate cells in the data.
  • Constructor Details

  • Method Details

    • values

      public static MemoryCompactionPolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MemoryCompactionPolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null