Package org.apache.accumulo.core.client
Enum Durability
- java.lang.Object
-
- java.lang.Enum<Durability>
-
- org.apache.accumulo.core.client.Durability
-
- All Implemented Interfaces:
Serializable
,Comparable<Durability>
public enum Durability extends Enum<Durability>
The value for the durability of a BatchWriter or ConditionalWriter.- Since:
- 1.7.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
Use the durability as specified by the table or system configuration.FLUSH
Write mutations to the write-ahead log, and ensure the data is stored on remote servers, but perhaps not on persistent storage.LOG
Write mutations the the write-ahead log.NONE
Don't bother writing mutations to the write-ahead log.SYNC
Write mutations to the write-ahead log, and ensure the data is saved to persistent storage.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Durability
valueOf(String name)
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 Detail
-
DEFAULT
public static final Durability DEFAULT
Use the durability as specified by the table or system configuration.
-
NONE
public static final Durability NONE
Don't bother writing mutations to the write-ahead log.
-
LOG
public static final Durability LOG
Write mutations the the write-ahead log. Data may be sitting the the servers output buffers, and not replicated anywhere.
-
FLUSH
public static final Durability FLUSH
Write mutations to the write-ahead log, and ensure the data is stored on remote servers, but perhaps not on persistent storage.
-
SYNC
public static final Durability SYNC
Write mutations to the write-ahead log, and ensure the data is saved to persistent storage.
-
-
Method Detail
-
values
public static Durability[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Durability c : Durability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Durability valueOf(String name)
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
-
-