Package io.dingodb.common
Class Common.RegionDefinition
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.common.Common.RegionDefinition
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Common.RegionDefinitionOrBuilder,Serializable
- Enclosing class:
- Common
public static final class Common.RegionDefinition
extends com.google.protobuf.GeneratedMessageV3
implements Common.RegionDefinitionOrBuilder
RegionDefinitionProtobuf type
dingodb.pb.common.RegionDefinition- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRegionDefinitionNested 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 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 Common.RegionDefinitionstatic final com.google.protobuf.Descriptors.DescriptorgetEpoch().dingodb.pb.common.RegionEpoch epoch = 2;.dingodb.pb.common.RegionEpoch epoch = 2;longgetId()store infolongint64 index_id = 13;.dingodb.pb.common.IndexParameter index_parameter = 20;.dingodb.pb.common.IndexParameter index_parameter = 20;getName()string name = 3;com.google.protobuf.ByteStringstring name = 3;com.google.protobuf.Parser<Common.RegionDefinition>longthe partition_id of this region, each partion contains one or more regionsgetPeers(int index) repeated .dingodb.pb.common.Peer peers = 4;intrepeated .dingodb.pb.common.Peer peers = 4;repeated .dingodb.pb.common.Peer peers = 4;getPeersOrBuilder(int index) repeated .dingodb.pb.common.Peer peers = 4;List<? extends Common.PeerOrBuilder>repeated .dingodb.pb.common.Peer peers = 4;getRange()this range is provide by user, such as sdkthis range is provide by user, such as sdkthis is the raw engine of the regionintthis is the raw engine of the regionlongint64 revision = 50;longmeta infointthis is the store engine of the regionintthis is the store engine of the regionlongint64 table_id = 12;longthe tenant_id of this region, this is useful gc in multi-tenant scenariobooleanhasEpoch().dingodb.pb.common.RegionEpoch epoch = 2;inthashCode()boolean.dingodb.pb.common.IndexParameter index_parameter = 20;booleanhasRange()this range is provide by user, such as sdkprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(Common.RegionDefinition prototype) protected Common.RegionDefinition.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Common.RegionDefinitionparseDelimitedFrom(InputStream input) static Common.RegionDefinitionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.RegionDefinitionparseFrom(byte[] data) static Common.RegionDefinitionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.RegionDefinitionparseFrom(com.google.protobuf.ByteString data) static Common.RegionDefinitionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.RegionDefinitionparseFrom(com.google.protobuf.CodedInputStream input) static Common.RegionDefinitionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.RegionDefinitionparseFrom(InputStream input) static Common.RegionDefinitionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.RegionDefinitionparseFrom(ByteBuffer data) static Common.RegionDefinitionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Common.RegionDefinition>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:
-
EPOCH_FIELD_NUMBER
public static final int EPOCH_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
PEERS_FIELD_NUMBER
public static final int PEERS_FIELD_NUMBER- See Also:
-
RANGE_FIELD_NUMBER
public static final int RANGE_FIELD_NUMBER- See Also:
-
RAW_ENGINE_FIELD_NUMBER
public static final int RAW_ENGINE_FIELD_NUMBER- See Also:
-
STORE_ENGINE_FIELD_NUMBER
public static final int STORE_ENGINE_FIELD_NUMBER- See Also:
-
SCHEMA_ID_FIELD_NUMBER
public static final int SCHEMA_ID_FIELD_NUMBER- See Also:
-
TABLE_ID_FIELD_NUMBER
public static final int TABLE_ID_FIELD_NUMBER- See Also:
-
INDEX_ID_FIELD_NUMBER
public static final int INDEX_ID_FIELD_NUMBER- See Also:
-
PART_ID_FIELD_NUMBER
public static final int PART_ID_FIELD_NUMBER- See Also:
-
TENANT_ID_FIELD_NUMBER
public static final int TENANT_ID_FIELD_NUMBER- See Also:
-
INDEX_PARAMETER_FIELD_NUMBER
public static final int INDEX_PARAMETER_FIELD_NUMBER- See Also:
-
REVISION_FIELD_NUMBER
public static final int REVISION_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()store info
int64 id = 1;- Specified by:
getIdin interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The id.
-
hasEpoch
public boolean hasEpoch().dingodb.pb.common.RegionEpoch epoch = 2;- Specified by:
hasEpochin interfaceCommon.RegionDefinitionOrBuilder- Returns:
- Whether the epoch field is set.
-
getEpoch
.dingodb.pb.common.RegionEpoch epoch = 2;- Specified by:
getEpochin interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The epoch.
-
getEpochOrBuilder
.dingodb.pb.common.RegionEpoch epoch = 2;- Specified by:
getEpochOrBuilderin interfaceCommon.RegionDefinitionOrBuilder
-
getName
string name = 3;- Specified by:
getNamein interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 3;- Specified by:
getNameBytesin interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The bytes for name.
-
getPeersList
repeated .dingodb.pb.common.Peer peers = 4;- Specified by:
getPeersListin interfaceCommon.RegionDefinitionOrBuilder
-
getPeersOrBuilderList
repeated .dingodb.pb.common.Peer peers = 4;- Specified by:
getPeersOrBuilderListin interfaceCommon.RegionDefinitionOrBuilder
-
getPeersCount
public int getPeersCount()repeated .dingodb.pb.common.Peer peers = 4;- Specified by:
getPeersCountin interfaceCommon.RegionDefinitionOrBuilder
-
getPeers
repeated .dingodb.pb.common.Peer peers = 4;- Specified by:
getPeersin interfaceCommon.RegionDefinitionOrBuilder
-
getPeersOrBuilder
repeated .dingodb.pb.common.Peer peers = 4;- Specified by:
getPeersOrBuilderin interfaceCommon.RegionDefinitionOrBuilder
-
hasRange
public boolean hasRange()this range is provide by user, such as sdk
.dingodb.pb.common.Range range = 5;- Specified by:
hasRangein interfaceCommon.RegionDefinitionOrBuilder- Returns:
- Whether the range field is set.
-
getRange
this range is provide by user, such as sdk
.dingodb.pb.common.Range range = 5;- Specified by:
getRangein interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The range.
-
getRangeOrBuilder
this range is provide by user, such as sdk
.dingodb.pb.common.Range range = 5;- Specified by:
getRangeOrBuilderin interfaceCommon.RegionDefinitionOrBuilder
-
getRawEngineValue
public int getRawEngineValue()this is the raw engine of the region
.dingodb.pb.common.RawEngine raw_engine = 6;- Specified by:
getRawEngineValuein interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The enum numeric value on the wire for rawEngine.
-
getRawEngine
this is the raw engine of the region
.dingodb.pb.common.RawEngine raw_engine = 6;- Specified by:
getRawEnginein interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The rawEngine.
-
getStoreEngineValue
public int getStoreEngineValue()this is the store engine of the region
.dingodb.pb.common.StorageEngine store_engine = 7;- Specified by:
getStoreEngineValuein interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The enum numeric value on the wire for storeEngine.
-
getStoreEngine
this is the store engine of the region
.dingodb.pb.common.StorageEngine store_engine = 7;- Specified by:
getStoreEnginein interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The storeEngine.
-
getSchemaId
public long getSchemaId()meta info
int64 schema_id = 11;- Specified by:
getSchemaIdin interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The schemaId.
-
getTableId
public long getTableId()int64 table_id = 12;- Specified by:
getTableIdin interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The tableId.
-
getIndexId
public long getIndexId()int64 index_id = 13;- Specified by:
getIndexIdin interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The indexId.
-
getPartId
public long getPartId()the partition_id of this region, each partion contains one or more regions
int64 part_id = 14;- Specified by:
getPartIdin interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The partId.
-
getTenantId
public long getTenantId()the tenant_id of this region, this is useful gc in multi-tenant scenario
int64 tenant_id = 15;- Specified by:
getTenantIdin interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The tenantId.
-
hasIndexParameter
public boolean hasIndexParameter().dingodb.pb.common.IndexParameter index_parameter = 20;- Specified by:
hasIndexParameterin interfaceCommon.RegionDefinitionOrBuilder- Returns:
- Whether the indexParameter field is set.
-
getIndexParameter
.dingodb.pb.common.IndexParameter index_parameter = 20;- Specified by:
getIndexParameterin interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The indexParameter.
-
getIndexParameterOrBuilder
.dingodb.pb.common.IndexParameter index_parameter = 20;- Specified by:
getIndexParameterOrBuilderin interfaceCommon.RegionDefinitionOrBuilder
-
getRevision
public long getRevision()int64 revision = 50;- Specified by:
getRevisionin interfaceCommon.RegionDefinitionOrBuilder- Returns:
- The revision.
-
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.RegionDefinition parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.RegionDefinition parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.RegionDefinition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.RegionDefinition 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.RegionDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.RegionDefinition 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.RegionDefinition parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Common.RegionDefinition parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Common.RegionDefinition parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Common.RegionDefinition 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.RegionDefinition.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
-