Enum Class Store.Op

java.lang.Object
java.lang.Enum<Store.Op>
io.dingodb.store.Store.Op
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Store.Op>, Constable
Enclosing class:
Store

public static enum Store.Op extends Enum<Store.Op> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum dingodb.pb.store.Op
  • Enum Constant Details

    • None

      public static final Store.Op None
       just a placeholder
       
      None = 0;
    • Put

      public static final Store.Op Put
       prewrite: do data upsert, like KvPut or VectorAdd
       
      Put = 1;
    • Delete

      public static final Store.Op Delete
       prewrite: do data delete, like KvDelete or VectorDelete
       
      Delete = 2;
    • PutIfAbsent

      public static final Store.Op PutIfAbsent
       prewrite: do insert, if id is exists, return AlreadyExist error
       
      PutIfAbsent = 3;
    • Rollback

      public static final Store.Op Rollback
       rollback: only do rollback
       
      Rollback = 4;
    • Lock

      public static final Store.Op Lock
       pessimistic lock: do lock
       
      Lock = 5;
    • CheckNotExists

      public static final Store.Op CheckNotExists
       prewrite: check if the key is not exists
       
      CheckNotExists = 6;
    • UNRECOGNIZED

      public static final Store.Op UNRECOGNIZED
  • Field Details

    • None_VALUE

      public static final int None_VALUE
       just a placeholder
       
      None = 0;
      See Also:
    • Put_VALUE

      public static final int Put_VALUE
       prewrite: do data upsert, like KvPut or VectorAdd
       
      Put = 1;
      See Also:
    • Delete_VALUE

      public static final int Delete_VALUE
       prewrite: do data delete, like KvDelete or VectorDelete
       
      Delete = 2;
      See Also:
    • PutIfAbsent_VALUE

      public static final int PutIfAbsent_VALUE
       prewrite: do insert, if id is exists, return AlreadyExist error
       
      PutIfAbsent = 3;
      See Also:
    • Rollback_VALUE

      public static final int Rollback_VALUE
       rollback: only do rollback
       
      Rollback = 4;
      See Also:
    • Lock_VALUE

      public static final int Lock_VALUE
       pessimistic lock: do lock
       
      Lock = 5;
      See Also:
    • CheckNotExists_VALUE

      public static final int CheckNotExists_VALUE
       prewrite: check if the key is not exists
       
      CheckNotExists = 6;
      See Also:
  • Method Details

    • values

      public static Store.Op[] 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 Store.Op 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
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Store.Op valueOf(int value)
      Deprecated.
      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:
      value - 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
    • forNumber

      public static Store.Op forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<Store.Op> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static Store.Op valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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:
      desc - 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