Package io.dingodb.coordinator
Interface Coordinator.ScanRegionInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Coordinator.ScanRegionInfo,Coordinator.ScanRegionInfo.Builder
- Enclosing class:
- Coordinator
public static interface Coordinator.ScanRegionInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionthe 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 votegetRange()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_idRegionStatusRegionStatusgetVoters(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.booleanthe leader's store locationbooleanhasRange()the range of this partbooleanregion_epoch is used to check whether the region info is stalebooleanRegionStatusMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getRegionId
long getRegionId()this is really region id, its parent entity is part_id
int64 region_id = 1;- Returns:
- The regionId.
-
hasRange
boolean hasRange()the range of this part
.dingodb.pb.common.Range range = 2;- Returns:
- Whether the range field is set.
-
getRange
Common.Range getRange()the range of this part
.dingodb.pb.common.Range range = 2;- Returns:
- The range.
-
getRangeOrBuilder
Common.RangeOrBuilder getRangeOrBuilder()the range of this part
.dingodb.pb.common.Range range = 2; -
hasLeader
boolean hasLeader()the leader's store location
.dingodb.pb.common.Location leader = 3;- Returns:
- Whether the leader field is set.
-
getLeader
Common.Location getLeader()the leader's store location
.dingodb.pb.common.Location leader = 3;- Returns:
- The leader.
-
getLeaderOrBuilder
Common.LocationOrBuilder getLeaderOrBuilder()the leader's store location
.dingodb.pb.common.Location leader = 3; -
getVotersList
List<Common.Location> 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; -
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; -
getVotersCount
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; -
getVotersOrBuilderList
List<? extends Common.LocationOrBuilder> 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; -
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; -
getLearnersList
List<Common.Location> getLearnersList()all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5; -
getLearners
all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5; -
getLearnersCount
int getLearnersCount()all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5; -
getLearnersOrBuilderList
List<? extends Common.LocationOrBuilder> getLearnersOrBuilderList()all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5; -
getLearnersOrBuilder
all members of the region that is learners, have no right to vote
repeated .dingodb.pb.common.Location learners = 5; -
hasRegionEpoch
boolean hasRegionEpoch()region_epoch is used to check whether the region info is stale
.dingodb.pb.common.RegionEpoch region_epoch = 6;- Returns:
- Whether the regionEpoch field is set.
-
getRegionEpoch
Common.RegionEpoch getRegionEpoch()region_epoch is used to check whether the region info is stale
.dingodb.pb.common.RegionEpoch region_epoch = 6;- Returns:
- The regionEpoch.
-
getRegionEpochOrBuilder
Common.RegionEpochOrBuilder getRegionEpochOrBuilder()region_epoch is used to check whether the region info is stale
.dingodb.pb.common.RegionEpoch region_epoch = 6; -
hasStatus
boolean hasStatus()RegionStatus
.dingodb.pb.coordinator.RegionStatus status = 7;- Returns:
- Whether the status field is set.
-
getStatus
Coordinator.RegionStatus getStatus()RegionStatus
.dingodb.pb.coordinator.RegionStatus status = 7;- Returns:
- The status.
-
getStatusOrBuilder
Coordinator.RegionStatusOrBuilder getStatusOrBuilder()RegionStatus
.dingodb.pb.coordinator.RegionStatus status = 7;
-