Package org.apache.hadoop.hbase.client
Enum Class Durability
- All Implemented Interfaces:
Serializable
,Comparable<Durability>
,Constable
Enum describing the durability guarantees for tables and
Mutation
s Note that the items
must be sorted in order of increasing durability-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
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 class with the specified name.static Durability[]
values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-