Package io.datarouter.bytes.kvfile
Enum Class KvFileOp
- All Implemented Interfaces:
Serializable,Comparable<KvFileOp>,Constable
Either PUT or DELETE.
PUTS sort after DELETES so we favor keeping the PUT in cases of a PUT and DELETE with the same key+version.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<KvFileOp>static final intfinal bytefinal byte[] -
Method Summary
Modifier and TypeMethodDescriptionstatic final KvFileOpfromByte(byte value) static final KvFileOpfromInputStream(InputStream inputStream) static KvFileOpReturns the enum constant of this class with the specified name.static KvFileOp[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DELETE
-
PUT
-
-
Field Details
-
NUM_PERSISTENT_BYTES
public static final int NUM_PERSISTENT_BYTES- See Also:
-
COMPARATOR
-
persistentValue
public final byte persistentValue -
persistentValueArray
public final byte[] persistentValueArray
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
fromByte
-
fromInputStream
-