Package org.apache.accumulo.core.client
Enum Durability
- All Implemented Interfaces:
Serializable
,Comparable<Durability>
The value for the durability of a BatchWriter or ConditionalWriter.
- Since:
- 1.7.0
-
Enum Constant Summary
Enum ConstantDescriptionUse the durability as specified by the table or system configuration.Write mutations to the write-ahead log, and ensure the data is stored on remote servers, but perhaps not on persistent storage.Write mutations the the write-ahead log.Don't bother writing mutations to the write-ahead log.Write mutations to the write-ahead log, and ensure the data is saved to persistent storage. -
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
-
DEFAULT
Use the durability as specified by the table or system configuration. -
NONE
Don't bother writing mutations to the write-ahead log. -
LOG
Write mutations the the write-ahead log. Data may be sitting the the servers output buffers, and not replicated anywhere. -
FLUSH
Write mutations to the write-ahead log, and ensure the data is stored on remote servers, but perhaps not on persistent storage. -
SYNC
Write mutations to the write-ahead log, and ensure the data is saved to persistent storage.
-
-
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
-