Package io.dingodb.common
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
RegionMetricsProtobuf type
dingodb.pb.common.RegionMetrics- See Also:
-
Nested Class Summary
Nested ClassesNested 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 intstatic 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 TypeMethodDescriptionbooleanregion braft status defined by storeregion braft status defined by storestatic Common.RegionMetricsstatic final com.google.protobuf.Descriptors.Descriptordocument index metricsdocument index metricsdocument index statusdocument index statuslonggetId()int64 id = 1;longlast update metrics log indexlonglast update metrics timestamplonglast update metrics versionlongleader store idcom.google.protobuf.ByteStringthe max key of this region now existcom.google.protobuf.ByteStringthe min key of this region now existcom.google.protobuf.Parser<Common.RegionMetrics>region definitionregion definitionlongthe bytes size of this regionregion's inforegion's infolongrow count of this regionintlonglatest region raft snapshot epoch versionregion state defined by storeintregion state defined by storebool is_hold_vector_index = 29; // is hold vector indexbool is_hold_vector_index = 29; // is hold vector indexvector index statusvector index statusbooleanregion braft status defined by storebooleandocument index metricsbooleandocument index statusinthashCode()booleanregion definitionbooleanregion's infobooleanbool is_hold_vector_index = 29; // is hold vector indexbooleanvector index statusprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Common.RegionMetrics.Builderstatic Common.RegionMetrics.BuildernewBuilder(Common.RegionMetrics prototype) protected Common.RegionMetrics.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Common.RegionMetricsparseDelimitedFrom(InputStream input) static Common.RegionMetricsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.RegionMetricsparseFrom(byte[] data) static Common.RegionMetricsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.RegionMetricsparseFrom(com.google.protobuf.ByteString data) static Common.RegionMetricsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.RegionMetricsparseFrom(com.google.protobuf.CodedInputStream input) static Common.RegionMetricsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.RegionMetricsparseFrom(InputStream input) static Common.RegionMetricsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.RegionMetricsparseFrom(ByteBuffer data) static Common.RegionMetricsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Common.RegionMetrics>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:
-
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
- 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
-
getId
public long getId()int64 id = 1;- Specified by:
getIdin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The id.
-
getLeaderStoreId
public long getLeaderStoreId()leader store id
int64 leader_store_id = 2;- Specified by:
getLeaderStoreIdin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The leaderStoreId.
-
getStoreRegionStateValue
public int getStoreRegionStateValue()region state defined by store
.dingodb.pb.common.StoreRegionState store_region_state = 3;- Specified by:
getStoreRegionStateValuein interfaceCommon.RegionMetricsOrBuilder- Returns:
- The enum numeric value on the wire for storeRegionState.
-
getStoreRegionState
region state defined by store
.dingodb.pb.common.StoreRegionState store_region_state = 3;- Specified by:
getStoreRegionStatein interfaceCommon.RegionMetricsOrBuilder- Returns:
- The storeRegionState.
-
hasBraftStatus
public boolean hasBraftStatus()region braft status defined by store
.dingodb.pb.common.BRaftStatus braft_status = 4;- Specified by:
hasBraftStatusin interfaceCommon.RegionMetricsOrBuilder- Returns:
- Whether the braftStatus field is set.
-
getBraftStatus
region braft status defined by store
.dingodb.pb.common.BRaftStatus braft_status = 4;- Specified by:
getBraftStatusin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The braftStatus.
-
getBraftStatusOrBuilder
region braft status defined by store
.dingodb.pb.common.BRaftStatus braft_status = 4;- Specified by:
getBraftStatusOrBuilderin interfaceCommon.RegionMetricsOrBuilder
-
hasRegionDefinition
public boolean hasRegionDefinition()region definition
.dingodb.pb.common.RegionDefinition region_definition = 5;- Specified by:
hasRegionDefinitionin interfaceCommon.RegionMetricsOrBuilder- Returns:
- Whether the regionDefinition field is set.
-
getRegionDefinition
region definition
.dingodb.pb.common.RegionDefinition region_definition = 5;- Specified by:
getRegionDefinitionin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The regionDefinition.
-
getRegionDefinitionOrBuilder
region definition
.dingodb.pb.common.RegionDefinition region_definition = 5;- Specified by:
getRegionDefinitionOrBuilderin interfaceCommon.RegionMetricsOrBuilder
-
hasVectorIndexStatus
public boolean hasVectorIndexStatus()vector index status
.dingodb.pb.common.VectorIndexStatus vector_index_status = 6;- Specified by:
hasVectorIndexStatusin interfaceCommon.RegionMetricsOrBuilder- Returns:
- Whether the vectorIndexStatus field is set.
-
getVectorIndexStatus
vector index status
.dingodb.pb.common.VectorIndexStatus vector_index_status = 6;- Specified by:
getVectorIndexStatusin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The vectorIndexStatus.
-
getVectorIndexStatusOrBuilder
vector index status
.dingodb.pb.common.VectorIndexStatus vector_index_status = 6;- Specified by:
getVectorIndexStatusOrBuilderin interfaceCommon.RegionMetricsOrBuilder
-
hasDocumentIndexStatus
public boolean hasDocumentIndexStatus()document index status
.dingodb.pb.common.DocumentIndexStatus document_index_status = 7;- Specified by:
hasDocumentIndexStatusin interfaceCommon.RegionMetricsOrBuilder- Returns:
- Whether the documentIndexStatus field is set.
-
getDocumentIndexStatus
document index status
.dingodb.pb.common.DocumentIndexStatus document_index_status = 7;- Specified by:
getDocumentIndexStatusin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The documentIndexStatus.
-
getDocumentIndexStatusOrBuilder
document index status
.dingodb.pb.common.DocumentIndexStatus document_index_status = 7;- Specified by:
getDocumentIndexStatusOrBuilderin interfaceCommon.RegionMetricsOrBuilder
-
getRowCount
public long getRowCount()row count of this region
int64 row_count = 11;- Specified by:
getRowCountin interfaceCommon.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:
getMinKeyin interfaceCommon.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:
getMaxKeyin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The maxKey.
-
getRegionSize
public long getRegionSize()the bytes size of this region
int64 region_size = 14;- Specified by:
getRegionSizein interfaceCommon.RegionMetricsOrBuilder- Returns:
- The regionSize.
-
getLastUpdateMetricsLogIndex
public long getLastUpdateMetricsLogIndex()last update metrics log index
int64 last_update_metrics_log_index = 15;- Specified by:
getLastUpdateMetricsLogIndexin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The lastUpdateMetricsLogIndex.
-
getLastUpdateMetricsVersion
public long getLastUpdateMetricsVersion()last update metrics version
int64 last_update_metrics_version = 16;- Specified by:
getLastUpdateMetricsVersionin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The lastUpdateMetricsVersion.
-
getLastUpdateMetricsTimestamp
public long getLastUpdateMetricsTimestamp()last update metrics timestamp
int64 last_update_metrics_timestamp = 17;- Specified by:
getLastUpdateMetricsTimestampin interfaceCommon.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:
hasVectorIndexMetricsin interfaceCommon.RegionMetricsOrBuilder- Returns:
- Whether the vectorIndexMetrics field is set.
-
getVectorIndexMetrics
bool is_hold_vector_index = 29; // is hold vector index
.dingodb.pb.common.VectorIndexMetrics vector_index_metrics = 20;- Specified by:
getVectorIndexMetricsin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The vectorIndexMetrics.
-
getVectorIndexMetricsOrBuilder
bool is_hold_vector_index = 29; // is hold vector index
.dingodb.pb.common.VectorIndexMetrics vector_index_metrics = 20;- Specified by:
getVectorIndexMetricsOrBuilderin interfaceCommon.RegionMetricsOrBuilder
-
getSnapshotEpochVersion
public long getSnapshotEpochVersion()latest region raft snapshot epoch version
int64 snapshot_epoch_version = 21;- Specified by:
getSnapshotEpochVersionin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The snapshotEpochVersion.
-
hasDocumentIndexMetrics
public boolean hasDocumentIndexMetrics()document index metrics
.dingodb.pb.common.DocumentIndexMetrics document_index_metrics = 22;- Specified by:
hasDocumentIndexMetricsin interfaceCommon.RegionMetricsOrBuilder- Returns:
- Whether the documentIndexMetrics field is set.
-
getDocumentIndexMetrics
document index metrics
.dingodb.pb.common.DocumentIndexMetrics document_index_metrics = 22;- Specified by:
getDocumentIndexMetricsin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The documentIndexMetrics.
-
getDocumentIndexMetricsOrBuilder
document index metrics
.dingodb.pb.common.DocumentIndexMetrics document_index_metrics = 22;- Specified by:
getDocumentIndexMetricsOrBuilderin interfaceCommon.RegionMetricsOrBuilder
-
hasRegionStatus
public boolean hasRegionStatus()region's info
.dingodb.pb.common.RegionStatus region_status = 30;- Specified by:
hasRegionStatusin interfaceCommon.RegionMetricsOrBuilder- Returns:
- Whether the regionStatus field is set.
-
getRegionStatus
region's info
.dingodb.pb.common.RegionStatus region_status = 30;- Specified by:
getRegionStatusin interfaceCommon.RegionMetricsOrBuilder- Returns:
- The regionStatus.
-
getRegionStatusOrBuilder
region's info
.dingodb.pb.common.RegionStatus region_status = 30;- Specified by:
getRegionStatusOrBuilderin interfaceCommon.RegionMetricsOrBuilder
-
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 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
- Throws:
IOException
-
parseFrom
public static Common.RegionMetrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- 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 Common.RegionMetrics.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
-