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
    Use 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 Type
    Method
    Description
    static Durability
    Returns the enum constant of this type with the specified name.
    static Durability[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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 Details

    • values

      public static Durability[] 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

      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 name
      NullPointerException - if the argument is null