Package io.dingodb.coordinator
Enum Class Coordinator.RegionCmdType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Coordinator.RegionCmdType>,Constable
- Enclosing class:
- Coordinator
public static enum Coordinator.RegionCmdType
extends Enum<Coordinator.RegionCmdType>
implements com.google.protobuf.ProtocolMessageEnum
RegionCmdTypeProtobuf enum
dingodb.pb.coordinator.RegionCmdType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionchange peer for region raft groupcreate regiondelete regionbdb engine delete data when delete regiondestroy region executorcontrol follower hold vector indexmerge regionthis is a placeholderpurge region's meta for deleted regionsave region snapshotsave vector index snapshotsplit regionwhen region state ORPHAN, stop regionswitch region enable/disable split.transfer leader for region raft groupupdate definition, now only support hnsw index change max_elements -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intchange peer for region raft groupstatic final intcreate regionstatic final intbdb engine delete data when delete regionstatic final intdelete regionstatic final intdestroy region executorstatic final intcontrol follower hold vector indexstatic final intmerge regionstatic final intthis is a placeholderstatic final intpurge region's meta for deleted regionstatic final intsave region snapshotstatic final intsave vector index snapshotstatic final intsplit regionstatic final intwhen region state ORPHAN, stop regionstatic final intswitch region enable/disable split.static final inttransfer leader for region raft groupstatic final intupdate definition, now only support hnsw index change max_elements -
Method Summary
Modifier and TypeMethodDescriptionstatic Coordinator.RegionCmdTypeforNumber(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<Coordinator.RegionCmdType>static Coordinator.RegionCmdTypevalueOf(int value) Deprecated.static Coordinator.RegionCmdTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static Coordinator.RegionCmdTypeReturns the enum constant of this class with the specified name.static Coordinator.RegionCmdType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CMD_NONE
this is a placeholder
CMD_NONE = 0; -
CMD_CREATE
create region
CMD_CREATE = 1; -
CMD_DELETE
delete region
CMD_DELETE = 2; -
CMD_SPLIT
split region
CMD_SPLIT = 3; -
CMD_MERGE
merge region
CMD_MERGE = 4; -
CMD_CHANGE_PEER
change peer for region raft group
CMD_CHANGE_PEER = 5; -
CMD_TRANSFER_LEADER
transfer leader for region raft group
CMD_TRANSFER_LEADER = 6; -
CMD_SNAPSHOT
save region snapshot
CMD_SNAPSHOT = 7; -
CMD_PURGE
purge region's meta for deleted region
CMD_PURGE = 8; -
CMD_SNAPSHOT_VECTOR_INDEX
save vector index snapshot
CMD_SNAPSHOT_VECTOR_INDEX = 9; -
CMD_UPDATE_DEFINITION
update definition, now only support hnsw index change max_elements
CMD_UPDATE_DEFINITION = 10; -
CMD_SWITCH_SPLIT
switch region enable/disable split.
CMD_SWITCH_SPLIT = 11; -
CMD_HOLD_VECTOR_INDEX
control follower hold vector index
CMD_HOLD_VECTOR_INDEX = 12; -
CMD_STOP
when region state ORPHAN, stop region
CMD_STOP = 30; -
CMD_DESTROY_EXECUTOR
destroy region executor
CMD_DESTROY_EXECUTOR = 31; -
CMD_DELETE_DATA
bdb engine delete data when delete region
CMD_DELETE_DATA = 32; -
UNRECOGNIZED
-
-
Field Details
-
CMD_NONE_VALUE
public static final int CMD_NONE_VALUEthis is a placeholder
CMD_NONE = 0;- See Also:
-
CMD_CREATE_VALUE
public static final int CMD_CREATE_VALUEcreate region
CMD_CREATE = 1;- See Also:
-
CMD_DELETE_VALUE
public static final int CMD_DELETE_VALUEdelete region
CMD_DELETE = 2;- See Also:
-
CMD_SPLIT_VALUE
public static final int CMD_SPLIT_VALUEsplit region
CMD_SPLIT = 3;- See Also:
-
CMD_MERGE_VALUE
public static final int CMD_MERGE_VALUEmerge region
CMD_MERGE = 4;- See Also:
-
CMD_CHANGE_PEER_VALUE
public static final int CMD_CHANGE_PEER_VALUEchange peer for region raft group
CMD_CHANGE_PEER = 5;- See Also:
-
CMD_TRANSFER_LEADER_VALUE
public static final int CMD_TRANSFER_LEADER_VALUEtransfer leader for region raft group
CMD_TRANSFER_LEADER = 6;- See Also:
-
CMD_SNAPSHOT_VALUE
public static final int CMD_SNAPSHOT_VALUEsave region snapshot
CMD_SNAPSHOT = 7;- See Also:
-
CMD_PURGE_VALUE
public static final int CMD_PURGE_VALUEpurge region's meta for deleted region
CMD_PURGE = 8;- See Also:
-
CMD_SNAPSHOT_VECTOR_INDEX_VALUE
public static final int CMD_SNAPSHOT_VECTOR_INDEX_VALUEsave vector index snapshot
CMD_SNAPSHOT_VECTOR_INDEX = 9;- See Also:
-
CMD_UPDATE_DEFINITION_VALUE
public static final int CMD_UPDATE_DEFINITION_VALUEupdate definition, now only support hnsw index change max_elements
CMD_UPDATE_DEFINITION = 10;- See Also:
-
CMD_SWITCH_SPLIT_VALUE
public static final int CMD_SWITCH_SPLIT_VALUEswitch region enable/disable split.
CMD_SWITCH_SPLIT = 11;- See Also:
-
CMD_HOLD_VECTOR_INDEX_VALUE
public static final int CMD_HOLD_VECTOR_INDEX_VALUEcontrol follower hold vector index
CMD_HOLD_VECTOR_INDEX = 12;- See Also:
-
CMD_STOP_VALUE
public static final int CMD_STOP_VALUEwhen region state ORPHAN, stop region
CMD_STOP = 30;- See Also:
-
CMD_DESTROY_EXECUTOR_VALUE
public static final int CMD_DESTROY_EXECUTOR_VALUEdestroy region executor
CMD_DESTROY_EXECUTOR = 31;- See Also:
-
CMD_DELETE_DATA_VALUE
public static final int CMD_DELETE_DATA_VALUEbdb engine delete data when delete region
CMD_DELETE_DATA = 32;- 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
public static com.google.protobuf.Internal.EnumLiteMap<Coordinator.RegionCmdType> 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
public static Coordinator.RegionCmdType 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 nameNullPointerException- if the argument is null
-