Package io.trino.plugin.accumulo
Enum AccumuloErrorCode
- java.lang.Object
-
- java.lang.Enum<AccumuloErrorCode>
-
- io.trino.plugin.accumulo.AccumuloErrorCode
-
- All Implemented Interfaces:
ErrorCodeSupplier,Serializable,Comparable<AccumuloErrorCode>
public enum AccumuloErrorCode extends Enum<AccumuloErrorCode> implements ErrorCodeSupplier
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCUMULO_TABLE_DNEACCUMULO_TABLE_EXISTSIO_ERRORMINI_ACCUMULOUNEXPECTED_ACCUMULO_ERRORZOOKEEPER_ERROR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCodetoErrorCode()static AccumuloErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static AccumuloErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNEXPECTED_ACCUMULO_ERROR
public static final AccumuloErrorCode UNEXPECTED_ACCUMULO_ERROR
-
ZOOKEEPER_ERROR
public static final AccumuloErrorCode ZOOKEEPER_ERROR
-
IO_ERROR
public static final AccumuloErrorCode IO_ERROR
-
ACCUMULO_TABLE_DNE
public static final AccumuloErrorCode ACCUMULO_TABLE_DNE
-
ACCUMULO_TABLE_EXISTS
public static final AccumuloErrorCode ACCUMULO_TABLE_EXISTS
-
MINI_ACCUMULO
public static final AccumuloErrorCode MINI_ACCUMULO
-
-
Method Detail
-
values
public static AccumuloErrorCode[] 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 (AccumuloErrorCode c : AccumuloErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccumuloErrorCode 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
-
toErrorCode
public ErrorCode toErrorCode()
- Specified by:
toErrorCodein interfaceErrorCodeSupplier
-
-