Enum Class Common.RegionState

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

public static enum Common.RegionState extends Enum<Common.RegionState> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum dingodb.pb.common.RegionState
  • Enum Constant Details

    • REGION_NONE

      public static final Common.RegionState REGION_NONE
       this is a illegal state
       
      REGION_NONE = 0;
    • REGION_NEW

      public static final Common.RegionState REGION_NEW
       create new region
       
      REGION_NEW = 1;
    • REGION_NORMAL

      public static final Common.RegionState REGION_NORMAL
      REGION_NORMAL = 2;
    • REGION_EXPAND

      public static final Common.RegionState REGION_EXPAND
       start to expand
       
      REGION_EXPAND = 3;
    • REGION_EXPANDING

      public static final Common.RegionState REGION_EXPANDING
       leader start to expand region
       
      REGION_EXPANDING = 4;
    • REGION_EXPANDED

      public static final Common.RegionState REGION_EXPANDED
       new peer joined raft
       
      REGION_EXPANDED = 5;
    • REGION_SHRINK

      public static final Common.RegionState REGION_SHRINK
       start to shrink
       
      REGION_SHRINK = 6;
    • REGION_SHIRINKING

      public static final Common.RegionState REGION_SHIRINKING
       leader start to shrink region
       
      REGION_SHIRINKING = 7;
    • REGION_SHRANK

      public static final Common.RegionState REGION_SHRANK
       shrink finish, maybe we don't need this state
       
      REGION_SHRANK = 8;
    • REGION_DELETE

      public static final Common.RegionState REGION_DELETE
       region need to delete
       
      REGION_DELETE = 9;
    • REGION_DELETING

      public static final Common.RegionState REGION_DELETING
       region is deleting
       
      REGION_DELETING = 10;
    • REGION_DELETED

      public static final Common.RegionState REGION_DELETED
       region is deleted
       
      REGION_DELETED = 11;
    • REGION_SPLIT

      public static final Common.RegionState REGION_SPLIT
       region need to split
       
      REGION_SPLIT = 12;
    • REGION_SPLITTING

      public static final Common.RegionState REGION_SPLITTING
       region is splitting
       
      REGION_SPLITTING = 13;
    • REGION_SPLITED

      public static final Common.RegionState REGION_SPLITED
       region is splited (split's past tense is split, not splited, use as a symbol here)
       
      REGION_SPLITED = 14;
    • REGION_MERGE

      public static final Common.RegionState REGION_MERGE
       region need to merge
       
      REGION_MERGE = 15;
    • REGION_MERGING

      public static final Common.RegionState REGION_MERGING
       region is mergting
       
      REGION_MERGING = 16;
    • REGION_MERGED

      public static final Common.RegionState REGION_MERGED
       region is merged
       
      REGION_MERGED = 17;
    • REGION_ILLEGAL

      public static final Common.RegionState REGION_ILLEGAL
       other state add here
       
      REGION_ILLEGAL = 20;
    • REGION_STANDBY

      public static final Common.RegionState REGION_STANDBY
       region is standby, used in split
       
      REGION_STANDBY = 21;
    • REGION_TOMBSTONE

      public static final Common.RegionState REGION_TOMBSTONE
       region is tombstone, need to delete
       
      REGION_TOMBSTONE = 22;
    • UNRECOGNIZED

      public static final Common.RegionState UNRECOGNIZED
  • Field Details

    • REGION_NONE_VALUE

      public static final int REGION_NONE_VALUE
       this is a illegal state
       
      REGION_NONE = 0;
      See Also:
    • REGION_NEW_VALUE

      public static final int REGION_NEW_VALUE
       create new region
       
      REGION_NEW = 1;
      See Also:
    • REGION_NORMAL_VALUE

      public static final int REGION_NORMAL_VALUE
      REGION_NORMAL = 2;
      See Also:
    • REGION_EXPAND_VALUE

      public static final int REGION_EXPAND_VALUE
       start to expand
       
      REGION_EXPAND = 3;
      See Also:
    • REGION_EXPANDING_VALUE

      public static final int REGION_EXPANDING_VALUE
       leader start to expand region
       
      REGION_EXPANDING = 4;
      See Also:
    • REGION_EXPANDED_VALUE

      public static final int REGION_EXPANDED_VALUE
       new peer joined raft
       
      REGION_EXPANDED = 5;
      See Also:
    • REGION_SHRINK_VALUE

      public static final int REGION_SHRINK_VALUE
       start to shrink
       
      REGION_SHRINK = 6;
      See Also:
    • REGION_SHIRINKING_VALUE

      public static final int REGION_SHIRINKING_VALUE
       leader start to shrink region
       
      REGION_SHIRINKING = 7;
      See Also:
    • REGION_SHRANK_VALUE

      public static final int REGION_SHRANK_VALUE
       shrink finish, maybe we don't need this state
       
      REGION_SHRANK = 8;
      See Also:
    • REGION_DELETE_VALUE

      public static final int REGION_DELETE_VALUE
       region need to delete
       
      REGION_DELETE = 9;
      See Also:
    • REGION_DELETING_VALUE

      public static final int REGION_DELETING_VALUE
       region is deleting
       
      REGION_DELETING = 10;
      See Also:
    • REGION_DELETED_VALUE

      public static final int REGION_DELETED_VALUE
       region is deleted
       
      REGION_DELETED = 11;
      See Also:
    • REGION_SPLIT_VALUE

      public static final int REGION_SPLIT_VALUE
       region need to split
       
      REGION_SPLIT = 12;
      See Also:
    • REGION_SPLITTING_VALUE

      public static final int REGION_SPLITTING_VALUE
       region is splitting
       
      REGION_SPLITTING = 13;
      See Also:
    • REGION_SPLITED_VALUE

      public static final int REGION_SPLITED_VALUE
       region is splited (split's past tense is split, not splited, use as a symbol here)
       
      REGION_SPLITED = 14;
      See Also:
    • REGION_MERGE_VALUE

      public static final int REGION_MERGE_VALUE
       region need to merge
       
      REGION_MERGE = 15;
      See Also:
    • REGION_MERGING_VALUE

      public static final int REGION_MERGING_VALUE
       region is mergting
       
      REGION_MERGING = 16;
      See Also:
    • REGION_MERGED_VALUE

      public static final int REGION_MERGED_VALUE
       region is merged
       
      REGION_MERGED = 17;
      See Also:
    • REGION_ILLEGAL_VALUE

      public static final int REGION_ILLEGAL_VALUE
       other state add here
       
      REGION_ILLEGAL = 20;
      See Also:
    • REGION_STANDBY_VALUE

      public static final int REGION_STANDBY_VALUE
       region is standby, used in split
       
      REGION_STANDBY = 21;
      See Also:
    • REGION_TOMBSTONE_VALUE

      public static final int REGION_TOMBSTONE_VALUE
       region is tombstone, need to delete
       
      REGION_TOMBSTONE = 22;
      See Also:
  • Method Details

    • values

      public static Common.RegionState[] 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 Common.RegionState 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 Common.RegionState 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 Common.RegionState 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<Common.RegionState> 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 Common.RegionState 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