Package org.apache.hadoop.hbase.client
Enum Consistency
- All Implemented Interfaces:
Serializable
,Comparable<Consistency>
Consistency defines the expected consistency level for an operation.
-
Enum Constant Summary
Enum ConstantDescriptionStrong 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic Consistency
Returns the enum constant of this type with the specified name.static Consistency[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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
-
Consistency
private Consistency()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-