feat: remove region selection (#237)

* feat/remove-region-selection:
 ### Refactor `ArrowIpc` and Remove `RegionSelection`

 - **Refactor `ArrowIpc` Structure**:
   - Moved `region_id` to be the first field in `ArrowIpc`.
   - Removed `region_selection` field from `ArrowIpc`.
   - Updated field numbers for `schema` and `payload` in `ArrowIpc`.
   - Affected files: `server.pb.cc`, `server.pb.h`, `Server.java`, `server.proto`.

 - **Remove `RegionSelection` Message**:
   - Deleted the `RegionSelection` message and its related code.
   - Affected files: `server.pb.cc`, `server.pb.h`, `Server.java`, `server.proto`.

 These changes streamline the `ArrowIpc` message structure and remove unused `RegionSelection` components.

* dummy
This commit is contained in:
Lei, HUANG
2025-05-09 12:16:06 +08:00
committed by GitHub
parent 159e92d30b
commit 187acde93b
4 changed files with 210 additions and 1632 deletions
+68 -330
View File
@@ -446,9 +446,9 @@ struct BulkInsertRequestDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BulkInsertRequestDefaultTypeInternal _BulkInsertRequest_default_instance_;
PROTOBUF_CONSTEXPR ArrowIpc::ArrowIpc(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.region_selection_)*/{}
, /*decltype(_impl_.schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
/*decltype(_impl_.schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.payload_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct ArrowIpcDefaultTypeInternal {
PROTOBUF_CONSTEXPR ArrowIpcDefaultTypeInternal()
@@ -459,20 +459,6 @@ struct ArrowIpcDefaultTypeInternal {
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrowIpcDefaultTypeInternal _ArrowIpc_default_instance_;
PROTOBUF_CONSTEXPR RegionSelection::RegionSelection(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.selection_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct RegionSelectionDefaultTypeInternal {
PROTOBUF_CONSTEXPR RegionSelectionDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~RegionSelectionDefaultTypeInternal() {}
union {
RegionSelection _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegionSelectionDefaultTypeInternal _RegionSelection_default_instance_;
PROTOBUF_CONSTEXPR MitoManifestInfo::MitoManifestInfo(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.data_manifest_version_)*/uint64_t{0u}
@@ -518,7 +504,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
} // namespace region
} // namespace v1
} // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[36];
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[35];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr;
@@ -805,17 +791,9 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ArrowIpc, _impl_.region_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ArrowIpc, _impl_.schema_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ArrowIpc, _impl_.payload_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ArrowIpc, _impl_.region_selection_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionSelection, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionSelection, _impl_.region_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionSelection, _impl_.selection_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::MitoManifestInfo, _internal_metadata_),
~0u, // no _extensions_
@@ -875,10 +853,9 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 260, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
{ 268, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
{ 276, -1, -1, sizeof(::greptime::v1::region::ArrowIpc)},
{ 285, -1, -1, sizeof(::greptime::v1::region::RegionSelection)},
{ 293, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
{ 300, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
{ 308, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
{ 285, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
{ 292, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
{ 300, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -914,7 +891,6 @@ static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::region::_RegionColumnDef_default_instance_._instance,
&::greptime::v1::region::_BulkInsertRequest_default_instance_._instance,
&::greptime::v1::region::_ArrowIpc_default_instance_._instance,
&::greptime::v1::region::_RegionSelection_default_instance_._instance,
&::greptime::v1::region::_MitoManifestInfo_default_instance_._instance,
&::greptime::v1::region::_MetricManifestInfo_default_instance_._instance,
&::greptime::v1::region::_SyncRequest_default_instance_._instance,
@@ -1014,24 +990,22 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
"\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum"
"nDef\022\021\n\tcolumn_id\030\002 \001(\r\"N\n\021BulkInsertReq"
"uest\0221\n\tarrow_ipc\030\001 \001(\0132\034.greptime.v1.re"
"gion.ArrowIpcH\000B\006\n\004body\"j\n\010ArrowIpc\022\016\n\006s"
"chema\030\001 \001(\014\022\017\n\007payload\030\002 \001(\014\022=\n\020region_s"
"election\030\003 \003(\0132#.greptime.v1.region.Regi"
"onSelection\"7\n\017RegionSelection\022\021\n\tregion"
"_id\030\001 \001(\004\022\021\n\tselection\030\002 \001(\014\"1\n\020MitoMani"
"festInfo\022\035\n\025data_manifest_version\030\001 \001(\004\""
"V\n\022MetricManifestInfo\022\035\n\025data_manifest_v"
"ersion\030\001 \001(\004\022!\n\031metadata_manifest_versio"
"n\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregion_id\030\001 \001"
"(\004\022B\n\022mito_manifest_info\030\002 \001(\0132$.greptim"
"e.v1.region.MitoManifestInfoH\000\022F\n\024metric"
"_manifest_info\030\003 \001(\0132&.greptime.v1.regio"
"n.MetricManifestInfoH\000B\017\n\rmanifest_info2"
"Y\n\006Region\022O\n\006Handle\022!.greptime.v1.region"
".RegionRequest\032\".greptime.v1.region.Regi"
"onResponseB]\n\025io.greptime.v1.regionB\006Ser"
"verZ<github.com/GreptimeTeam/greptime-pr"
"oto/go/greptime/v1/regionb\006proto3"
"gion.ArrowIpcH\000B\006\n\004body\">\n\010ArrowIpc\022\021\n\tr"
"egion_id\030\001 \001(\004\022\016\n\006schema\030\002 \001(\014\022\017\n\007payloa"
"d\030\003 \001(\014\"1\n\020MitoManifestInfo\022\035\n\025data_mani"
"fest_version\030\001 \001(\004\"V\n\022MetricManifestInfo"
"\022\035\n\025data_manifest_version\030\001 \001(\004\022!\n\031metad"
"ata_manifest_version\030\002 \001(\004\"\275\001\n\013SyncReque"
"st\022\021\n\tregion_id\030\001 \001(\004\022B\n\022mito_manifest_i"
"nfo\030\002 \001(\0132$.greptime.v1.region.MitoManif"
"estInfoH\000\022F\n\024metric_manifest_info\030\003 \001(\0132"
"&.greptime.v1.region.MetricManifestInfoH"
"\000B\017\n\rmanifest_info2Y\n\006Region\022O\n\006Handle\022!"
".greptime.v1.region.RegionRequest\032\".grep"
"time.v1.region.RegionResponseB]\n\025io.grep"
"time.v1.regionB\006ServerZ<github.com/Grept"
"imeTeam/greptime-proto/go/greptime/v1/re"
"gionb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -1040,9 +1014,9 @@ 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, 4433, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
false, false, 4332, 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, 3, 36,
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 3, 35,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto, file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto,
file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto,
@@ -8561,9 +8535,9 @@ ArrowIpc::ArrowIpc(const ArrowIpc& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
ArrowIpc* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.region_selection_){from._impl_.region_selection_}
, decltype(_impl_.schema_){}
decltype(_impl_.schema_){}
, decltype(_impl_.payload_){}
, decltype(_impl_.region_id_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
@@ -8583,6 +8557,7 @@ ArrowIpc::ArrowIpc(const ArrowIpc& from)
_this->_impl_.payload_.Set(from._internal_payload(),
_this->GetArenaForAllocation());
}
_this->_impl_.region_id_ = from._impl_.region_id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.ArrowIpc)
}
@@ -8591,9 +8566,9 @@ inline void ArrowIpc::SharedCtor(
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.region_selection_){arena}
, decltype(_impl_.schema_){}
decltype(_impl_.schema_){}
, decltype(_impl_.payload_){}
, decltype(_impl_.region_id_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.schema_.InitDefault();
@@ -8617,7 +8592,6 @@ ArrowIpc::~ArrowIpc() {
inline void ArrowIpc::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.region_selection_.~RepeatedPtrField();
_impl_.schema_.Destroy();
_impl_.payload_.Destroy();
}
@@ -8632,9 +8606,9 @@ void ArrowIpc::Clear() {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.region_selection_.Clear();
_impl_.schema_.ClearToEmpty();
_impl_.payload_.ClearToEmpty();
_impl_.region_id_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -8644,37 +8618,32 @@ const char* ArrowIpc::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// bytes schema = 1;
// uint64 region_id = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// bytes schema = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_schema();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// bytes payload = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
// bytes payload = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
auto str = _internal_mutable_payload();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// repeated .greptime.v1.region.RegionSelection region_selection = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_region_selection(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -8704,24 +8673,22 @@ uint8_t* ArrowIpc::_InternalSerialize(
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// bytes schema = 1;
// uint64 region_id = 1;
if (this->_internal_region_id() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), target);
}
// bytes schema = 2;
if (!this->_internal_schema().empty()) {
target = stream->WriteBytesMaybeAliased(
1, this->_internal_schema(), target);
2, this->_internal_schema(), target);
}
// bytes payload = 2;
// bytes payload = 3;
if (!this->_internal_payload().empty()) {
target = stream->WriteBytesMaybeAliased(
2, this->_internal_payload(), target);
}
// repeated .greptime.v1.region.RegionSelection region_selection = 3;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_region_selection_size()); i < n; i++) {
const auto& repfield = this->_internal_region_selection(i);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
3, this->_internal_payload(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -8740,27 +8707,25 @@ size_t ArrowIpc::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .greptime.v1.region.RegionSelection region_selection = 3;
total_size += 1UL * this->_internal_region_selection_size();
for (const auto& msg : this->_impl_.region_selection_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
// bytes schema = 1;
// bytes schema = 2;
if (!this->_internal_schema().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
this->_internal_schema());
}
// bytes payload = 2;
// bytes payload = 3;
if (!this->_internal_payload().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
this->_internal_payload());
}
// uint64 region_id = 1;
if (this->_internal_region_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
@@ -8779,13 +8744,15 @@ void ArrowIpc::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_impl_.region_selection_.MergeFrom(from._impl_.region_selection_);
if (!from._internal_schema().empty()) {
_this->_internal_set_schema(from._internal_schema());
}
if (!from._internal_payload().empty()) {
_this->_internal_set_payload(from._internal_payload());
}
if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -8805,7 +8772,6 @@ void ArrowIpc::InternalSwap(ArrowIpc* other) {
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.region_selection_.InternalSwap(&other->_impl_.region_selection_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.schema_, lhs_arena,
&other->_impl_.schema_, rhs_arena
@@ -8814,6 +8780,7 @@ void ArrowIpc::InternalSwap(ArrowIpc* other) {
&_impl_.payload_, lhs_arena,
&other->_impl_.payload_, rhs_arena
);
swap(_impl_.region_id_, other->_impl_.region_id_);
}
::PROTOBUF_NAMESPACE_ID::Metadata ArrowIpc::GetMetadata() const {
@@ -8824,231 +8791,6 @@ void ArrowIpc::InternalSwap(ArrowIpc* other) {
// ===================================================================
class RegionSelection::_Internal {
public:
};
RegionSelection::RegionSelection(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:greptime.v1.region.RegionSelection)
}
RegionSelection::RegionSelection(const RegionSelection& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
RegionSelection* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.selection_){}
, decltype(_impl_.region_id_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.selection_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.selection_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_selection().empty()) {
_this->_impl_.selection_.Set(from._internal_selection(),
_this->GetArenaForAllocation());
}
_this->_impl_.region_id_ = from._impl_.region_id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.RegionSelection)
}
inline void RegionSelection::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.selection_){}
, decltype(_impl_.region_id_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.selection_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.selection_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
RegionSelection::~RegionSelection() {
// @@protoc_insertion_point(destructor:greptime.v1.region.RegionSelection)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void RegionSelection::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.selection_.Destroy();
}
void RegionSelection::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void RegionSelection::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.region.RegionSelection)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.selection_.ClearToEmpty();
_impl_.region_id_ = uint64_t{0u};
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* RegionSelection::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// uint64 region_id = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.region_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// bytes selection = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_selection();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* RegionSelection::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.RegionSelection)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint64 region_id = 1;
if (this->_internal_region_id() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), target);
}
// bytes selection = 2;
if (!this->_internal_selection().empty()) {
target = stream->WriteBytesMaybeAliased(
2, this->_internal_selection(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.region.RegionSelection)
return target;
}
size_t RegionSelection::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.RegionSelection)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// bytes selection = 2;
if (!this->_internal_selection().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
this->_internal_selection());
}
// uint64 region_id = 1;
if (this->_internal_region_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RegionSelection::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
RegionSelection::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RegionSelection::GetClassData() const { return &_class_data_; }
void RegionSelection::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<RegionSelection*>(&to_msg);
auto& from = static_cast<const RegionSelection&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.region.RegionSelection)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_selection().empty()) {
_this->_internal_set_selection(from._internal_selection());
}
if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void RegionSelection::CopyFrom(const RegionSelection& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.RegionSelection)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool RegionSelection::IsInitialized() const {
return true;
}
void RegionSelection::InternalSwap(RegionSelection* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&_impl_.selection_, lhs_arena,
&other->_impl_.selection_, rhs_arena
);
swap(_impl_.region_id_, other->_impl_.region_id_);
}
::PROTOBUF_NAMESPACE_ID::Metadata RegionSelection::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[32]);
}
// ===================================================================
class MitoManifestInfo::_Internal {
public:
};
@@ -9222,7 +8964,7 @@ void MitoManifestInfo::InternalSwap(MitoManifestInfo* other) {
::PROTOBUF_NAMESPACE_ID::Metadata MitoManifestInfo::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[33]);
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[32]);
}
// ===================================================================
@@ -9433,7 +9175,7 @@ void MetricManifestInfo::InternalSwap(MetricManifestInfo* other) {
::PROTOBUF_NAMESPACE_ID::Metadata MetricManifestInfo::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[34]);
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[33]);
}
// ===================================================================
@@ -9765,7 +9507,7 @@ void SyncRequest::InternalSwap(SyncRequest* other) {
::PROTOBUF_NAMESPACE_ID::Metadata SyncRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[35]);
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[34]);
}
// @@protoc_insertion_point(namespace_scope)
@@ -9901,10 +9643,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::region::ArrowIpc*
Arena::CreateMaybeMessage< ::greptime::v1::region::ArrowIpc >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::region::ArrowIpc >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::region::RegionSelection*
Arena::CreateMaybeMessage< ::greptime::v1::region::RegionSelection >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::region::RegionSelection >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::region::MitoManifestInfo*
Arena::CreateMaybeMessage< ::greptime::v1::region::MitoManifestInfo >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::region::MitoManifestInfo >(arena);
+33 -306
View File
@@ -147,9 +147,6 @@ extern RegionResponseDefaultTypeInternal _RegionResponse_default_instance_;
class RegionResponse_ExtensionsEntry_DoNotUse;
struct RegionResponse_ExtensionsEntry_DoNotUseDefaultTypeInternal;
extern RegionResponse_ExtensionsEntry_DoNotUseDefaultTypeInternal _RegionResponse_ExtensionsEntry_DoNotUse_default_instance_;
class RegionSelection;
struct RegionSelectionDefaultTypeInternal;
extern RegionSelectionDefaultTypeInternal _RegionSelection_default_instance_;
class Regular;
struct RegularDefaultTypeInternal;
extern RegularDefaultTypeInternal _Regular_default_instance_;
@@ -197,7 +194,6 @@ template<> ::greptime::v1::region::RegionRequestHeader* Arena::CreateMaybeMessag
template<> ::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::region::RegionRequestHeader_TracingContextEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::region::RegionResponse* Arena::CreateMaybeMessage<::greptime::v1::region::RegionResponse>(Arena*);
template<> ::greptime::v1::region::RegionResponse_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::region::RegionResponse_ExtensionsEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::region::RegionSelection* Arena::CreateMaybeMessage<::greptime::v1::region::RegionSelection>(Arena*);
template<> ::greptime::v1::region::Regular* Arena::CreateMaybeMessage<::greptime::v1::region::Regular>(Arena*);
template<> ::greptime::v1::region::StrictWindow* Arena::CreateMaybeMessage<::greptime::v1::region::StrictWindow>(Arena*);
template<> ::greptime::v1::region::SyncRequest* Arena::CreateMaybeMessage<::greptime::v1::region::SyncRequest>(Arena*);
@@ -5487,29 +5483,11 @@ class ArrowIpc final :
// accessors -------------------------------------------------------
enum : int {
kRegionSelectionFieldNumber = 3,
kSchemaFieldNumber = 1,
kPayloadFieldNumber = 2,
kSchemaFieldNumber = 2,
kPayloadFieldNumber = 3,
kRegionIdFieldNumber = 1,
};
// repeated .greptime.v1.region.RegionSelection region_selection = 3;
int region_selection_size() const;
private:
int _internal_region_selection_size() const;
public:
void clear_region_selection();
::greptime::v1::region::RegionSelection* mutable_region_selection(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::RegionSelection >*
mutable_region_selection();
private:
const ::greptime::v1::region::RegionSelection& _internal_region_selection(int index) const;
::greptime::v1::region::RegionSelection* _internal_add_region_selection();
public:
const ::greptime::v1::region::RegionSelection& region_selection(int index) const;
::greptime::v1::region::RegionSelection* add_region_selection();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::RegionSelection >&
region_selection() const;
// bytes schema = 1;
// bytes schema = 2;
void clear_schema();
const std::string& schema() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
@@ -5523,7 +5501,7 @@ class ArrowIpc final :
std::string* _internal_mutable_schema();
public:
// bytes payload = 2;
// bytes payload = 3;
void clear_payload();
const std::string& payload() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
@@ -5537,162 +5515,6 @@ class ArrowIpc final :
std::string* _internal_mutable_payload();
public:
// @@protoc_insertion_point(class_scope:greptime.v1.region.ArrowIpc)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::RegionSelection > region_selection_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto;
};
// -------------------------------------------------------------------
class RegionSelection final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.RegionSelection) */ {
public:
inline RegionSelection() : RegionSelection(nullptr) {}
~RegionSelection() override;
explicit PROTOBUF_CONSTEXPR RegionSelection(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
RegionSelection(const RegionSelection& from);
RegionSelection(RegionSelection&& from) noexcept
: RegionSelection() {
*this = ::std::move(from);
}
inline RegionSelection& operator=(const RegionSelection& from) {
CopyFrom(from);
return *this;
}
inline RegionSelection& operator=(RegionSelection&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const RegionSelection& default_instance() {
return *internal_default_instance();
}
static inline const RegionSelection* internal_default_instance() {
return reinterpret_cast<const RegionSelection*>(
&_RegionSelection_default_instance_);
}
static constexpr int kIndexInFileMessages =
32;
friend void swap(RegionSelection& a, RegionSelection& b) {
a.Swap(&b);
}
inline void Swap(RegionSelection* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(RegionSelection* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
RegionSelection* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<RegionSelection>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const RegionSelection& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const RegionSelection& from) {
RegionSelection::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(RegionSelection* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.region.RegionSelection";
}
protected:
explicit RegionSelection(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kSelectionFieldNumber = 2,
kRegionIdFieldNumber = 1,
};
// bytes selection = 2;
void clear_selection();
const std::string& selection() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_selection(ArgT0&& arg0, ArgT... args);
std::string* mutable_selection();
PROTOBUF_NODISCARD std::string* release_selection();
void set_allocated_selection(std::string* selection);
private:
const std::string& _internal_selection() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_selection(const std::string& value);
std::string* _internal_mutable_selection();
public:
// uint64 region_id = 1;
void clear_region_id();
uint64_t region_id() const;
@@ -5702,7 +5524,7 @@ class RegionSelection final :
void _internal_set_region_id(uint64_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.region.RegionSelection)
// @@protoc_insertion_point(class_scope:greptime.v1.region.ArrowIpc)
private:
class _Internal;
@@ -5710,7 +5532,8 @@ class RegionSelection final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selection_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_;
uint64_t region_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
@@ -5767,7 +5590,7 @@ class MitoManifestInfo final :
&_MitoManifestInfo_default_instance_);
}
static constexpr int kIndexInFileMessages =
33;
32;
friend void swap(MitoManifestInfo& a, MitoManifestInfo& b) {
a.Swap(&b);
@@ -5915,7 +5738,7 @@ class MetricManifestInfo final :
&_MetricManifestInfo_default_instance_);
}
static constexpr int kIndexInFileMessages =
34;
33;
friend void swap(MetricManifestInfo& a, MetricManifestInfo& b) {
a.Swap(&b);
@@ -6080,7 +5903,7 @@ class SyncRequest final :
&_SyncRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
35;
34;
friend void swap(SyncRequest& a, SyncRequest& b) {
a.Swap(&b);
@@ -10137,7 +9960,27 @@ inline BulkInsertRequest::BodyCase BulkInsertRequest::body_case() const {
// ArrowIpc
// bytes schema = 1;
// uint64 region_id = 1;
inline void ArrowIpc::clear_region_id() {
_impl_.region_id_ = uint64_t{0u};
}
inline uint64_t ArrowIpc::_internal_region_id() const {
return _impl_.region_id_;
}
inline uint64_t ArrowIpc::region_id() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.ArrowIpc.region_id)
return _internal_region_id();
}
inline void ArrowIpc::_internal_set_region_id(uint64_t value) {
_impl_.region_id_ = value;
}
inline void ArrowIpc::set_region_id(uint64_t value) {
_internal_set_region_id(value);
// @@protoc_insertion_point(field_set:greptime.v1.region.ArrowIpc.region_id)
}
// bytes schema = 2;
inline void ArrowIpc::clear_schema() {
_impl_.schema_.ClearToEmpty();
}
@@ -10187,7 +10030,7 @@ inline void ArrowIpc::set_allocated_schema(std::string* schema) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.ArrowIpc.schema)
}
// bytes payload = 2;
// bytes payload = 3;
inline void ArrowIpc::clear_payload() {
_impl_.payload_.ClearToEmpty();
}
@@ -10237,120 +10080,6 @@ inline void ArrowIpc::set_allocated_payload(std::string* payload) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.ArrowIpc.payload)
}
// repeated .greptime.v1.region.RegionSelection region_selection = 3;
inline int ArrowIpc::_internal_region_selection_size() const {
return _impl_.region_selection_.size();
}
inline int ArrowIpc::region_selection_size() const {
return _internal_region_selection_size();
}
inline void ArrowIpc::clear_region_selection() {
_impl_.region_selection_.Clear();
}
inline ::greptime::v1::region::RegionSelection* ArrowIpc::mutable_region_selection(int index) {
// @@protoc_insertion_point(field_mutable:greptime.v1.region.ArrowIpc.region_selection)
return _impl_.region_selection_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::RegionSelection >*
ArrowIpc::mutable_region_selection() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.region.ArrowIpc.region_selection)
return &_impl_.region_selection_;
}
inline const ::greptime::v1::region::RegionSelection& ArrowIpc::_internal_region_selection(int index) const {
return _impl_.region_selection_.Get(index);
}
inline const ::greptime::v1::region::RegionSelection& ArrowIpc::region_selection(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.region.ArrowIpc.region_selection)
return _internal_region_selection(index);
}
inline ::greptime::v1::region::RegionSelection* ArrowIpc::_internal_add_region_selection() {
return _impl_.region_selection_.Add();
}
inline ::greptime::v1::region::RegionSelection* ArrowIpc::add_region_selection() {
::greptime::v1::region::RegionSelection* _add = _internal_add_region_selection();
// @@protoc_insertion_point(field_add:greptime.v1.region.ArrowIpc.region_selection)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::region::RegionSelection >&
ArrowIpc::region_selection() const {
// @@protoc_insertion_point(field_list:greptime.v1.region.ArrowIpc.region_selection)
return _impl_.region_selection_;
}
// -------------------------------------------------------------------
// RegionSelection
// uint64 region_id = 1;
inline void RegionSelection::clear_region_id() {
_impl_.region_id_ = uint64_t{0u};
}
inline uint64_t RegionSelection::_internal_region_id() const {
return _impl_.region_id_;
}
inline uint64_t RegionSelection::region_id() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.RegionSelection.region_id)
return _internal_region_id();
}
inline void RegionSelection::_internal_set_region_id(uint64_t value) {
_impl_.region_id_ = value;
}
inline void RegionSelection::set_region_id(uint64_t value) {
_internal_set_region_id(value);
// @@protoc_insertion_point(field_set:greptime.v1.region.RegionSelection.region_id)
}
// bytes selection = 2;
inline void RegionSelection::clear_selection() {
_impl_.selection_.ClearToEmpty();
}
inline const std::string& RegionSelection::selection() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.RegionSelection.selection)
return _internal_selection();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void RegionSelection::set_selection(ArgT0&& arg0, ArgT... args) {
_impl_.selection_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.region.RegionSelection.selection)
}
inline std::string* RegionSelection::mutable_selection() {
std::string* _s = _internal_mutable_selection();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.RegionSelection.selection)
return _s;
}
inline const std::string& RegionSelection::_internal_selection() const {
return _impl_.selection_.Get();
}
inline void RegionSelection::_internal_set_selection(const std::string& value) {
_impl_.selection_.Set(value, GetArenaForAllocation());
}
inline std::string* RegionSelection::_internal_mutable_selection() {
return _impl_.selection_.Mutable(GetArenaForAllocation());
}
inline std::string* RegionSelection::release_selection() {
// @@protoc_insertion_point(field_release:greptime.v1.region.RegionSelection.selection)
return _impl_.selection_.Release();
}
inline void RegionSelection::set_allocated_selection(std::string* selection) {
if (selection != nullptr) {
} else {
}
_impl_.selection_.SetAllocated(selection, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.selection_.IsDefault()) {
_impl_.selection_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.RegionSelection.selection)
}
// -------------------------------------------------------------------
// MitoManifestInfo
@@ -10671,8 +10400,6 @@ inline SyncRequest::ManifestInfoCase SyncRequest::manifest_info_case() const {
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
File diff suppressed because it is too large Load Diff
+2 -7
View File
@@ -193,14 +193,9 @@ message BulkInsertRequest {
}
message ArrowIpc {
bytes schema = 1;
bytes payload = 2;
repeated RegionSelection region_selection = 3;
}
message RegionSelection {
uint64 region_id = 1;
bytes selection = 2;
bytes schema = 2;
bytes payload = 3;
}
// Manifest info for mito engine.