Package io.dingodb.coordinator
Class Coordinator.ScanRegionInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.coordinator.Coordinator.ScanRegionInfo
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Coordinator.ScanRegionInfoOrBuilder,Serializable
- Enclosing class:
- Coordinator
public static final class Coordinator.ScanRegionInfo
extends com.google.protobuf.GeneratedMessageV3
implements Coordinator.ScanRegionInfoOrBuilder
Protobuf type
dingodb.pb.coordinator.ScanRegionInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typedingodb.pb.coordinator.ScanRegionInfoNested 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 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 Coordinator.ScanRegionInfostatic final com.google.protobuf.Descriptors.Descriptorthe leader's store locationthe leader's store locationgetLearners(int index) all members of the region that is learners, have no right to voteintall members of the region that is learners, have no right to voteall members of the region that is learners, have no right to votegetLearnersOrBuilder(int index) all members of the region that is learners, have no right to voteList<? extends Common.LocationOrBuilder>all members of the region that is learners, have no right to votecom.google.protobuf.Parser<Coordinator.ScanRegionInfo>getRange()the range of this partthe range of this partregion_epoch is used to check whether the region info is staleregion_epoch is used to check whether the region info is stalelongthis is really region id, its parent entity is part_idintRegionStatusRegionStatusgetVoters(int index) all members of the region that have right to vote, this field is equal to the old replicates field of Part.intall members of the region that have right to vote, this field is equal to the old replicates field of Part.all members of the region that have right to vote, this field is equal to the old replicates field of Part.getVotersOrBuilder(int index) all members of the region that have right to vote, this field is equal to the old replicates field of Part.List<? extends Common.LocationOrBuilder>all members of the region that have right to vote, this field is equal to the old replicates field of Part.inthashCode()booleanthe leader's store locationbooleanhasRange()the range of this partbooleanregion_epoch is used to check whether the region info is stalebooleanRegionStatusprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(Coordinator.ScanRegionInfo prototype) protected Coordinator.ScanRegionInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Coordinator.ScanRegionInfoparseDelimitedFrom(InputStream input) static Coordinator.ScanRegionInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Coordinator.ScanRegionInfoparseFrom(byte[] data) static Coordinator.ScanRegionInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Coordinator.ScanRegionInfoparseFrom(com.google.protobuf.ByteString data) static Coordinator.ScanRegionInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Coordinator.ScanRegionInfoparseFrom(com.google.protobuf.CodedInputStream input) static Coordinator.ScanRegionInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Coordinator.ScanRegionInfoparseFrom(InputStream input) static Coordinator.ScanRegionInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Coordinator.ScanRegionInfoparseFrom(ByteBuffer data) static Coordinator.ScanRegionInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Coordinator.ScanRegionInfo>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
-
REGION_ID_FIELD_NUMBER
public static final int REGION_ID_FIELD_NUMBER- See Also:
-
RANGE_FIELD_NUMBER
public static final int RANGE_FIELD_NUMBER- See Also:
-
LEADER_FIELD_NUMBER
public static final int LEADER_FIELD_NUMBER- See Also:
-
VOTERS_FIELD_NUMBER
public static final int VOTERS_FIELD_NUMBER- See Also:
-
LEARNERS_FIELD_NUMBER
public static final int LEARNERS_FIELD_NUMBER- See Also:
-
REGION_EPOCH_FIELD_NUMBER
public static final int REGION_EPOCH_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_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
-
getRegionId
public long getRegionId()this is really region id, its parent entity is part_id
int64 region_id = 1;- Specified by:
getRegionIdin interfaceCoordinator.ScanRegionInfoOrBuilder- Returns:
- The regionId.
-
hasRange
public boolean hasRange()the range of this part
.dingodb.pb.common.Range range = 2;- Specified by:
hasRangein interfaceCoordinator.ScanRegionInfoOrBuilder- Returns:
- Whether the range field is set.
-
getRange
the range of this part
.dingodb.pb.common.Range range = 2;- Specified by:
getRangein interfaceCoordinator.ScanRegionInfoOrBuilder- Returns:
- The range.
-
getRangeOrBuilder
the range of this part
.dingodb.pb.common.Range range = 2;- Specified by:
getRangeOrBuilderin interfaceCoordinator.ScanRegionInfoOrBuilder
-
hasLeader
public boolean hasLeader()the leader's store location
.dingodb.pb.common.Location leader = 3;- Specified by:
hasLeaderin interfaceCoordinator.ScanRegionInfoOrBuilder- Returns:
- Whether the leader field is set.
-
getLeader
the leader's store location
.dingodb.pb.common.Location leader = 3;- Specified by:
getLeaderin interfaceCoordinator.ScanRegionInfoOrBuilder- Returns:
- The leader.
-
getLeaderOrBuilder
the leader's store location
.dingodb.pb.common.Location leader = 3;- Specified by:
getLeaderOrBuilderin interfaceCoordinator.ScanRegionInfoOrBuilder
-
getVotersList
all members of the region that have right to vote, this field is equal to the old replicates field of Part.
repeated .dingodb.pb.common.Location voters = 4;- Specified by:
getVotersListin interfaceCoordinator.ScanRegionInfoOrBuilder
-
getVotersOrBuilderList
all members of the region that have right to vote, this field is equal to the old replicates field of Part.
repeated .dingodb.pb.common.Location voters = 4;- Specified by:
getVotersOrBuilderListin interfaceCoordinator.ScanRegionInfoOrBuilder
-
getVotersCount
public int getVotersCount()all members of the region that have right to vote, this field is equal to the old replicates field of Part.
repeated .dingodb.pb.common.Location voters = 4;- Specified by:
getVotersCountin interfaceCoordinator.ScanRegionInfoOrBuilder
-
getVoters
all members of the region that have right to vote, this field is equal to the old replicates field of Part.
repeated .dingodb.pb.common.Location voters = 4;- Specified by:
getVotersin interfaceCoordinator.ScanRegionInfoOrBuilder
-
getVotersOrBuilder
all members of the region that have right to vote, this field is equal to the old replicates field of Part.
repeated .dingodb.pb.common.Location voters = 4;- Specified by:
getVotersOrBuilderin interfaceCoordinator.ScanRegionInfoOrBuilder
-
getLearnersList
all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5;- Specified by:
getLearnersListin interfaceCoordinator.ScanRegionInfoOrBuilder
-
getLearnersOrBuilderList
all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5;- Specified by:
getLearnersOrBuilderListin interfaceCoordinator.ScanRegionInfoOrBuilder
-
getLearnersCount
public int getLearnersCount()all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5;- Specified by:
getLearnersCountin interfaceCoordinator.ScanRegionInfoOrBuilder
-
getLearners
all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5;- Specified by:
getLearnersin interfaceCoordinator.ScanRegionInfoOrBuilder
-
getLearnersOrBuilder
all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5;- Specified by:
getLearnersOrBuilderin interfaceCoordinator.ScanRegionInfoOrBuilder
-
hasRegionEpoch
public boolean hasRegionEpoch()region_epoch is used to check whether the region info is stale
.dingodb.pb.common.RegionEpoch region_epoch = 6;- Specified by:
hasRegionEpochin interfaceCoordinator.ScanRegionInfoOrBuilder- Returns:
- Whether the regionEpoch field is set.
-
getRegionEpoch
region_epoch is used to check whether the region info is stale
.dingodb.pb.common.RegionEpoch region_epoch = 6;- Specified by:
getRegionEpochin interfaceCoordinator.ScanRegionInfoOrBuilder- Returns:
- The regionEpoch.
-
getRegionEpochOrBuilder
region_epoch is used to check whether the region info is stale
.dingodb.pb.common.RegionEpoch region_epoch = 6;- Specified by:
getRegionEpochOrBuilderin interfaceCoordinator.ScanRegionInfoOrBuilder
-
hasStatus
public boolean hasStatus()RegionStatus
.dingodb.pb.coordinator.RegionStatus status = 7;- Specified by:
hasStatusin interfaceCoordinator.ScanRegionInfoOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
RegionStatus
.dingodb.pb.coordinator.RegionStatus status = 7;- Specified by:
getStatusin interfaceCoordinator.ScanRegionInfoOrBuilder- Returns:
- The status.
-
getStatusOrBuilder
RegionStatus
.dingodb.pb.coordinator.RegionStatus status = 7;- Specified by:
getStatusOrBuilderin interfaceCoordinator.ScanRegionInfoOrBuilder
-
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 Coordinator.ScanRegionInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.ScanRegionInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.ScanRegionInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.ScanRegionInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.ScanRegionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Coordinator.ScanRegionInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Coordinator.ScanRegionInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Coordinator.ScanRegionInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Coordinator.ScanRegionInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Coordinator.ScanRegionInfo 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 Coordinator.ScanRegionInfo.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
-