Package io.dingodb.coordinator
Interface Coordinator.CreateRegionRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Coordinator.CreateRegionRequest,Coordinator.CreateRegionRequest.Builder
- Enclosing class:
- Coordinator
public static interface Coordinator.CreateRegionRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlongoptional, if region_type is INDEX, this field is requiredoptional, if region_type is INDEX, this field is requiredoptional, if region_type is INDEX, this field is requiredlongoptional, if region_type is INDEX, this field is requiredgetRange().dingodb.pb.common.Range range = 5;.dingodb.pb.common.Range range = 5;.dingodb.pb.common.RawEngine raw_engine = 6;int.dingodb.pb.common.RawEngine raw_engine = 6;longoptional, if region_id <= 0.string region_name = 2;com.google.protobuf.ByteStringstring region_name = 2;optional, if set, will create a region with this type, this type is default STOREintoptional, if set, will create a region with this type, this type is default STORElongint64 replica_num = 4;.dingodb.pb.common.RequestInfo request_info = 1;.dingodb.pb.common.RequestInfo request_info = 1;string resource_tag = 3;com.google.protobuf.ByteStringstring resource_tag = 3;longoptionallongoptional, if set, will split from this regionoptional if set, will create a store engine with this type, this is type is default raft store engineintoptional if set, will create a store engine with this type, this is type is default raft store enginelonggetStoreIds(int index) optional if not set, will create choose from all storesintoptional if not set, will create choose from all storesoptional if not set, will create choose from all storeslongoptionallongoptional, if not provided or zero, means default tenantbooleanif true, use region_name direct; if false, use region_name add [region_id]booleanoptional, if region_type is INDEX, this field is requiredbooleanhasRange().dingodb.pb.common.Range range = 5;boolean.dingodb.pb.common.RequestInfo request_info = 1;Methods 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
-
hasRequestInfo
boolean hasRequestInfo().dingodb.pb.common.RequestInfo request_info = 1;- Returns:
- Whether the requestInfo field is set.
-
getRequestInfo
Common.RequestInfo getRequestInfo().dingodb.pb.common.RequestInfo request_info = 1;- Returns:
- The requestInfo.
-
getRequestInfoOrBuilder
Common.RequestInfoOrBuilder getRequestInfoOrBuilder().dingodb.pb.common.RequestInfo request_info = 1; -
getRegionName
String getRegionName()string region_name = 2;- Returns:
- The regionName.
-
getRegionNameBytes
com.google.protobuf.ByteString getRegionNameBytes()string region_name = 2;- Returns:
- The bytes for regionName.
-
getResourceTag
String getResourceTag()string resource_tag = 3;- Returns:
- The resourceTag.
-
getResourceTagBytes
com.google.protobuf.ByteString getResourceTagBytes()string resource_tag = 3;- Returns:
- The bytes for resourceTag.
-
getReplicaNum
long getReplicaNum()int64 replica_num = 4;- Returns:
- The replicaNum.
-
hasRange
boolean hasRange().dingodb.pb.common.Range range = 5;- Returns:
- Whether the range field is set.
-
getRange
Common.Range getRange().dingodb.pb.common.Range range = 5;- Returns:
- The range.
-
getRangeOrBuilder
Common.RangeOrBuilder getRangeOrBuilder().dingodb.pb.common.Range range = 5; -
getRawEngineValue
int getRawEngineValue().dingodb.pb.common.RawEngine raw_engine = 6;- Returns:
- The enum numeric value on the wire for rawEngine.
-
getRawEngine
Common.RawEngine getRawEngine().dingodb.pb.common.RawEngine raw_engine = 6;- Returns:
- The rawEngine.
-
getStoreEngineValue
int getStoreEngineValue()optional if set, will create a store engine with this type, this is type is default raft store engine
.dingodb.pb.common.StorageEngine store_engine = 7;- Returns:
- The enum numeric value on the wire for storeEngine.
-
getStoreEngine
Common.StorageEngine getStoreEngine()optional if set, will create a store engine with this type, this is type is default raft store engine
.dingodb.pb.common.StorageEngine store_engine = 7;- Returns:
- The storeEngine.
-
getRegionId
long getRegionId()optional, if region_id <= 0. coordinator will generate new region_id. if region_id > 0 coordinator will use the region_id.
int64 region_id = 8;- Returns:
- The regionId.
-
getUseRegionNameDirect
boolean getUseRegionNameDirect()if true, use region_name direct; if false, use region_name add [region_id]
bool use_region_name_direct = 9;- Returns:
- The useRegionNameDirect.
-
getSchemaId
long getSchemaId()optional
int64 schema_id = 11;- Returns:
- The schemaId.
-
getTableId
long getTableId()optional
int64 table_id = 12;- Returns:
- The tableId.
-
getIndexId
long getIndexId()optional, if region_type is INDEX, this field is required
int64 index_id = 13;- Returns:
- The indexId.
-
getPartId
long getPartId()optional, if region_type is INDEX, this field is required
int64 part_id = 14;- Returns:
- The partId.
-
getTenantId
long getTenantId()optional, if not provided or zero, means default tenant
int64 tenant_id = 15;- Returns:
- The tenantId.
-
getStoreIdsList
optional if not set, will create choose from all stores
repeated int64 store_ids = 20;- Returns:
- A list containing the storeIds.
-
getStoreIdsCount
int getStoreIdsCount()optional if not set, will create choose from all stores
repeated int64 store_ids = 20;- Returns:
- The count of storeIds.
-
getStoreIds
long getStoreIds(int index) optional if not set, will create choose from all stores
repeated int64 store_ids = 20;- Parameters:
index- The index of the element to return.- Returns:
- The storeIds at the given index.
-
getSplitFromRegionId
long getSplitFromRegionId()optional, if set, will split from this region
int64 split_from_region_id = 25;- Returns:
- The splitFromRegionId.
-
getRegionTypeValue
int getRegionTypeValue()optional, if set, will create a region with this type, this type is default STORE
.dingodb.pb.common.RegionType region_type = 30;- Returns:
- The enum numeric value on the wire for regionType.
-
getRegionType
Common.RegionType getRegionType()optional, if set, will create a region with this type, this type is default STORE
.dingodb.pb.common.RegionType region_type = 30;- Returns:
- The regionType.
-
hasIndexParameter
boolean hasIndexParameter()optional, if region_type is INDEX, this field is required
.dingodb.pb.common.IndexParameter index_parameter = 40;- Returns:
- Whether the indexParameter field is set.
-
getIndexParameter
Common.IndexParameter getIndexParameter()optional, if region_type is INDEX, this field is required
.dingodb.pb.common.IndexParameter index_parameter = 40;- Returns:
- The indexParameter.
-
getIndexParameterOrBuilder
Common.IndexParameterOrBuilder getIndexParameterOrBuilder()optional, if region_type is INDEX, this field is required
.dingodb.pb.common.IndexParameter index_parameter = 40;
-