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.x
 
Protobuf type dingodb.pb.meta.RangeDistribution
See Also:
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.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:
      hasId in interface Meta.RangeDistributionOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public Meta.DingoCommonId getId()
       this is really region id, its parent entity is part_id
       
      .dingodb.pb.meta.DingoCommonId id = 1;
      Specified by:
      getId in interface Meta.RangeDistributionOrBuilder
      Returns:
      The id.
    • getIdOrBuilder

      public Meta.DingoCommonIdOrBuilder getIdOrBuilder()
       this is really region id, its parent entity is part_id
       
      .dingodb.pb.meta.DingoCommonId id = 1;
      Specified by:
      getIdOrBuilder in interface Meta.RangeDistributionOrBuilder
    • hasRange

      public boolean hasRange()
       the range of this part
       
      .dingodb.pb.common.Range range = 2;
      Specified by:
      hasRange in interface Meta.RangeDistributionOrBuilder
      Returns:
      Whether the range field is set.
    • getRange

      public Common.Range getRange()
       the range of this part
       
      .dingodb.pb.common.Range range = 2;
      Specified by:
      getRange in interface Meta.RangeDistributionOrBuilder
      Returns:
      The range.
    • getRangeOrBuilder

      public Common.RangeOrBuilder getRangeOrBuilder()
       the range of this part
       
      .dingodb.pb.common.Range range = 2;
      Specified by:
      getRangeOrBuilder in interface Meta.RangeDistributionOrBuilder
    • hasLeader

      public boolean hasLeader()
       the leader's store location
       
      .dingodb.pb.common.Location leader = 3;
      Specified by:
      hasLeader in interface Meta.RangeDistributionOrBuilder
      Returns:
      Whether the leader field is set.
    • getLeader

      public Common.Location getLeader()
       the leader's store location
       
      .dingodb.pb.common.Location leader = 3;
      Specified by:
      getLeader in interface Meta.RangeDistributionOrBuilder
      Returns:
      The leader.
    • getLeaderOrBuilder

      public Common.LocationOrBuilder getLeaderOrBuilder()
       the leader's store location
       
      .dingodb.pb.common.Location leader = 3;
      Specified by:
      getLeaderOrBuilder in interface Meta.RangeDistributionOrBuilder
    • getVotersList

      public 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;
      Specified by:
      getVotersList in interface Meta.RangeDistributionOrBuilder
    • getVotersOrBuilderList

      public 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;
      Specified by:
      getVotersOrBuilderList in interface Meta.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:
      getVotersCount in interface Meta.RangeDistributionOrBuilder
    • getVoters

      public Common.Location getVoters(int index)
       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:
      getVoters in interface Meta.RangeDistributionOrBuilder
    • getVotersOrBuilder

      public Common.LocationOrBuilder getVotersOrBuilder(int index)
       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:
      getVotersOrBuilder in interface Meta.RangeDistributionOrBuilder
    • getLearnersList

      public List<Common.Location> getLearnersList()
       all members of the region that is learners, have no right to vote
       
      repeated .dingodb.pb.common.Location learners = 5;
      Specified by:
      getLearnersList in interface Meta.RangeDistributionOrBuilder
    • getLearnersOrBuilderList

      public 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;
      Specified by:
      getLearnersOrBuilderList in interface Meta.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:
      getLearnersCount in interface Meta.RangeDistributionOrBuilder
    • getLearners

      public Common.Location getLearners(int index)
       all members of the region that is learners, have no right to vote
       
      repeated .dingodb.pb.common.Location learners = 5;
      Specified by:
      getLearners in interface Meta.RangeDistributionOrBuilder
    • getLearnersOrBuilder

      public Common.LocationOrBuilder getLearnersOrBuilder(int index)
       all members of the region that is learners, have no right to vote
       
      repeated .dingodb.pb.common.Location learners = 5;
      Specified by:
      getLearnersOrBuilder in interface Meta.RangeDistributionOrBuilder
    • getRegionmapEpoch

      public long getRegionmapEpoch()
      int64 regionmap_epoch = 6;
      Specified by:
      getRegionmapEpoch in interface Meta.RangeDistributionOrBuilder
      Returns:
      The regionmapEpoch.
    • getStoremapEpoch

      public long getStoremapEpoch()
      int64 storemap_epoch = 7;
      Specified by:
      getStoremapEpoch in interface Meta.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:
      hasRegionEpoch in interface Meta.RangeDistributionOrBuilder
      Returns:
      Whether the regionEpoch field is set.
    • getRegionEpoch

      public Common.RegionEpoch getRegionEpoch()
       region_epoch is used to check whether the region info is stale
       
      .dingodb.pb.common.RegionEpoch region_epoch = 8;
      Specified by:
      getRegionEpoch in interface Meta.RangeDistributionOrBuilder
      Returns:
      The regionEpoch.
    • getRegionEpochOrBuilder

      public Common.RegionEpochOrBuilder getRegionEpochOrBuilder()
       region_epoch is used to check whether the region info is stale
       
      .dingodb.pb.common.RegionEpoch region_epoch = 8;
      Specified by:
      getRegionEpochOrBuilder in interface Meta.RangeDistributionOrBuilder
    • hasStatus

      public boolean hasStatus()
       RegionStatus
       
      .dingodb.pb.meta.RegionStatus status = 9;
      Specified by:
      hasStatus in interface Meta.RangeDistributionOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public Meta.RegionStatus getStatus()
       RegionStatus
       
      .dingodb.pb.meta.RegionStatus status = 9;
      Specified by:
      getStatus in interface Meta.RangeDistributionOrBuilder
      Returns:
      The status.
    • getStatusOrBuilder

      public Meta.RegionStatusOrBuilder getStatusOrBuilder()
       RegionStatus
       
      .dingodb.pb.meta.RegionStatus status = 9;
      Specified by:
      getStatusOrBuilder in interface Meta.RangeDistributionOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static Meta.RangeDistribution parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Meta.RangeDistribution parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Meta.RangeDistribution parseDelimitedFrom(InputStream input) throws IOException
      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

      public Meta.RangeDistribution.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Meta.RangeDistribution.Builder newBuilder()
    • newBuilder

      public static Meta.RangeDistribution.Builder newBuilder(Meta.RangeDistribution prototype)
    • toBuilder

      public Meta.RangeDistribution.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Meta.RangeDistribution.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Meta.RangeDistribution getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Meta.RangeDistribution> parser()
    • getParserForType

      public com.google.protobuf.Parser<Meta.RangeDistribution> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Meta.RangeDistribution getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder