Enum Class Consistency

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

@Public public enum Consistency extends Enum<Consistency>
Consistency defines the expected consistency level for an operation.
  • Enum Constant Details

    • STRONG

      public static final Consistency STRONG
      Strong consistency is the default consistency model in HBase, where reads and writes go through a single server which serializes the updates, and returns all data that was written and ack'd.
    • TIMELINE

      public static final Consistency TIMELINE
      Timeline consistent reads might return values that may not see the most recent updates. Write transactions are always performed in strong consistency model in HBase which guarantees that transactions are ordered, and replayed in the same order by all copies of the data. In timeline consistency, the get and scan requests can be answered from data that may be stale.
      The client may still observe transactions out of order if the requests are responded from different servers.
  • Constructor Details

  • Method Details

    • values

      public static Consistency[] 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 Consistency 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