Package org.rocksdb
Enum Status.Code
- java.lang.Object
-
- java.lang.Enum<Status.Code>
-
- org.rocksdb.Status.Code
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Status.Code>
- Enclosing class:
- Status
public static enum Status.Code extends java.lang.Enum<Status.Code>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AbortedBusyCorruptionExpiredIncompleteInvalidArgumentIOErrorMergeInProgressNotFoundNotSupportedOkShutdownInProgressTimedOutTryAgainUndefined
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Status.CodegetCode(byte value)bytegetValue()Returns the byte value of the enumerations value.static Status.CodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Status.Code[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Ok
public static final Status.Code Ok
-
NotFound
public static final Status.Code NotFound
-
Corruption
public static final Status.Code Corruption
-
NotSupported
public static final Status.Code NotSupported
-
InvalidArgument
public static final Status.Code InvalidArgument
-
IOError
public static final Status.Code IOError
-
MergeInProgress
public static final Status.Code MergeInProgress
-
Incomplete
public static final Status.Code Incomplete
-
ShutdownInProgress
public static final Status.Code ShutdownInProgress
-
TimedOut
public static final Status.Code TimedOut
-
Aborted
public static final Status.Code Aborted
-
Busy
public static final Status.Code Busy
-
Expired
public static final Status.Code Expired
-
TryAgain
public static final Status.Code TryAgain
-
Undefined
public static final Status.Code Undefined
-
-
Method Detail
-
values
public static Status.Code[] 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 (Status.Code c : Status.Code.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Status.Code valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getCode
public static Status.Code getCode(byte value)
-
getValue
public byte getValue()
Returns the byte value of the enumerations value.- Returns:
- byte representation
-
-