Package io.dingodb.raft
Enum Class Raft.CmdType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Raft.CmdType>,Constable
- Enclosing class:
- Raft
public static enum Raft.CmdType
extends Enum<Raft.CmdType>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
dingodb.pb.raft.CmdType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCOMMIT_MERGE = 8;COMPAREANDSET = 6;DELETEBATCH = 4;DELETERANGE = 3;document [5000,6000]DOCUMENT_BATCH_ADD = 5002;DOCUMENT_DELETE = 5001;Coordinator State Machine OperatorNONE = 0;PREPARE_MERGE = 7;PUT = 1;PUTIFABSENT = 2;REBUILD_VECTOR_INDEX = 3010;ROLLBACK_MERGE = 9;SAVE_RAFT_SNAPSHOT = 100;SPLIT = 5;txnvector [3000,4000]VECTOR_BATCH_ADD = 3011;VECTOR_DELETE = 3001; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCOMMIT_MERGE = 8;static final intCOMPAREANDSET = 6;static final intDELETEBATCH = 4;static final intDELETERANGE = 3;static final intdocument [5000,6000]static final intDOCUMENT_BATCH_ADD = 5002;static final intDOCUMENT_DELETE = 5001;static final intCoordinator State Machine Operatorstatic final intNONE = 0;static final intPREPARE_MERGE = 7;static final intPUT = 1;static final intPUTIFABSENT = 2;static final intREBUILD_VECTOR_INDEX = 3010;static final intROLLBACK_MERGE = 9;static final intSAVE_RAFT_SNAPSHOT = 100;static final intSPLIT = 5;static final inttxnstatic final intvector [3000,4000]static final intVECTOR_BATCH_ADD = 3011;static final intVECTOR_DELETE = 3001; -
Method Summary
Modifier and TypeMethodDescriptionstatic Raft.CmdTypeforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Raft.CmdType>static Raft.CmdTypevalueOf(int value) Deprecated.static Raft.CmdTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static Raft.CmdTypeReturns the enum constant of this class with the specified name.static Raft.CmdType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
NONE = 0; -
PUT
PUT = 1; -
PUTIFABSENT
PUTIFABSENT = 2; -
DELETERANGE
DELETERANGE = 3; -
DELETEBATCH
DELETEBATCH = 4; -
SPLIT
SPLIT = 5; -
COMPAREANDSET
COMPAREANDSET = 6; -
PREPARE_MERGE
PREPARE_MERGE = 7; -
COMMIT_MERGE
COMMIT_MERGE = 8; -
ROLLBACK_MERGE
ROLLBACK_MERGE = 9; -
SAVE_RAFT_SNAPSHOT
SAVE_RAFT_SNAPSHOT = 100; -
META_WRITE
Coordinator State Machine Operator
META_WRITE = 2000; -
VECTOR_ADD
vector [3000,4000]
VECTOR_ADD = 3000; -
VECTOR_DELETE
VECTOR_DELETE = 3001; -
REBUILD_VECTOR_INDEX
REBUILD_VECTOR_INDEX = 3010; -
VECTOR_BATCH_ADD
VECTOR_BATCH_ADD = 3011; -
DOCUMENT_ADD
document [5000,6000]
DOCUMENT_ADD = 5000; -
DOCUMENT_DELETE
DOCUMENT_DELETE = 5001; -
DOCUMENT_BATCH_ADD
DOCUMENT_BATCH_ADD = 5002; -
TXN
txn
TXN = 4000; -
UNRECOGNIZED
-
-
Field Details
-
NONE_VALUE
public static final int NONE_VALUENONE = 0;- See Also:
-
PUT_VALUE
public static final int PUT_VALUEPUT = 1;- See Also:
-
PUTIFABSENT_VALUE
public static final int PUTIFABSENT_VALUEPUTIFABSENT = 2;- See Also:
-
DELETERANGE_VALUE
public static final int DELETERANGE_VALUEDELETERANGE = 3;- See Also:
-
DELETEBATCH_VALUE
public static final int DELETEBATCH_VALUEDELETEBATCH = 4;- See Also:
-
SPLIT_VALUE
public static final int SPLIT_VALUESPLIT = 5;- See Also:
-
COMPAREANDSET_VALUE
public static final int COMPAREANDSET_VALUECOMPAREANDSET = 6;- See Also:
-
PREPARE_MERGE_VALUE
public static final int PREPARE_MERGE_VALUEPREPARE_MERGE = 7;- See Also:
-
COMMIT_MERGE_VALUE
public static final int COMMIT_MERGE_VALUECOMMIT_MERGE = 8;- See Also:
-
ROLLBACK_MERGE_VALUE
public static final int ROLLBACK_MERGE_VALUEROLLBACK_MERGE = 9;- See Also:
-
SAVE_RAFT_SNAPSHOT_VALUE
public static final int SAVE_RAFT_SNAPSHOT_VALUESAVE_RAFT_SNAPSHOT = 100;- See Also:
-
META_WRITE_VALUE
public static final int META_WRITE_VALUECoordinator State Machine Operator
META_WRITE = 2000;- See Also:
-
VECTOR_ADD_VALUE
public static final int VECTOR_ADD_VALUEvector [3000,4000]
VECTOR_ADD = 3000;- See Also:
-
VECTOR_DELETE_VALUE
public static final int VECTOR_DELETE_VALUEVECTOR_DELETE = 3001;- See Also:
-
REBUILD_VECTOR_INDEX_VALUE
public static final int REBUILD_VECTOR_INDEX_VALUEREBUILD_VECTOR_INDEX = 3010;- See Also:
-
VECTOR_BATCH_ADD_VALUE
public static final int VECTOR_BATCH_ADD_VALUEVECTOR_BATCH_ADD = 3011;- See Also:
-
DOCUMENT_ADD_VALUE
public static final int DOCUMENT_ADD_VALUEdocument [5000,6000]
DOCUMENT_ADD = 5000;- See Also:
-
DOCUMENT_DELETE_VALUE
public static final int DOCUMENT_DELETE_VALUEDOCUMENT_DELETE = 5001;- See Also:
-
DOCUMENT_BATCH_ADD_VALUE
public static final int DOCUMENT_BATCH_ADD_VALUEDOCUMENT_BATCH_ADD = 5002;- See Also:
-
TXN_VALUE
public static final int TXN_VALUEtxn
TXN = 4000;- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
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 nameNullPointerException- if the argument is null
-