Package org.apache.accumulo.core.client
Enum Class Durability
- All Implemented Interfaces:
Serializable,Comparable<Durability>,Constable
The value for the durability of a BatchWriter or ConditionalWriter.
- Since:
- 1.7.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum 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 DurabilityReturns 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
-
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 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
-