Class Common.RegionMetrics

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.common.Common.RegionMetrics
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Common.RegionMetricsOrBuilder, Serializable
Enclosing class:
Common

public static final class Common.RegionMetrics extends com.google.protobuf.GeneratedMessageV3 implements Common.RegionMetricsOrBuilder
 RegionMetrics
 
Protobuf type dingodb.pb.common.RegionMetrics
See Also:
  • Field Details

    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • LEADER_STORE_ID_FIELD_NUMBER

      public static final int LEADER_STORE_ID_FIELD_NUMBER
      See Also:
    • STORE_REGION_STATE_FIELD_NUMBER

      public static final int STORE_REGION_STATE_FIELD_NUMBER
      See Also:
    • BRAFT_STATUS_FIELD_NUMBER

      public static final int BRAFT_STATUS_FIELD_NUMBER
      See Also:
    • REGION_DEFINITION_FIELD_NUMBER

      public static final int REGION_DEFINITION_FIELD_NUMBER
      See Also:
    • VECTOR_INDEX_STATUS_FIELD_NUMBER

      public static final int VECTOR_INDEX_STATUS_FIELD_NUMBER
      See Also:
    • DOCUMENT_INDEX_STATUS_FIELD_NUMBER

      public static final int DOCUMENT_INDEX_STATUS_FIELD_NUMBER
      See Also:
    • ROW_COUNT_FIELD_NUMBER

      public static final int ROW_COUNT_FIELD_NUMBER
      See Also:
    • MIN_KEY_FIELD_NUMBER

      public static final int MIN_KEY_FIELD_NUMBER
      See Also:
    • MAX_KEY_FIELD_NUMBER

      public static final int MAX_KEY_FIELD_NUMBER
      See Also:
    • REGION_SIZE_FIELD_NUMBER

      public static final int REGION_SIZE_FIELD_NUMBER
      See Also:
    • LAST_UPDATE_METRICS_LOG_INDEX_FIELD_NUMBER

      public static final int LAST_UPDATE_METRICS_LOG_INDEX_FIELD_NUMBER
      See Also:
    • LAST_UPDATE_METRICS_VERSION_FIELD_NUMBER

      public static final int LAST_UPDATE_METRICS_VERSION_FIELD_NUMBER
      See Also:
    • LAST_UPDATE_METRICS_TIMESTAMP_FIELD_NUMBER

      public static final int LAST_UPDATE_METRICS_TIMESTAMP_FIELD_NUMBER
      See Also:
    • VECTOR_INDEX_METRICS_FIELD_NUMBER

      public static final int VECTOR_INDEX_METRICS_FIELD_NUMBER
      See Also:
    • SNAPSHOT_EPOCH_VERSION_FIELD_NUMBER

      public static final int SNAPSHOT_EPOCH_VERSION_FIELD_NUMBER
      See Also:
    • DOCUMENT_INDEX_METRICS_FIELD_NUMBER

      public static final int DOCUMENT_INDEX_METRICS_FIELD_NUMBER
      See Also:
    • REGION_STATUS_FIELD_NUMBER

      public static final int REGION_STATUS_FIELD_NUMBER
      See Also:
  • 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
    • getId

      public long getId()
      int64 id = 1;
      Specified by:
      getId in interface Common.RegionMetricsOrBuilder
      Returns:
      The id.
    • getLeaderStoreId

      public long getLeaderStoreId()
       leader store id
       
      int64 leader_store_id = 2;
      Specified by:
      getLeaderStoreId in interface Common.RegionMetricsOrBuilder
      Returns:
      The leaderStoreId.
    • getStoreRegionStateValue

      public int getStoreRegionStateValue()
       region state defined by store
       
      .dingodb.pb.common.StoreRegionState store_region_state = 3;
      Specified by:
      getStoreRegionStateValue in interface Common.RegionMetricsOrBuilder
      Returns:
      The enum numeric value on the wire for storeRegionState.
    • getStoreRegionState

      public Common.StoreRegionState getStoreRegionState()
       region state defined by store
       
      .dingodb.pb.common.StoreRegionState store_region_state = 3;
      Specified by:
      getStoreRegionState in interface Common.RegionMetricsOrBuilder
      Returns:
      The storeRegionState.
    • hasBraftStatus

      public boolean hasBraftStatus()
       region braft status defined by store
       
      .dingodb.pb.common.BRaftStatus braft_status = 4;
      Specified by:
      hasBraftStatus in interface Common.RegionMetricsOrBuilder
      Returns:
      Whether the braftStatus field is set.
    • getBraftStatus

      public Common.BRaftStatus getBraftStatus()
       region braft status defined by store
       
      .dingodb.pb.common.BRaftStatus braft_status = 4;
      Specified by:
      getBraftStatus in interface Common.RegionMetricsOrBuilder
      Returns:
      The braftStatus.
    • getBraftStatusOrBuilder

      public Common.BRaftStatusOrBuilder getBraftStatusOrBuilder()
       region braft status defined by store
       
      .dingodb.pb.common.BRaftStatus braft_status = 4;
      Specified by:
      getBraftStatusOrBuilder in interface Common.RegionMetricsOrBuilder
    • hasRegionDefinition

      public boolean hasRegionDefinition()
       region definition
       
      .dingodb.pb.common.RegionDefinition region_definition = 5;
      Specified by:
      hasRegionDefinition in interface Common.RegionMetricsOrBuilder
      Returns:
      Whether the regionDefinition field is set.
    • getRegionDefinition

      public Common.RegionDefinition getRegionDefinition()
       region definition
       
      .dingodb.pb.common.RegionDefinition region_definition = 5;
      Specified by:
      getRegionDefinition in interface Common.RegionMetricsOrBuilder
      Returns:
      The regionDefinition.
    • getRegionDefinitionOrBuilder

      public Common.RegionDefinitionOrBuilder getRegionDefinitionOrBuilder()
       region definition
       
      .dingodb.pb.common.RegionDefinition region_definition = 5;
      Specified by:
      getRegionDefinitionOrBuilder in interface Common.RegionMetricsOrBuilder
    • hasVectorIndexStatus

      public boolean hasVectorIndexStatus()
       vector index status
       
      .dingodb.pb.common.VectorIndexStatus vector_index_status = 6;
      Specified by:
      hasVectorIndexStatus in interface Common.RegionMetricsOrBuilder
      Returns:
      Whether the vectorIndexStatus field is set.
    • getVectorIndexStatus

      public Common.VectorIndexStatus getVectorIndexStatus()
       vector index status
       
      .dingodb.pb.common.VectorIndexStatus vector_index_status = 6;
      Specified by:
      getVectorIndexStatus in interface Common.RegionMetricsOrBuilder
      Returns:
      The vectorIndexStatus.
    • getVectorIndexStatusOrBuilder

      public Common.VectorIndexStatusOrBuilder getVectorIndexStatusOrBuilder()
       vector index status
       
      .dingodb.pb.common.VectorIndexStatus vector_index_status = 6;
      Specified by:
      getVectorIndexStatusOrBuilder in interface Common.RegionMetricsOrBuilder
    • hasDocumentIndexStatus

      public boolean hasDocumentIndexStatus()
       document index status
       
      .dingodb.pb.common.DocumentIndexStatus document_index_status = 7;
      Specified by:
      hasDocumentIndexStatus in interface Common.RegionMetricsOrBuilder
      Returns:
      Whether the documentIndexStatus field is set.
    • getDocumentIndexStatus

      public Common.DocumentIndexStatus getDocumentIndexStatus()
       document index status
       
      .dingodb.pb.common.DocumentIndexStatus document_index_status = 7;
      Specified by:
      getDocumentIndexStatus in interface Common.RegionMetricsOrBuilder
      Returns:
      The documentIndexStatus.
    • getDocumentIndexStatusOrBuilder

      public Common.DocumentIndexStatusOrBuilder getDocumentIndexStatusOrBuilder()
       document index status
       
      .dingodb.pb.common.DocumentIndexStatus document_index_status = 7;
      Specified by:
      getDocumentIndexStatusOrBuilder in interface Common.RegionMetricsOrBuilder
    • getRowCount

      public long getRowCount()
       row count of this region
       
      int64 row_count = 11;
      Specified by:
      getRowCount in interface Common.RegionMetricsOrBuilder
      Returns:
      The rowCount.
    • getMinKey

      public com.google.protobuf.ByteString getMinKey()
       the min key of this region now exist
       
      bytes min_key = 12;
      Specified by:
      getMinKey in interface Common.RegionMetricsOrBuilder
      Returns:
      The minKey.
    • getMaxKey

      public com.google.protobuf.ByteString getMaxKey()
       the max key of this region now exist
       
      bytes max_key = 13;
      Specified by:
      getMaxKey in interface Common.RegionMetricsOrBuilder
      Returns:
      The maxKey.
    • getRegionSize

      public long getRegionSize()
       the bytes size of this region
       
      int64 region_size = 14;
      Specified by:
      getRegionSize in interface Common.RegionMetricsOrBuilder
      Returns:
      The regionSize.
    • getLastUpdateMetricsLogIndex

      public long getLastUpdateMetricsLogIndex()
       last update metrics log index
       
      int64 last_update_metrics_log_index = 15;
      Specified by:
      getLastUpdateMetricsLogIndex in interface Common.RegionMetricsOrBuilder
      Returns:
      The lastUpdateMetricsLogIndex.
    • getLastUpdateMetricsVersion

      public long getLastUpdateMetricsVersion()
       last update metrics version
       
      int64 last_update_metrics_version = 16;
      Specified by:
      getLastUpdateMetricsVersion in interface Common.RegionMetricsOrBuilder
      Returns:
      The lastUpdateMetricsVersion.
    • getLastUpdateMetricsTimestamp

      public long getLastUpdateMetricsTimestamp()
       last update metrics timestamp
       
      int64 last_update_metrics_timestamp = 17;
      Specified by:
      getLastUpdateMetricsTimestamp in interface Common.RegionMetricsOrBuilder
      Returns:
      The lastUpdateMetricsTimestamp.
    • hasVectorIndexMetrics

      public boolean hasVectorIndexMetrics()
       bool is_hold_vector_index = 29;                // is hold vector index
       
      .dingodb.pb.common.VectorIndexMetrics vector_index_metrics = 20;
      Specified by:
      hasVectorIndexMetrics in interface Common.RegionMetricsOrBuilder
      Returns:
      Whether the vectorIndexMetrics field is set.
    • getVectorIndexMetrics

      public Common.VectorIndexMetrics getVectorIndexMetrics()
       bool is_hold_vector_index = 29;                // is hold vector index
       
      .dingodb.pb.common.VectorIndexMetrics vector_index_metrics = 20;
      Specified by:
      getVectorIndexMetrics in interface Common.RegionMetricsOrBuilder
      Returns:
      The vectorIndexMetrics.
    • getVectorIndexMetricsOrBuilder

      public Common.VectorIndexMetricsOrBuilder getVectorIndexMetricsOrBuilder()
       bool is_hold_vector_index = 29;                // is hold vector index
       
      .dingodb.pb.common.VectorIndexMetrics vector_index_metrics = 20;
      Specified by:
      getVectorIndexMetricsOrBuilder in interface Common.RegionMetricsOrBuilder
    • getSnapshotEpochVersion

      public long getSnapshotEpochVersion()
       latest region raft snapshot epoch version
       
      int64 snapshot_epoch_version = 21;
      Specified by:
      getSnapshotEpochVersion in interface Common.RegionMetricsOrBuilder
      Returns:
      The snapshotEpochVersion.
    • hasDocumentIndexMetrics

      public boolean hasDocumentIndexMetrics()
       document index metrics
       
      .dingodb.pb.common.DocumentIndexMetrics document_index_metrics = 22;
      Specified by:
      hasDocumentIndexMetrics in interface Common.RegionMetricsOrBuilder
      Returns:
      Whether the documentIndexMetrics field is set.
    • getDocumentIndexMetrics

      public Common.DocumentIndexMetrics getDocumentIndexMetrics()
       document index metrics
       
      .dingodb.pb.common.DocumentIndexMetrics document_index_metrics = 22;
      Specified by:
      getDocumentIndexMetrics in interface Common.RegionMetricsOrBuilder
      Returns:
      The documentIndexMetrics.
    • getDocumentIndexMetricsOrBuilder

      public Common.DocumentIndexMetricsOrBuilder getDocumentIndexMetricsOrBuilder()
       document index metrics
       
      .dingodb.pb.common.DocumentIndexMetrics document_index_metrics = 22;
      Specified by:
      getDocumentIndexMetricsOrBuilder in interface Common.RegionMetricsOrBuilder
    • hasRegionStatus

      public boolean hasRegionStatus()
       region's info
       
      .dingodb.pb.common.RegionStatus region_status = 30;
      Specified by:
      hasRegionStatus in interface Common.RegionMetricsOrBuilder
      Returns:
      Whether the regionStatus field is set.
    • getRegionStatus

      public Common.RegionStatus getRegionStatus()
       region's info
       
      .dingodb.pb.common.RegionStatus region_status = 30;
      Specified by:
      getRegionStatus in interface Common.RegionMetricsOrBuilder
      Returns:
      The regionStatus.
    • getRegionStatusOrBuilder

      public Common.RegionStatusOrBuilder getRegionStatusOrBuilder()
       region's info
       
      .dingodb.pb.common.RegionStatus region_status = 30;
      Specified by:
      getRegionStatusOrBuilder in interface Common.RegionMetricsOrBuilder
    • 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 Common.RegionMetrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Common.RegionMetrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Common.RegionMetrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Common.RegionMetrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Common.RegionMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Common.RegionMetrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Common.RegionMetrics parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Common.RegionMetrics parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static Common.RegionMetrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Common.RegionMetrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Common.RegionMetrics.Builder newBuilder()
    • newBuilder

      public static Common.RegionMetrics.Builder newBuilder(Common.RegionMetrics prototype)
    • toBuilder

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

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

      public static Common.RegionMetrics getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Common.RegionMetrics> parser()
    • getParserForType

      public com.google.protobuf.Parser<Common.RegionMetrics> 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 Common.RegionMetrics getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder