public static enum KeyValue.Type extends Enum<KeyValue.Type>
Enum Constant and Description |
---|
Delete |
DeleteColumn |
DeleteFamily |
DeleteFamilyVersion |
Maximum |
Minimum |
Put |
Modifier and Type | Field and Description |
---|---|
private byte |
code |
private static KeyValue.Type[] |
codeArray |
Modifier and Type | Method and Description |
---|---|
static KeyValue.Type |
codeToType(byte b)
Cannot rely on enum ordinals .
|
byte |
getCode() |
(package private) static boolean |
isValidType(byte b)
True to indicate that the byte b is a valid type.
|
static KeyValue.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyValue.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyValue.Type Minimum
public static final KeyValue.Type Put
public static final KeyValue.Type Delete
public static final KeyValue.Type DeleteFamilyVersion
public static final KeyValue.Type DeleteColumn
public static final KeyValue.Type DeleteFamily
public static final KeyValue.Type Maximum
private final byte code
private static KeyValue.Type[] codeArray
public static KeyValue.Type[] values()
for (KeyValue.Type c : KeyValue.Type.values()) System.out.println(c);
public static KeyValue.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte getCode()
static boolean isValidType(byte b)
b
- byte to checkpublic static KeyValue.Type codeToType(byte b)
b
- the kv serialized byte[] to processCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.