Package io.dingodb.store_internal
Class StoreInternal.Region
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.store_internal.StoreInternal.Region
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,StoreInternal.RegionOrBuilder,Serializable
- Enclosing class:
- StoreInternal
public static final class StoreInternal.Region
extends com.google.protobuf.GeneratedMessageV3
implements StoreInternal.RegionOrBuilder
Protobuf type
dingodb.pb.store_internal.Region- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedingodb.pb.store_internal.RegionNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic StoreInternal.Region.dingodb.pb.common.RegionDefinition definition = 20;.dingodb.pb.common.RegionDefinition definition = 20;static final com.google.protobuf.Descriptors.Descriptorbooleanexternal control, e.g..dingodb.pb.common.Range encode_range = 21;.dingodb.pb.common.Range encode_range = 21;getHistoryStates(int index) repeated .dingodb.pb.common.StoreRegionState history_states = 50;intrepeated .dingodb.pb.common.StoreRegionState history_states = 50;repeated .dingodb.pb.common.StoreRegionState history_states = 50;intgetHistoryStatesValue(int index) repeated .dingodb.pb.common.StoreRegionState history_states = 50;repeated .dingodb.pb.common.StoreRegionState history_states = 50;longgetId()int64 id = 1;longLast split/merge/change_peer job idlongint64 last_split_timestamp = 71;longint64 leader_id = 30;booleanbool need_bootstrap_do_snapshot = 51;longint64 parent_id = 72;com.google.protobuf.Parser<StoreInternal.Region>.dingodb.pb.common.RegionType region_type = 10;int.dingodb.pb.common.RegionType region_type = 10;intlonglatest region raft snapshot epoch versiongetState().dingodb.pb.common.StoreRegionState state = 40;int.dingodb.pb.common.StoreRegionState state = 40;booleanstore local controlboolean.dingodb.pb.common.RegionDefinition definition = 20;boolean.dingodb.pb.common.Range encode_range = 21;inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic StoreInternal.Region.Builderstatic StoreInternal.Region.BuildernewBuilder(StoreInternal.Region prototype) protected StoreInternal.Region.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static StoreInternal.RegionparseDelimitedFrom(InputStream input) static StoreInternal.RegionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StoreInternal.RegionparseFrom(byte[] data) static StoreInternal.RegionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StoreInternal.RegionparseFrom(com.google.protobuf.ByteString data) static StoreInternal.RegionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StoreInternal.RegionparseFrom(com.google.protobuf.CodedInputStream input) static StoreInternal.RegionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StoreInternal.RegionparseFrom(InputStream input) static StoreInternal.RegionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StoreInternal.RegionparseFrom(ByteBuffer data) static StoreInternal.RegionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<StoreInternal.Region>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
REGION_TYPE_FIELD_NUMBER
public static final int REGION_TYPE_FIELD_NUMBER- See Also:
-
DEFINITION_FIELD_NUMBER
public static final int DEFINITION_FIELD_NUMBER- See Also:
-
ENCODE_RANGE_FIELD_NUMBER
public static final int ENCODE_RANGE_FIELD_NUMBER- See Also:
-
LEADER_ID_FIELD_NUMBER
public static final int LEADER_ID_FIELD_NUMBER- See Also:
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
HISTORY_STATES_FIELD_NUMBER
public static final int HISTORY_STATES_FIELD_NUMBER- See Also:
-
NEED_BOOTSTRAP_DO_SNAPSHOT_FIELD_NUMBER
public static final int NEED_BOOTSTRAP_DO_SNAPSHOT_FIELD_NUMBER- See Also:
-
TEMPORARY_DISABLE_CHANGE_FIELD_NUMBER
public static final int TEMPORARY_DISABLE_CHANGE_FIELD_NUMBER- See Also:
-
DISABLE_CHANGE_FIELD_NUMBER
public static final int DISABLE_CHANGE_FIELD_NUMBER- See Also:
-
LAST_SPLIT_TIMESTAMP_FIELD_NUMBER
public static final int LAST_SPLIT_TIMESTAMP_FIELD_NUMBER- See Also:
-
PARENT_ID_FIELD_NUMBER
public static final int PARENT_ID_FIELD_NUMBER- See Also:
-
SNAPSHOT_EPOCH_VERSION_FIELD_NUMBER
public static final int SNAPSHOT_EPOCH_VERSION_FIELD_NUMBER- See Also:
-
LAST_CHANGE_JOB_ID_FIELD_NUMBER
public static final int LAST_CHANGE_JOB_ID_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getId
public long getId()int64 id = 1;- Specified by:
getIdin interfaceStoreInternal.RegionOrBuilder- Returns:
- The id.
-
getRegionTypeValue
public int getRegionTypeValue().dingodb.pb.common.RegionType region_type = 10;- Specified by:
getRegionTypeValuein interfaceStoreInternal.RegionOrBuilder- Returns:
- The enum numeric value on the wire for regionType.
-
getRegionType
.dingodb.pb.common.RegionType region_type = 10;- Specified by:
getRegionTypein interfaceStoreInternal.RegionOrBuilder- Returns:
- The regionType.
-
hasDefinition
public boolean hasDefinition().dingodb.pb.common.RegionDefinition definition = 20;- Specified by:
hasDefinitionin interfaceStoreInternal.RegionOrBuilder- Returns:
- Whether the definition field is set.
-
getDefinition
.dingodb.pb.common.RegionDefinition definition = 20;- Specified by:
getDefinitionin interfaceStoreInternal.RegionOrBuilder- Returns:
- The definition.
-
getDefinitionOrBuilder
.dingodb.pb.common.RegionDefinition definition = 20;- Specified by:
getDefinitionOrBuilderin interfaceStoreInternal.RegionOrBuilder
-
hasEncodeRange
public boolean hasEncodeRange().dingodb.pb.common.Range encode_range = 21;- Specified by:
hasEncodeRangein interfaceStoreInternal.RegionOrBuilder- Returns:
- Whether the encodeRange field is set.
-
getEncodeRange
.dingodb.pb.common.Range encode_range = 21;- Specified by:
getEncodeRangein interfaceStoreInternal.RegionOrBuilder- Returns:
- The encodeRange.
-
getEncodeRangeOrBuilder
.dingodb.pb.common.Range encode_range = 21;- Specified by:
getEncodeRangeOrBuilderin interfaceStoreInternal.RegionOrBuilder
-
getLeaderId
public long getLeaderId()int64 leader_id = 30;- Specified by:
getLeaderIdin interfaceStoreInternal.RegionOrBuilder- Returns:
- The leaderId.
-
getStateValue
public int getStateValue().dingodb.pb.common.StoreRegionState state = 40;- Specified by:
getStateValuein interfaceStoreInternal.RegionOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
.dingodb.pb.common.StoreRegionState state = 40;- Specified by:
getStatein interfaceStoreInternal.RegionOrBuilder- Returns:
- The state.
-
getHistoryStatesList
repeated .dingodb.pb.common.StoreRegionState history_states = 50;- Specified by:
getHistoryStatesListin interfaceStoreInternal.RegionOrBuilder- Returns:
- A list containing the historyStates.
-
getHistoryStatesCount
public int getHistoryStatesCount()repeated .dingodb.pb.common.StoreRegionState history_states = 50;- Specified by:
getHistoryStatesCountin interfaceStoreInternal.RegionOrBuilder- Returns:
- The count of historyStates.
-
getHistoryStates
repeated .dingodb.pb.common.StoreRegionState history_states = 50;- Specified by:
getHistoryStatesin interfaceStoreInternal.RegionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The historyStates at the given index.
-
getHistoryStatesValueList
repeated .dingodb.pb.common.StoreRegionState history_states = 50;- Specified by:
getHistoryStatesValueListin interfaceStoreInternal.RegionOrBuilder- Returns:
- A list containing the enum numeric values on the wire for historyStates.
-
getHistoryStatesValue
public int getHistoryStatesValue(int index) repeated .dingodb.pb.common.StoreRegionState history_states = 50;- Specified by:
getHistoryStatesValuein interfaceStoreInternal.RegionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of historyStates at the given index.
-
getNeedBootstrapDoSnapshot
public boolean getNeedBootstrapDoSnapshot()bool need_bootstrap_do_snapshot = 51;- Specified by:
getNeedBootstrapDoSnapshotin interfaceStoreInternal.RegionOrBuilder- Returns:
- The needBootstrapDoSnapshot.
-
getTemporaryDisableChange
public boolean getTemporaryDisableChange()store local control
bool temporary_disable_change = 69;- Specified by:
getTemporaryDisableChangein interfaceStoreInternal.RegionOrBuilder- Returns:
- The temporaryDisableChange.
-
getDisableChange
public boolean getDisableChange()external control, e.g. coordinator/store, region split/merge/conf_change switch
bool disable_change = 70;- Specified by:
getDisableChangein interfaceStoreInternal.RegionOrBuilder- Returns:
- The disableChange.
-
getLastSplitTimestamp
public long getLastSplitTimestamp()int64 last_split_timestamp = 71;- Specified by:
getLastSplitTimestampin interfaceStoreInternal.RegionOrBuilder- Returns:
- The lastSplitTimestamp.
-
getParentId
public long getParentId()int64 parent_id = 72;- Specified by:
getParentIdin interfaceStoreInternal.RegionOrBuilder- Returns:
- The parentId.
-
getSnapshotEpochVersion
public long getSnapshotEpochVersion()latest region raft snapshot epoch version
int64 snapshot_epoch_version = 74;- Specified by:
getSnapshotEpochVersionin interfaceStoreInternal.RegionOrBuilder- Returns:
- The snapshotEpochVersion.
-
getLastChangeJobId
public long getLastChangeJobId()Last split/merge/change_peer job id
int64 last_change_job_id = 76;- Specified by:
getLastChangeJobIdin interfaceStoreInternal.RegionOrBuilder- Returns:
- The lastChangeJobId.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static StoreInternal.Region parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StoreInternal.Region parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StoreInternal.Region parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StoreInternal.Region parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StoreInternal.Region parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StoreInternal.Region parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StoreInternal.Region parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static StoreInternal.Region parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static StoreInternal.Region parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static StoreInternal.Region parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected StoreInternal.Region.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-