Enum ScannerBase.ConsistencyLevel

  • All Implemented Interfaces:
    Serializable, Comparable<ScannerBase.ConsistencyLevel>
    Enclosing interface:
    ScannerBase

    public static enum ScannerBase.ConsistencyLevel
    extends Enum<ScannerBase.ConsistencyLevel>
    Consistency level for the scanner. The default level is IMMEDIATE, which means that this scanner will see keys and values that have been successfully written to a TabletServer. EVENTUAL means that the scanner may not see the latest data that was written to a TabletServer, but may instead see an older version of data.
    Since:
    2.1.0
    • Method Detail

      • values

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

        public static ScannerBase.ConsistencyLevel 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