Package io.dingodb.meta
Class Meta.RangeDistribution
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.meta.Meta.RangeDistribution
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Meta.RangeDistributionOrBuilder,Serializable
- Enclosing class:
- Meta
public static final class Meta.RangeDistribution
extends com.google.protobuf.GeneratedMessageV3
implements Meta.RangeDistributionOrBuilder
This Part is mainly equal to the Part in DingoDB 0.5.xProtobuf type
dingodb.pb.meta.RangeDistribution- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThis Part is mainly equal to the Part in DingoDB 0.5.xNested 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 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 Meta.RangeDistributionstatic final com.google.protobuf.Descriptors.DescriptorgetId()this is really region id, its parent entity is part_idthis is really region id, its parent entity is part_idthe 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<Meta.RangeDistribution>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 stalelongint64 regionmap_epoch = 6;intRegionStatusRegionStatuslongint64 storemap_epoch = 7;getVoters(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()booleanhasId()this is really region id, its parent entity is part_idbooleanthe 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(Meta.RangeDistribution prototype) protected Meta.RangeDistribution.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Meta.RangeDistributionparseDelimitedFrom(InputStream input) static Meta.RangeDistributionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.RangeDistributionparseFrom(byte[] data) static Meta.RangeDistributionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.RangeDistributionparseFrom(com.google.protobuf.ByteString data) static Meta.RangeDistributionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.RangeDistributionparseFrom(com.google.protobuf.CodedInputStream input) static Meta.RangeDistributionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.RangeDistributionparseFrom(InputStream input) static Meta.RangeDistributionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.RangeDistributionparseFrom(ByteBuffer data) static Meta.RangeDistributionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Meta.RangeDistribution>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:
-
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:
-
REGIONMAP_EPOCH_FIELD_NUMBER
public static final int REGIONMAP_EPOCH_FIELD_NUMBER- See Also:
-
STOREMAP_EPOCH_FIELD_NUMBER
public static final int STOREMAP_EPOCH_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
-
hasId
public boolean hasId()this is really region id, its parent entity is part_id
.dingodb.pb.meta.DingoCommonId id = 1;- Specified by:
hasIdin interfaceMeta.RangeDistributionOrBuilder- Returns:
- Whether the id field is set.
-
getId
this is really region id, its parent entity is part_id
.dingodb.pb.meta.DingoCommonId id = 1;- Specified by:
getIdin interfaceMeta.RangeDistributionOrBuilder- Returns:
- The id.
-
getIdOrBuilder
this is really region id, its parent entity is part_id
.dingodb.pb.meta.DingoCommonId id = 1;- Specified by:
getIdOrBuilderin interfaceMeta.RangeDistributionOrBuilder
-
hasRange
public boolean hasRange()the range of this part
.dingodb.pb.common.Range range = 2;- Specified by:
hasRangein interfaceMeta.RangeDistributionOrBuilder- Returns:
- Whether the range field is set.
-
getRange
the range of this part
.dingodb.pb.common.Range range = 2;- Specified by:
getRangein interfaceMeta.RangeDistributionOrBuilder- Returns:
- The range.
-
getRangeOrBuilder
the range of this part
.dingodb.pb.common.Range range = 2;- Specified by:
getRangeOrBuilderin interfaceMeta.RangeDistributionOrBuilder
-
hasLeader
public boolean hasLeader()the leader's store location
.dingodb.pb.common.Location leader = 3;- Specified by:
hasLeaderin interfaceMeta.RangeDistributionOrBuilder- Returns:
- Whether the leader field is set.
-
getLeader
the leader's store location
.dingodb.pb.common.Location leader = 3;- Specified by:
getLeaderin interfaceMeta.RangeDistributionOrBuilder- Returns:
- The leader.
-
getLeaderOrBuilder
the leader's store location
.dingodb.pb.common.Location leader = 3;- Specified by:
getLeaderOrBuilderin interfaceMeta.RangeDistributionOrBuilder
-
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 interfaceMeta.RangeDistributionOrBuilder
-
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 interfaceMeta.RangeDistributionOrBuilder
-
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 interfaceMeta.RangeDistributionOrBuilder
-
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 interfaceMeta.RangeDistributionOrBuilder
-
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 interfaceMeta.RangeDistributionOrBuilder
-
getLearnersList
all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5;- Specified by:
getLearnersListin interfaceMeta.RangeDistributionOrBuilder
-
getLearnersOrBuilderList
all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5;- Specified by:
getLearnersOrBuilderListin interfaceMeta.RangeDistributionOrBuilder
-
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 interfaceMeta.RangeDistributionOrBuilder
-
getLearners
all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5;- Specified by:
getLearnersin interfaceMeta.RangeDistributionOrBuilder
-
getLearnersOrBuilder
all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5;- Specified by:
getLearnersOrBuilderin interfaceMeta.RangeDistributionOrBuilder
-
getRegionmapEpoch
public long getRegionmapEpoch()int64 regionmap_epoch = 6;- Specified by:
getRegionmapEpochin interfaceMeta.RangeDistributionOrBuilder- Returns:
- The regionmapEpoch.
-
getStoremapEpoch
public long getStoremapEpoch()int64 storemap_epoch = 7;- Specified by:
getStoremapEpochin interfaceMeta.RangeDistributionOrBuilder- Returns:
- The storemapEpoch.
-
hasRegionEpoch
public boolean hasRegionEpoch()region_epoch is used to check whether the region info is stale
.dingodb.pb.common.RegionEpoch region_epoch = 8;- Specified by:
hasRegionEpochin interfaceMeta.RangeDistributionOrBuilder- 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 = 8;- Specified by:
getRegionEpochin interfaceMeta.RangeDistributionOrBuilder- Returns:
- The regionEpoch.
-
getRegionEpochOrBuilder
region_epoch is used to check whether the region info is stale
.dingodb.pb.common.RegionEpoch region_epoch = 8;- Specified by:
getRegionEpochOrBuilderin interfaceMeta.RangeDistributionOrBuilder
-
hasStatus
public boolean hasStatus()RegionStatus
.dingodb.pb.meta.RegionStatus status = 9;- Specified by:
hasStatusin interfaceMeta.RangeDistributionOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
RegionStatus
.dingodb.pb.meta.RegionStatus status = 9;- Specified by:
getStatusin interfaceMeta.RangeDistributionOrBuilder- Returns:
- The status.
-
getStatusOrBuilder
RegionStatus
.dingodb.pb.meta.RegionStatus status = 9;- Specified by:
getStatusOrBuilderin interfaceMeta.RangeDistributionOrBuilder
-
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 Meta.RangeDistribution parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.RangeDistribution parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.RangeDistribution parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.RangeDistribution parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.RangeDistribution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.RangeDistribution parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Meta.RangeDistribution parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Meta.RangeDistribution parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Meta.RangeDistribution parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Meta.RangeDistribution 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 Meta.RangeDistribution.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
-