Enum Class KvFileOp

java.lang.Object
java.lang.Enum<KvFileOp>
io.datarouter.bytes.kvfile.kv.KvFileOp
All Implemented Interfaces:
Serializable, Comparable<KvFileOp>, Constable

public enum KvFileOp extends Enum<KvFileOp>
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.
  • Enum Constant Details

    • DELETE

      public static final KvFileOp DELETE
    • PUT

      public static final KvFileOp PUT
  • Field Details

    • NUM_PERSISTENT_BYTES

      public static final int NUM_PERSISTENT_BYTES
      See Also:
    • COMPARATOR

      public static final Comparator<KvFileOp> COMPARATOR
    • persistentValue

      public final byte persistentValue
    • persistentValueArray

      public final byte[] persistentValueArray
  • Method Details

    • values

      public static KvFileOp[] 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

      public static KvFileOp valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromByte

      public static KvFileOp fromByte(byte value)
    • fromInputStream

      public static KvFileOp fromInputStream(InputStream inputStream)