Enum Consistency

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

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

    Enum Constants
    Enum Constant
    Description
    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 consistent reads might return values that may not see the most recent updates.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    static Consistency[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Consistency valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null