Enum Ample.ReadConsistency

  • All Implemented Interfaces:
    Serializable, Comparable<Ample.ReadConsistency>
    Enclosing interface:
    Ample

    public static enum Ample.ReadConsistency
    extends Enum<Ample.ReadConsistency>
    Controls how Accumulo metadata is read. Currently this only impacts reading the root tablet stored in Zookeeper. Reading data stored in the Accumulo metadata table is always immediate consistency.
    • Enum Constant Detail

      • IMMEDIATE

        public static final Ample.ReadConsistency IMMEDIATE
        Read data in a way that is slower, but should always yield the latest data. In addition to being slower, it's possible this read consistency can place higher load on shared resource which can negatively impact an entire cluster.
      • EVENTUAL

        public static final Ample.ReadConsistency EVENTUAL
        Read data in a way that may be faster but may yield out of date data.
    • Method Detail

      • values

        public static Ample.ReadConsistency[] 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 (Ample.ReadConsistency c : Ample.ReadConsistency.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Ample.ReadConsistency 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