Package org.apache.hadoop.hbase.client
Enum Durability
- All Implemented Interfaces:
Serializable
,Comparable<Durability>
Enum describing the durability guarantees for tables and
Mutation
s Note that the items
must be sorted in order of increasing durability-
Enum Constant Summary
Enum ConstantDescriptionWrite the Mutation to the WAL asynchronouslyWrite the Mutation to the WAL synchronously and force the entries to disk.Do not write the Mutation to the WALWrite the Mutation to the WAL synchronously.If this is for tables durability, use HBase's global default value (SYNC_WAL). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Durability
Returns the enum constant of this type with the specified name.static Durability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USE_DEFAULT
If this is for tables durability, use HBase's global default value (SYNC_WAL). Otherwise, if this is for mutation, use the table's default setting to determine durability. This must remain the first option. -
SKIP_WAL
Do not write the Mutation to the WAL -
ASYNC_WAL
Write the Mutation to the WAL asynchronously -
SYNC_WAL
Write the Mutation to the WAL synchronously. The data is flushed to the filesystem implementation, but not necessarily to disk. For HDFS this will flush the data to the designated number of DataNodes. See HADOOP-6313 -
FSYNC_WAL
Write the Mutation to the WAL synchronously and force the entries to disk. See HADOOP-6313
-
-
Constructor Details
-
Durability
private Durability()
-
-
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
-