feat: remove storage path in open/create request (#92)

* feat: remove storage path in open/create request

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* generate code

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

* sync changes

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>

---------

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2023-08-30 03:15:21 -05:00
committed by GitHub
parent f263419222
commit 117ec6c510
4 changed files with 1317 additions and 552 deletions
+302 -169
View File
@@ -25,9 +25,10 @@ namespace v1 {
namespace region {
PROTOBUF_CONSTEXPR RegionRequestHeader::RegionRequestHeader(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.trace_id_)*/uint64_t{0u}
, /*decltype(_impl_.span_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
/*decltype(_impl_._has_bits_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_.trace_id_)*/uint64_t{0u}
, /*decltype(_impl_.span_id_)*/uint64_t{0u}} {}
struct RegionRequestHeaderDefaultTypeInternal {
PROTOBUF_CONSTEXPR RegionRequestHeaderDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
@@ -152,7 +153,8 @@ PROTOBUF_CONSTEXPR CreateRequest::CreateRequest(
, /*decltype(_impl_._primary_key_cached_byte_size_)*/{0}
, /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()}
, /*decltype(_impl_.engine_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.region_dir_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.catalog_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_.create_if_not_exists_)*/false
, /*decltype(_impl_._cached_size_)*/{}} {}
@@ -193,7 +195,8 @@ PROTOBUF_CONSTEXPR OpenRequest::OpenRequest(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()}
, /*decltype(_impl_.engine_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.region_dir_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.catalog_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct OpenRequestDefaultTypeInternal {
@@ -283,7 +286,7 @@ static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_grept
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr;
const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_._has_bits_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
@@ -291,6 +294,8 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_.trace_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequestHeader, _impl_.span_id_),
0,
1,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionRequest, _internal_metadata_),
~0u, // no _extensions_
@@ -375,7 +380,8 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.column_defs_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.primary_key_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.create_if_not_exists_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.region_dir_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.catalog_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.schema_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CreateRequest, _impl_.options_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::DropRequest, _internal_metadata_),
@@ -402,7 +408,8 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.region_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.engine_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.region_dir_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.catalog_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.schema_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::OpenRequest, _impl_.options_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::CloseRequest, _internal_metadata_),
@@ -446,24 +453,24 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ColumnDef, _impl_.semantic_type_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::greptime::v1::region::RegionRequestHeader)},
{ 8, -1, -1, sizeof(::greptime::v1::region::RegionRequest)},
{ 25, -1, -1, sizeof(::greptime::v1::region::RegionResponse)},
{ 33, -1, -1, sizeof(::greptime::v1::region::InsertRequests)},
{ 40, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)},
{ 47, -1, -1, sizeof(::greptime::v1::region::InsertRequest)},
{ 55, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
{ 63, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
{ 71, 79, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
{ 81, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
{ 94, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
{ 101, 109, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
{ 111, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
{ 121, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
{ 128, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
{ 135, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
{ 142, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 149, -1, -1, sizeof(::greptime::v1::region::ColumnDef)},
{ 0, 8, -1, sizeof(::greptime::v1::region::RegionRequestHeader)},
{ 10, -1, -1, sizeof(::greptime::v1::region::RegionRequest)},
{ 27, -1, -1, sizeof(::greptime::v1::region::RegionResponse)},
{ 35, -1, -1, sizeof(::greptime::v1::region::InsertRequests)},
{ 42, -1, -1, sizeof(::greptime::v1::region::DeleteRequests)},
{ 49, -1, -1, sizeof(::greptime::v1::region::InsertRequest)},
{ 57, -1, -1, sizeof(::greptime::v1::region::DeleteRequest)},
{ 65, -1, -1, sizeof(::greptime::v1::region::QueryRequest)},
{ 73, 81, -1, sizeof(::greptime::v1::region::CreateRequest_OptionsEntry_DoNotUse)},
{ 83, -1, -1, sizeof(::greptime::v1::region::CreateRequest)},
{ 97, -1, -1, sizeof(::greptime::v1::region::DropRequest)},
{ 104, 112, -1, sizeof(::greptime::v1::region::OpenRequest_OptionsEntry_DoNotUse)},
{ 114, -1, -1, sizeof(::greptime::v1::region::OpenRequest)},
{ 125, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
{ 132, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
{ 139, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
{ 146, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 153, -1, -1, sizeof(::greptime::v1::region::ColumnDef)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -490,59 +497,60 @@ static const ::_pb::Message* const file_default_instances[] = {
const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\037greptime/v1/region/server.proto\022\022grept"
"ime.v1.region\032\030greptime/v1/common.proto\032"
"\025greptime/v1/row.proto\"8\n\023RegionRequestH"
"eader\022\020\n\010trace_id\030\001 \001(\004\022\017\n\007span_id\030\002 \001(\004"
"\"\245\004\n\rRegionRequest\0227\n\006header\030\001 \001(\0132\'.gre"
"ptime.v1.region.RegionRequestHeader\0225\n\007i"
"nserts\030\003 \001(\0132\".greptime.v1.region.Insert"
"RequestsH\000\0225\n\007deletes\030\004 \001(\0132\".greptime.v"
"1.region.DeleteRequestsH\000\0223\n\006create\030\005 \001("
"\0132!.greptime.v1.region.CreateRequestH\000\022/"
"\n\004drop\030\006 \001(\0132\037.greptime.v1.region.DropRe"
"questH\000\022/\n\004open\030\007 \001(\0132\037.greptime.v1.regi"
"on.OpenRequestH\000\0221\n\005close\030\010 \001(\0132 .grepti"
"me.v1.region.CloseRequestH\000\0221\n\005alter\030\t \001"
"(\0132 .greptime.v1.region.AlterRequestH\000\0221"
"\n\005flush\030\n \001(\0132 .greptime.v1.region.Flush"
"RequestH\000\0225\n\007compact\030\013 \001(\0132\".greptime.v1"
".region.CompactRequestH\000B\006\n\004body\"T\n\016Regi"
"onResponse\022+\n\006header\030\001 \001(\0132\033.greptime.v1"
".ResponseHeader\022\025\n\raffected_rows\030\002 \001(\004\"E"
"\n\016InsertRequests\0223\n\010requests\030\001 \003(\0132!.gre"
"ptime.v1.region.InsertRequest\"E\n\016DeleteR"
"equests\0223\n\010requests\030\001 \003(\0132!.greptime.v1."
"region.DeleteRequest\"C\n\rInsertRequest\022\021\n"
"\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptim"
"e.v1.Rows\"C\n\rDeleteRequest\022\021\n\tregion_id\030"
"\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"/"
"\n\014QueryRequest\022\021\n\tregion_id\030\001 \001(\004\022\014\n\004pla"
"n\030\002 \001(\014\"\236\002\n\rCreateRequest\022\021\n\tregion_id\030\001"
" \001(\004\022\016\n\006engine\030\002 \001(\t\0222\n\013column_defs\030\003 \003("
"\0132\035.greptime.v1.region.ColumnDef\022\023\n\013prim"
"ary_key\030\004 \003(\r\022\034\n\024create_if_not_exists\030\005 "
"\001(\010\022\022\n\nregion_dir\030\006 \001(\t\022\?\n\007options\030\007 \003(\013"
"2..greptime.v1.region.CreateRequest.Opti"
"onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
"\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022\021\n\tregio"
"n_id\030\001 \001(\004\"\263\001\n\013OpenRequest\022\021\n\tregion_id\030"
"\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\022\n\nregion_dir\030\003 \001("
"\t\022=\n\007options\030\004 \003(\0132,.greptime.v1.region."
"OpenRequest.OptionsEntry\032.\n\014OptionsEntry"
"\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014Clos"
"eRequest\022\021\n\tregion_id\030\001 \001(\004\"!\n\014AlterRequ"
"est\022\021\n\tregion_id\030\001 \001(\004\"!\n\014FlushRequest\022\021"
"\n\tregion_id\030\001 \001(\004\"#\n\016CompactRequest\022\021\n\tr"
"egion_id\030\001 \001(\004\"\276\001\n\tColumnDef\022\014\n\004name\030\001 \001"
"(\t\022\021\n\tcolumn_id\030\002 \001(\r\022-\n\010datatype\030\003 \001(\0162"
"\033.greptime.v1.ColumnDataType\022\023\n\013is_nulla"
"ble\030\004 \001(\010\022\032\n\022default_constraint\030\005 \001(\014\0220\n"
"\rsemantic_type\030\006 \001(\0162\031.greptime.v1.Seman"
"ticType2Y\n\006Region\022O\n\006Handle\022!.greptime.v"
"1.region.RegionRequest\032\".greptime.v1.reg"
"ion.RegionResponseB]\n\025io.greptime.v1.reg"
"ionB\006ServerZ<github.com/GreptimeTeam/gre"
"ptime-proto/go/greptime/v1/regionb\006proto"
"3"
"\025greptime/v1/row.proto\"[\n\023RegionRequestH"
"eader\022\025\n\010trace_id\030\001 \001(\004H\000\210\001\001\022\024\n\007span_id\030"
"\002 \001(\004H\001\210\001\001B\013\n\t_trace_idB\n\n\010_span_id\"\245\004\n\r"
"RegionRequest\0227\n\006header\030\001 \001(\0132\'.greptime"
".v1.region.RegionRequestHeader\0225\n\007insert"
"s\030\003 \001(\0132\".greptime.v1.region.InsertReque"
"stsH\000\0225\n\007deletes\030\004 \001(\0132\".greptime.v1.reg"
"ion.DeleteRequestsH\000\0223\n\006create\030\005 \001(\0132!.g"
"reptime.v1.region.CreateRequestH\000\022/\n\004dro"
"p\030\006 \001(\0132\037.greptime.v1.region.DropRequest"
"H\000\022/\n\004open\030\007 \001(\0132\037.greptime.v1.region.Op"
"enRequestH\000\0221\n\005close\030\010 \001(\0132 .greptime.v1"
".region.CloseRequestH\000\0221\n\005alter\030\t \001(\0132 ."
"greptime.v1.region.AlterRequestH\000\0221\n\005flu"
"sh\030\n \001(\0132 .greptime.v1.region.FlushReque"
"stH\000\0225\n\007compact\030\013 \001(\0132\".greptime.v1.regi"
"on.CompactRequestH\000B\006\n\004body\"T\n\016RegionRes"
"ponse\022+\n\006header\030\001 \001(\0132\033.greptime.v1.Resp"
"onseHeader\022\025\n\raffected_rows\030\002 \001(\004\"E\n\016Ins"
"ertRequests\0223\n\010requests\030\001 \003(\0132!.greptime"
".v1.region.InsertRequest\"E\n\016DeleteReques"
"ts\0223\n\010requests\030\001 \003(\0132!.greptime.v1.regio"
"n.DeleteRequest\"C\n\rInsertRequest\022\021\n\tregi"
"on_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1."
"Rows\"C\n\rDeleteRequest\022\021\n\tregion_id\030\001 \001(\004"
"\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Rows\"/\n\014Que"
"ryRequest\022\021\n\tregion_id\030\001 \001(\004\022\014\n\004plan\030\002 \001"
"(\014\"\253\002\n\rCreateRequest\022\021\n\tregion_id\030\001 \001(\004\022"
"\016\n\006engine\030\002 \001(\t\0222\n\013column_defs\030\003 \003(\0132\035.g"
"reptime.v1.region.ColumnDef\022\023\n\013primary_k"
"ey\030\004 \003(\r\022\034\n\024create_if_not_exists\030\005 \001(\010\022\017"
"\n\007catalog\030\006 \001(\t\022\016\n\006schema\030\007 \001(\t\022\?\n\007optio"
"ns\030\010 \003(\0132..greptime.v1.region.CreateRequ"
"est.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030"
"\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\" \n\013DropRequest\022"
"\021\n\tregion_id\030\001 \001(\004\"\300\001\n\013OpenRequest\022\021\n\tre"
"gion_id\030\001 \001(\004\022\016\n\006engine\030\002 \001(\t\022\017\n\007catalog"
"\030\003 \001(\t\022\016\n\006schema\030\004 \001(\t\022=\n\007options\030\005 \003(\0132"
",.greptime.v1.region.OpenRequest.Options"
"Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
"lue\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_"
"id\030\001 \001(\004\"!\n\014AlterRequest\022\021\n\tregion_id\030\001 "
"\001(\004\"!\n\014FlushRequest\022\021\n\tregion_id\030\001 \001(\004\"#"
"\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\"\276\001\n\t"
"ColumnDef\022\014\n\004name\030\001 \001(\t\022\021\n\tcolumn_id\030\002 \001"
"(\r\022-\n\010datatype\030\003 \001(\0162\033.greptime.v1.Colum"
"nDataType\022\023\n\013is_nullable\030\004 \001(\010\022\032\n\022defaul"
"t_constraint\030\005 \001(\014\0220\n\rsemantic_type\030\006 \001("
"\0162\031.greptime.v1.SemanticType2Y\n\006Region\022O"
"\n\006Handle\022!.greptime.v1.region.RegionRequ"
"est\032\".greptime.v1.region.RegionResponseB"
"]\n\025io.greptime.v1.regionB\006ServerZ<github"
".com/GreptimeTeam/greptime-proto/go/grep"
"time/v1/regionb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[2] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -550,7 +558,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2freg
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
false, false, 2161, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
false, false, 2222, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
"greptime/v1/region/server.proto",
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 2, 18,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
@@ -571,6 +579,13 @@ namespace region {
class RegionRequestHeader::_Internal {
public:
using HasBits = decltype(std::declval<RegionRequestHeader>()._impl_._has_bits_);
static void set_has_trace_id(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
static void set_has_span_id(HasBits* has_bits) {
(*has_bits)[0] |= 2u;
}
};
RegionRequestHeader::RegionRequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
@@ -583,9 +598,10 @@ RegionRequestHeader::RegionRequestHeader(const RegionRequestHeader& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
RegionRequestHeader* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.trace_id_){}
, decltype(_impl_.span_id_){}
, /*decltype(_impl_._cached_size_)*/{}};
decltype(_impl_._has_bits_){from._impl_._has_bits_}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.trace_id_){}
, decltype(_impl_.span_id_){}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::memcpy(&_impl_.trace_id_, &from._impl_.trace_id_,
@@ -599,9 +615,10 @@ inline void RegionRequestHeader::SharedCtor(
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.trace_id_){uint64_t{0u}}
, decltype(_impl_.span_id_){uint64_t{0u}}
decltype(_impl_._has_bits_){}
, /*decltype(_impl_._cached_size_)*/{}
, decltype(_impl_.trace_id_){uint64_t{0u}}
, decltype(_impl_.span_id_){uint64_t{0u}}
};
}
@@ -628,29 +645,36 @@ void RegionRequestHeader::Clear() {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.trace_id_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.span_id_) -
reinterpret_cast<char*>(&_impl_.trace_id_)) + sizeof(_impl_.span_id_));
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x00000003u) {
::memset(&_impl_.trace_id_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.span_id_) -
reinterpret_cast<char*>(&_impl_.trace_id_)) + sizeof(_impl_.span_id_));
}
_impl_._has_bits_.Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* RegionRequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint64 trace_id = 1;
// optional uint64 trace_id = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_Internal::set_has_trace_id(&has_bits);
_impl_.trace_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// uint64 span_id = 2;
// optional uint64 span_id = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_Internal::set_has_span_id(&has_bits);
_impl_.span_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
@@ -672,6 +696,7 @@ const char* RegionRequestHeader::_InternalParse(const char* ptr, ::_pbi::ParseCo
CHK_(ptr != nullptr);
} // while
message_done:
_impl_._has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
@@ -685,14 +710,14 @@ uint8_t* RegionRequestHeader::_InternalSerialize(
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint64 trace_id = 1;
if (this->_internal_trace_id() != 0) {
// optional uint64 trace_id = 1;
if (_internal_has_trace_id()) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_trace_id(), target);
}
// uint64 span_id = 2;
if (this->_internal_span_id() != 0) {
// optional uint64 span_id = 2;
if (_internal_has_span_id()) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_span_id(), target);
}
@@ -713,16 +738,19 @@ size_t RegionRequestHeader::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint64 trace_id = 1;
if (this->_internal_trace_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_trace_id());
}
cached_has_bits = _impl_._has_bits_[0];
if (cached_has_bits & 0x00000003u) {
// optional uint64 trace_id = 1;
if (cached_has_bits & 0x00000001u) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_trace_id());
}
// uint64 span_id = 2;
if (this->_internal_span_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_span_id());
}
// optional uint64 span_id = 2;
if (cached_has_bits & 0x00000002u) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_span_id());
}
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
@@ -741,11 +769,15 @@ void RegionRequestHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_trace_id() != 0) {
_this->_internal_set_trace_id(from._internal_trace_id());
}
if (from._internal_span_id() != 0) {
_this->_internal_set_span_id(from._internal_span_id());
cached_has_bits = from._impl_._has_bits_[0];
if (cached_has_bits & 0x00000003u) {
if (cached_has_bits & 0x00000001u) {
_this->_impl_.trace_id_ = from._impl_.trace_id_;
}
if (cached_has_bits & 0x00000002u) {
_this->_impl_.span_id_ = from._impl_.span_id_;
}
_this->_impl_._has_bits_[0] |= cached_has_bits;
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -764,6 +796,7 @@ bool RegionRequestHeader::IsInitialized() const {
void RegionRequestHeader::InternalSwap(RegionRequestHeader* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(RegionRequestHeader, _impl_.span_id_)
+ sizeof(RegionRequestHeader::_impl_.span_id_)
@@ -2854,7 +2887,8 @@ CreateRequest::CreateRequest(const CreateRequest& from)
, /*decltype(_impl_._primary_key_cached_byte_size_)*/{0}
, /*decltype(_impl_.options_)*/{}
, decltype(_impl_.engine_){}
, decltype(_impl_.region_dir_){}
, decltype(_impl_.catalog_){}
, decltype(_impl_.schema_){}
, decltype(_impl_.region_id_){}
, decltype(_impl_.create_if_not_exists_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -2869,12 +2903,20 @@ CreateRequest::CreateRequest(const CreateRequest& from)
_this->_impl_.engine_.Set(from._internal_engine(),
_this->GetArenaForAllocation());
}
_impl_.region_dir_.InitDefault();
_impl_.catalog_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.region_dir_.Set("", GetArenaForAllocation());
_impl_.catalog_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_region_dir().empty()) {
_this->_impl_.region_dir_.Set(from._internal_region_dir(),
if (!from._internal_catalog().empty()) {
_this->_impl_.catalog_.Set(from._internal_catalog(),
_this->GetArenaForAllocation());
}
_impl_.schema_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.schema_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_schema().empty()) {
_this->_impl_.schema_.Set(from._internal_schema(),
_this->GetArenaForAllocation());
}
::memcpy(&_impl_.region_id_, &from._impl_.region_id_,
@@ -2893,7 +2935,8 @@ inline void CreateRequest::SharedCtor(
, /*decltype(_impl_._primary_key_cached_byte_size_)*/{0}
, /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena}
, decltype(_impl_.engine_){}
, decltype(_impl_.region_dir_){}
, decltype(_impl_.catalog_){}
, decltype(_impl_.schema_){}
, decltype(_impl_.region_id_){uint64_t{0u}}
, decltype(_impl_.create_if_not_exists_){false}
, /*decltype(_impl_._cached_size_)*/{}
@@ -2902,9 +2945,13 @@ inline void CreateRequest::SharedCtor(
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.engine_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.region_dir_.InitDefault();
_impl_.catalog_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.region_dir_.Set("", GetArenaForAllocation());
_impl_.catalog_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.schema_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.schema_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
@@ -2925,7 +2972,8 @@ inline void CreateRequest::SharedDtor() {
_impl_.options_.Destruct();
_impl_.options_.~MapField();
_impl_.engine_.Destroy();
_impl_.region_dir_.Destroy();
_impl_.catalog_.Destroy();
_impl_.schema_.Destroy();
}
void CreateRequest::ArenaDtor(void* object) {
@@ -2946,7 +2994,8 @@ void CreateRequest::Clear() {
_impl_.primary_key_.Clear();
_impl_.options_.Clear();
_impl_.engine_.ClearToEmpty();
_impl_.region_dir_.ClearToEmpty();
_impl_.catalog_.ClearToEmpty();
_impl_.schema_.ClearToEmpty();
::memset(&_impl_.region_id_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.create_if_not_exists_) -
reinterpret_cast<char*>(&_impl_.region_id_)) + sizeof(_impl_.create_if_not_exists_));
@@ -3009,26 +3058,36 @@ const char* CreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// string region_dir = 6;
// string catalog = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
auto str = _internal_mutable_region_dir();
auto str = _internal_mutable_catalog();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.CreateRequest.region_dir"));
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.CreateRequest.catalog"));
} else
goto handle_unusual;
continue;
// map<string, string> options = 7;
// string schema = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
auto str = _internal_mutable_schema();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.CreateRequest.schema"));
} else
goto handle_unusual;
continue;
// map<string, string> options = 8;
case 8:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&_impl_.options_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr));
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr));
} else
goto handle_unusual;
continue;
@@ -3100,17 +3159,27 @@ uint8_t* CreateRequest::_InternalSerialize(
target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_create_if_not_exists(), target);
}
// string region_dir = 6;
if (!this->_internal_region_dir().empty()) {
// string catalog = 6;
if (!this->_internal_catalog().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_region_dir().data(), static_cast<int>(this->_internal_region_dir().length()),
this->_internal_catalog().data(), static_cast<int>(this->_internal_catalog().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.region.CreateRequest.region_dir");
"greptime.v1.region.CreateRequest.catalog");
target = stream->WriteStringMaybeAliased(
6, this->_internal_region_dir(), target);
6, this->_internal_catalog(), target);
}
// map<string, string> options = 7;
// string schema = 7;
if (!this->_internal_schema().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_schema().data(), static_cast<int>(this->_internal_schema().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.region.CreateRequest.schema");
target = stream->WriteStringMaybeAliased(
7, this->_internal_schema(), target);
}
// map<string, string> options = 8;
if (!this->_internal_options().empty()) {
using MapType = ::_pb::Map<std::string, std::string>;
using WireHelper = CreateRequest_OptionsEntry_DoNotUse::Funcs;
@@ -3129,12 +3198,12 @@ uint8_t* CreateRequest::_InternalSerialize(
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream);
target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream);
check_utf8(entry);
}
} else {
for (const auto& entry : map_field) {
target = WireHelper::InternalSerialize(7, entry.first, entry.second, target, stream);
target = WireHelper::InternalSerialize(8, entry.first, entry.second, target, stream);
check_utf8(entry);
}
}
@@ -3177,7 +3246,7 @@ size_t CreateRequest::ByteSizeLong() const {
total_size += data_size;
}
// map<string, string> options = 7;
// map<string, string> options = 8;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size());
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
@@ -3193,11 +3262,18 @@ size_t CreateRequest::ByteSizeLong() const {
this->_internal_engine());
}
// string region_dir = 6;
if (!this->_internal_region_dir().empty()) {
// string catalog = 6;
if (!this->_internal_catalog().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_region_dir());
this->_internal_catalog());
}
// string schema = 7;
if (!this->_internal_schema().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_schema());
}
// uint64 region_id = 1;
@@ -3234,8 +3310,11 @@ void CreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
if (!from._internal_engine().empty()) {
_this->_internal_set_engine(from._internal_engine());
}
if (!from._internal_region_dir().empty()) {
_this->_internal_set_region_dir(from._internal_region_dir());
if (!from._internal_catalog().empty()) {
_this->_internal_set_catalog(from._internal_catalog());
}
if (!from._internal_schema().empty()) {
_this->_internal_set_schema(from._internal_schema());
}
if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
@@ -3270,8 +3349,12 @@ void CreateRequest::InternalSwap(CreateRequest* other) {
&other->_impl_.engine_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.region_dir_, lhs_arena,
&other->_impl_.region_dir_, rhs_arena
&_impl_.catalog_, lhs_arena,
&other->_impl_.catalog_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.schema_, lhs_arena,
&other->_impl_.schema_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(CreateRequest, _impl_.create_if_not_exists_)
@@ -3500,7 +3583,8 @@ OpenRequest::OpenRequest(const OpenRequest& from)
new (&_impl_) Impl_{
/*decltype(_impl_.options_)*/{}
, decltype(_impl_.engine_){}
, decltype(_impl_.region_dir_){}
, decltype(_impl_.catalog_){}
, decltype(_impl_.schema_){}
, decltype(_impl_.region_id_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -3514,12 +3598,20 @@ OpenRequest::OpenRequest(const OpenRequest& from)
_this->_impl_.engine_.Set(from._internal_engine(),
_this->GetArenaForAllocation());
}
_impl_.region_dir_.InitDefault();
_impl_.catalog_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.region_dir_.Set("", GetArenaForAllocation());
_impl_.catalog_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_region_dir().empty()) {
_this->_impl_.region_dir_.Set(from._internal_region_dir(),
if (!from._internal_catalog().empty()) {
_this->_impl_.catalog_.Set(from._internal_catalog(),
_this->GetArenaForAllocation());
}
_impl_.schema_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.schema_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_schema().empty()) {
_this->_impl_.schema_.Set(from._internal_schema(),
_this->GetArenaForAllocation());
}
_this->_impl_.region_id_ = from._impl_.region_id_;
@@ -3533,7 +3625,8 @@ inline void OpenRequest::SharedCtor(
new (&_impl_) Impl_{
/*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena}
, decltype(_impl_.engine_){}
, decltype(_impl_.region_dir_){}
, decltype(_impl_.catalog_){}
, decltype(_impl_.schema_){}
, decltype(_impl_.region_id_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
@@ -3541,9 +3634,13 @@ inline void OpenRequest::SharedCtor(
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.engine_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.region_dir_.InitDefault();
_impl_.catalog_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.region_dir_.Set("", GetArenaForAllocation());
_impl_.catalog_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.schema_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.schema_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
@@ -3562,7 +3659,8 @@ inline void OpenRequest::SharedDtor() {
_impl_.options_.Destruct();
_impl_.options_.~MapField();
_impl_.engine_.Destroy();
_impl_.region_dir_.Destroy();
_impl_.catalog_.Destroy();
_impl_.schema_.Destroy();
}
void OpenRequest::ArenaDtor(void* object) {
@@ -3581,7 +3679,8 @@ void OpenRequest::Clear() {
_impl_.options_.Clear();
_impl_.engine_.ClearToEmpty();
_impl_.region_dir_.ClearToEmpty();
_impl_.catalog_.ClearToEmpty();
_impl_.schema_.ClearToEmpty();
_impl_.region_id_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -3610,26 +3709,36 @@ const char* OpenRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c
} else
goto handle_unusual;
continue;
// string region_dir = 3;
// string catalog = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
auto str = _internal_mutable_region_dir();
auto str = _internal_mutable_catalog();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.OpenRequest.region_dir"));
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.OpenRequest.catalog"));
} else
goto handle_unusual;
continue;
// map<string, string> options = 4;
// string schema = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
auto str = _internal_mutable_schema();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.OpenRequest.schema"));
} else
goto handle_unusual;
continue;
// map<string, string> options = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&_impl_.options_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
} else
goto handle_unusual;
continue;
@@ -3678,17 +3787,27 @@ uint8_t* OpenRequest::_InternalSerialize(
2, this->_internal_engine(), target);
}
// string region_dir = 3;
if (!this->_internal_region_dir().empty()) {
// string catalog = 3;
if (!this->_internal_catalog().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_region_dir().data(), static_cast<int>(this->_internal_region_dir().length()),
this->_internal_catalog().data(), static_cast<int>(this->_internal_catalog().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.region.OpenRequest.region_dir");
"greptime.v1.region.OpenRequest.catalog");
target = stream->WriteStringMaybeAliased(
3, this->_internal_region_dir(), target);
3, this->_internal_catalog(), target);
}
// map<string, string> options = 4;
// string schema = 4;
if (!this->_internal_schema().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_schema().data(), static_cast<int>(this->_internal_schema().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"greptime.v1.region.OpenRequest.schema");
target = stream->WriteStringMaybeAliased(
4, this->_internal_schema(), target);
}
// map<string, string> options = 5;
if (!this->_internal_options().empty()) {
using MapType = ::_pb::Map<std::string, std::string>;
using WireHelper = OpenRequest_OptionsEntry_DoNotUse::Funcs;
@@ -3707,12 +3826,12 @@ uint8_t* OpenRequest::_InternalSerialize(
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream);
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
check_utf8(entry);
}
} else {
for (const auto& entry : map_field) {
target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream);
target = WireHelper::InternalSerialize(5, entry.first, entry.second, target, stream);
check_utf8(entry);
}
}
@@ -3734,7 +3853,7 @@ size_t OpenRequest::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// map<string, string> options = 4;
// map<string, string> options = 5;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size());
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
@@ -3750,11 +3869,18 @@ size_t OpenRequest::ByteSizeLong() const {
this->_internal_engine());
}
// string region_dir = 3;
if (!this->_internal_region_dir().empty()) {
// string catalog = 3;
if (!this->_internal_catalog().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_region_dir());
this->_internal_catalog());
}
// string schema = 4;
if (!this->_internal_schema().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_schema());
}
// uint64 region_id = 1;
@@ -3784,8 +3910,11 @@ void OpenRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR
if (!from._internal_engine().empty()) {
_this->_internal_set_engine(from._internal_engine());
}
if (!from._internal_region_dir().empty()) {
_this->_internal_set_region_dir(from._internal_region_dir());
if (!from._internal_catalog().empty()) {
_this->_internal_set_catalog(from._internal_catalog());
}
if (!from._internal_schema().empty()) {
_this->_internal_set_schema(from._internal_schema());
}
if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
@@ -3815,8 +3944,12 @@ void OpenRequest::InternalSwap(OpenRequest* other) {
&other->_impl_.engine_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.region_dir_, lhs_arena,
&other->_impl_.region_dir_, rhs_arena
&_impl_.catalog_, lhs_arena,
&other->_impl_.catalog_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.schema_, lhs_arena,
&other->_impl_.schema_, rhs_arena
);
swap(_impl_.region_id_, other->_impl_.region_id_);
}
+248 -91
View File
@@ -259,7 +259,11 @@ class RegionRequestHeader final :
kTraceIdFieldNumber = 1,
kSpanIdFieldNumber = 2,
};
// uint64 trace_id = 1;
// optional uint64 trace_id = 1;
bool has_trace_id() const;
private:
bool _internal_has_trace_id() const;
public:
void clear_trace_id();
uint64_t trace_id() const;
void set_trace_id(uint64_t value);
@@ -268,7 +272,11 @@ class RegionRequestHeader final :
void _internal_set_trace_id(uint64_t value);
public:
// uint64 span_id = 2;
// optional uint64 span_id = 2;
bool has_span_id() const;
private:
bool _internal_has_span_id() const;
public:
void clear_span_id();
uint64_t span_id() const;
void set_span_id(uint64_t value);
@@ -285,9 +293,10 @@ class RegionRequestHeader final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint64_t trace_id_;
uint64_t span_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto;
@@ -1800,9 +1809,10 @@ class CreateRequest final :
enum : int {
kColumnDefsFieldNumber = 3,
kPrimaryKeyFieldNumber = 4,
kOptionsFieldNumber = 7,
kOptionsFieldNumber = 8,
kEngineFieldNumber = 2,
kRegionDirFieldNumber = 6,
kCatalogFieldNumber = 6,
kSchemaFieldNumber = 7,
kRegionIdFieldNumber = 1,
kCreateIfNotExistsFieldNumber = 5,
};
@@ -1846,7 +1856,7 @@ class CreateRequest final :
::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
mutable_primary_key();
// map<string, string> options = 7;
// map<string, string> options = 8;
int options_size() const;
private:
int _internal_options_size() const;
@@ -1877,18 +1887,32 @@ class CreateRequest final :
std::string* _internal_mutable_engine();
public:
// string region_dir = 6;
void clear_region_dir();
const std::string& region_dir() const;
// string catalog = 6;
void clear_catalog();
const std::string& catalog() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_region_dir(ArgT0&& arg0, ArgT... args);
std::string* mutable_region_dir();
PROTOBUF_NODISCARD std::string* release_region_dir();
void set_allocated_region_dir(std::string* region_dir);
void set_catalog(ArgT0&& arg0, ArgT... args);
std::string* mutable_catalog();
PROTOBUF_NODISCARD std::string* release_catalog();
void set_allocated_catalog(std::string* catalog);
private:
const std::string& _internal_region_dir() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_region_dir(const std::string& value);
std::string* _internal_mutable_region_dir();
const std::string& _internal_catalog() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog(const std::string& value);
std::string* _internal_mutable_catalog();
public:
// string schema = 7;
void clear_schema();
const std::string& schema() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_schema(ArgT0&& arg0, ArgT... args);
std::string* mutable_schema();
PROTOBUF_NODISCARD std::string* release_schema();
void set_allocated_schema(std::string* schema);
private:
const std::string& _internal_schema() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema(const std::string& value);
std::string* _internal_mutable_schema();
public:
// uint64 region_id = 1;
@@ -1926,7 +1950,8 @@ class CreateRequest final :
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr engine_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr region_dir_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_;
uint64_t region_id_;
bool create_if_not_exists_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@@ -2236,12 +2261,13 @@ class OpenRequest final :
// accessors -------------------------------------------------------
enum : int {
kOptionsFieldNumber = 4,
kOptionsFieldNumber = 5,
kEngineFieldNumber = 2,
kRegionDirFieldNumber = 3,
kCatalogFieldNumber = 3,
kSchemaFieldNumber = 4,
kRegionIdFieldNumber = 1,
};
// map<string, string> options = 4;
// map<string, string> options = 5;
int options_size() const;
private:
int _internal_options_size() const;
@@ -2272,18 +2298,32 @@ class OpenRequest final :
std::string* _internal_mutable_engine();
public:
// string region_dir = 3;
void clear_region_dir();
const std::string& region_dir() const;
// string catalog = 3;
void clear_catalog();
const std::string& catalog() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_region_dir(ArgT0&& arg0, ArgT... args);
std::string* mutable_region_dir();
PROTOBUF_NODISCARD std::string* release_region_dir();
void set_allocated_region_dir(std::string* region_dir);
void set_catalog(ArgT0&& arg0, ArgT... args);
std::string* mutable_catalog();
PROTOBUF_NODISCARD std::string* release_catalog();
void set_allocated_catalog(std::string* catalog);
private:
const std::string& _internal_region_dir() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_region_dir(const std::string& value);
std::string* _internal_mutable_region_dir();
const std::string& _internal_catalog() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog(const std::string& value);
std::string* _internal_mutable_catalog();
public:
// string schema = 4;
void clear_schema();
const std::string& schema() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_schema(ArgT0&& arg0, ArgT... args);
std::string* mutable_schema();
PROTOBUF_NODISCARD std::string* release_schema();
void set_allocated_schema(std::string* schema);
private:
const std::string& _internal_schema() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema(const std::string& value);
std::string* _internal_mutable_schema();
public:
// uint64 region_id = 1;
@@ -2309,7 +2349,8 @@ class OpenRequest final :
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr engine_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr region_dir_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_;
uint64_t region_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
@@ -3132,9 +3173,17 @@ class ColumnDef final :
#endif // __GNUC__
// RegionRequestHeader
// uint64 trace_id = 1;
// optional uint64 trace_id = 1;
inline bool RegionRequestHeader::_internal_has_trace_id() const {
bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline bool RegionRequestHeader::has_trace_id() const {
return _internal_has_trace_id();
}
inline void RegionRequestHeader::clear_trace_id() {
_impl_.trace_id_ = uint64_t{0u};
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline uint64_t RegionRequestHeader::_internal_trace_id() const {
return _impl_.trace_id_;
@@ -3144,7 +3193,7 @@ inline uint64_t RegionRequestHeader::trace_id() const {
return _internal_trace_id();
}
inline void RegionRequestHeader::_internal_set_trace_id(uint64_t value) {
_impl_._has_bits_[0] |= 0x00000001u;
_impl_.trace_id_ = value;
}
inline void RegionRequestHeader::set_trace_id(uint64_t value) {
@@ -3152,9 +3201,17 @@ inline void RegionRequestHeader::set_trace_id(uint64_t value) {
// @@protoc_insertion_point(field_set:greptime.v1.region.RegionRequestHeader.trace_id)
}
// uint64 span_id = 2;
// optional uint64 span_id = 2;
inline bool RegionRequestHeader::_internal_has_span_id() const {
bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline bool RegionRequestHeader::has_span_id() const {
return _internal_has_span_id();
}
inline void RegionRequestHeader::clear_span_id() {
_impl_.span_id_ = uint64_t{0u};
_impl_._has_bits_[0] &= ~0x00000002u;
}
inline uint64_t RegionRequestHeader::_internal_span_id() const {
return _impl_.span_id_;
@@ -3164,7 +3221,7 @@ inline uint64_t RegionRequestHeader::span_id() const {
return _internal_span_id();
}
inline void RegionRequestHeader::_internal_set_span_id(uint64_t value) {
_impl_._has_bits_[0] |= 0x00000002u;
_impl_.span_id_ = value;
}
inline void RegionRequestHeader::set_span_id(uint64_t value) {
@@ -4613,57 +4670,107 @@ inline void CreateRequest::set_create_if_not_exists(bool value) {
// @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.create_if_not_exists)
}
// string region_dir = 6;
inline void CreateRequest::clear_region_dir() {
_impl_.region_dir_.ClearToEmpty();
// string catalog = 6;
inline void CreateRequest::clear_catalog() {
_impl_.catalog_.ClearToEmpty();
}
inline const std::string& CreateRequest::region_dir() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.region_dir)
return _internal_region_dir();
inline const std::string& CreateRequest::catalog() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.catalog)
return _internal_catalog();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void CreateRequest::set_region_dir(ArgT0&& arg0, ArgT... args) {
void CreateRequest::set_catalog(ArgT0&& arg0, ArgT... args) {
_impl_.region_dir_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.region_dir)
_impl_.catalog_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.catalog)
}
inline std::string* CreateRequest::mutable_region_dir() {
std::string* _s = _internal_mutable_region_dir();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.CreateRequest.region_dir)
inline std::string* CreateRequest::mutable_catalog() {
std::string* _s = _internal_mutable_catalog();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.CreateRequest.catalog)
return _s;
}
inline const std::string& CreateRequest::_internal_region_dir() const {
return _impl_.region_dir_.Get();
inline const std::string& CreateRequest::_internal_catalog() const {
return _impl_.catalog_.Get();
}
inline void CreateRequest::_internal_set_region_dir(const std::string& value) {
inline void CreateRequest::_internal_set_catalog(const std::string& value) {
_impl_.region_dir_.Set(value, GetArenaForAllocation());
_impl_.catalog_.Set(value, GetArenaForAllocation());
}
inline std::string* CreateRequest::_internal_mutable_region_dir() {
inline std::string* CreateRequest::_internal_mutable_catalog() {
return _impl_.region_dir_.Mutable(GetArenaForAllocation());
return _impl_.catalog_.Mutable(GetArenaForAllocation());
}
inline std::string* CreateRequest::release_region_dir() {
// @@protoc_insertion_point(field_release:greptime.v1.region.CreateRequest.region_dir)
return _impl_.region_dir_.Release();
inline std::string* CreateRequest::release_catalog() {
// @@protoc_insertion_point(field_release:greptime.v1.region.CreateRequest.catalog)
return _impl_.catalog_.Release();
}
inline void CreateRequest::set_allocated_region_dir(std::string* region_dir) {
if (region_dir != nullptr) {
inline void CreateRequest::set_allocated_catalog(std::string* catalog) {
if (catalog != nullptr) {
} else {
}
_impl_.region_dir_.SetAllocated(region_dir, GetArenaForAllocation());
_impl_.catalog_.SetAllocated(catalog, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.region_dir_.IsDefault()) {
_impl_.region_dir_.Set("", GetArenaForAllocation());
if (_impl_.catalog_.IsDefault()) {
_impl_.catalog_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.CreateRequest.region_dir)
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.CreateRequest.catalog)
}
// map<string, string> options = 7;
// string schema = 7;
inline void CreateRequest::clear_schema() {
_impl_.schema_.ClearToEmpty();
}
inline const std::string& CreateRequest::schema() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.CreateRequest.schema)
return _internal_schema();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void CreateRequest::set_schema(ArgT0&& arg0, ArgT... args) {
_impl_.schema_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.region.CreateRequest.schema)
}
inline std::string* CreateRequest::mutable_schema() {
std::string* _s = _internal_mutable_schema();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.CreateRequest.schema)
return _s;
}
inline const std::string& CreateRequest::_internal_schema() const {
return _impl_.schema_.Get();
}
inline void CreateRequest::_internal_set_schema(const std::string& value) {
_impl_.schema_.Set(value, GetArenaForAllocation());
}
inline std::string* CreateRequest::_internal_mutable_schema() {
return _impl_.schema_.Mutable(GetArenaForAllocation());
}
inline std::string* CreateRequest::release_schema() {
// @@protoc_insertion_point(field_release:greptime.v1.region.CreateRequest.schema)
return _impl_.schema_.Release();
}
inline void CreateRequest::set_allocated_schema(std::string* schema) {
if (schema != nullptr) {
} else {
}
_impl_.schema_.SetAllocated(schema, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.schema_.IsDefault()) {
_impl_.schema_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.CreateRequest.schema)
}
// map<string, string> options = 8;
inline int CreateRequest::_internal_options_size() const {
return _impl_.options_.size();
}
@@ -4792,57 +4899,107 @@ inline void OpenRequest::set_allocated_engine(std::string* engine) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.engine)
}
// string region_dir = 3;
inline void OpenRequest::clear_region_dir() {
_impl_.region_dir_.ClearToEmpty();
// string catalog = 3;
inline void OpenRequest::clear_catalog() {
_impl_.catalog_.ClearToEmpty();
}
inline const std::string& OpenRequest::region_dir() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.OpenRequest.region_dir)
return _internal_region_dir();
inline const std::string& OpenRequest::catalog() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.OpenRequest.catalog)
return _internal_catalog();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void OpenRequest::set_region_dir(ArgT0&& arg0, ArgT... args) {
void OpenRequest::set_catalog(ArgT0&& arg0, ArgT... args) {
_impl_.region_dir_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.region.OpenRequest.region_dir)
_impl_.catalog_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.region.OpenRequest.catalog)
}
inline std::string* OpenRequest::mutable_region_dir() {
std::string* _s = _internal_mutable_region_dir();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.OpenRequest.region_dir)
inline std::string* OpenRequest::mutable_catalog() {
std::string* _s = _internal_mutable_catalog();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.OpenRequest.catalog)
return _s;
}
inline const std::string& OpenRequest::_internal_region_dir() const {
return _impl_.region_dir_.Get();
inline const std::string& OpenRequest::_internal_catalog() const {
return _impl_.catalog_.Get();
}
inline void OpenRequest::_internal_set_region_dir(const std::string& value) {
inline void OpenRequest::_internal_set_catalog(const std::string& value) {
_impl_.region_dir_.Set(value, GetArenaForAllocation());
_impl_.catalog_.Set(value, GetArenaForAllocation());
}
inline std::string* OpenRequest::_internal_mutable_region_dir() {
inline std::string* OpenRequest::_internal_mutable_catalog() {
return _impl_.region_dir_.Mutable(GetArenaForAllocation());
return _impl_.catalog_.Mutable(GetArenaForAllocation());
}
inline std::string* OpenRequest::release_region_dir() {
// @@protoc_insertion_point(field_release:greptime.v1.region.OpenRequest.region_dir)
return _impl_.region_dir_.Release();
inline std::string* OpenRequest::release_catalog() {
// @@protoc_insertion_point(field_release:greptime.v1.region.OpenRequest.catalog)
return _impl_.catalog_.Release();
}
inline void OpenRequest::set_allocated_region_dir(std::string* region_dir) {
if (region_dir != nullptr) {
inline void OpenRequest::set_allocated_catalog(std::string* catalog) {
if (catalog != nullptr) {
} else {
}
_impl_.region_dir_.SetAllocated(region_dir, GetArenaForAllocation());
_impl_.catalog_.SetAllocated(catalog, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.region_dir_.IsDefault()) {
_impl_.region_dir_.Set("", GetArenaForAllocation());
if (_impl_.catalog_.IsDefault()) {
_impl_.catalog_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.region_dir)
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.catalog)
}
// map<string, string> options = 4;
// string schema = 4;
inline void OpenRequest::clear_schema() {
_impl_.schema_.ClearToEmpty();
}
inline const std::string& OpenRequest::schema() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.OpenRequest.schema)
return _internal_schema();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void OpenRequest::set_schema(ArgT0&& arg0, ArgT... args) {
_impl_.schema_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.region.OpenRequest.schema)
}
inline std::string* OpenRequest::mutable_schema() {
std::string* _s = _internal_mutable_schema();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.OpenRequest.schema)
return _s;
}
inline const std::string& OpenRequest::_internal_schema() const {
return _impl_.schema_.Get();
}
inline void OpenRequest::_internal_set_schema(const std::string& value) {
_impl_.schema_.Set(value, GetArenaForAllocation());
}
inline std::string* OpenRequest::_internal_mutable_schema() {
return _impl_.schema_.Mutable(GetArenaForAllocation());
}
inline std::string* OpenRequest::release_schema() {
// @@protoc_insertion_point(field_release:greptime.v1.region.OpenRequest.schema)
return _impl_.schema_.Release();
}
inline void OpenRequest::set_allocated_schema(std::string* schema) {
if (schema != nullptr) {
} else {
}
_impl_.schema_.SetAllocated(schema, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.schema_.IsDefault()) {
_impl_.schema_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.OpenRequest.schema)
}
// map<string, string> options = 5;
inline int OpenRequest::_internal_options_size() const {
return _impl_.options_.size();
}
File diff suppressed because it is too large Load Diff
+13 -8
View File
@@ -79,15 +79,17 @@ message CreateRequest {
string engine = 2;
// Columns in this region.
repeated ColumnDef column_defs = 3;
// Id of columns in the primary key.
// Column Id of primary keys.
repeated uint32 primary_key = 4;
// Create region if not exists.
bool create_if_not_exists = 5;
// Directory for region's data home. Usually is composed by catalog and table
// id
string region_dir = 6;
// catalog name and schema name is to accomplish storage path
// catalog name
string catalog = 6;
// schema name
string schema = 7;
// Options of the created region.
map<string, string> options = 7;
map<string, string> options = 8;
// TODO: add partition def
}
@@ -97,10 +99,13 @@ message OpenRequest {
uint64 region_id = 1;
// Region engine name
string engine = 2;
// Data directory of the region.
string region_dir = 3;
// catalog name and schema name is to accomplish storage path
// catalog name
string catalog = 3;
// schema name
string schema = 4;
// Options of the opened region.
map<string, string> options = 4;
map<string, string> options = 5;
}
message CloseRequest { uint64 region_id = 1; }