Add data header to requests (#240)
This commit is contained in:
@@ -447,6 +447,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
|
|||||||
PROTOBUF_CONSTEXPR ArrowIpc::ArrowIpc(
|
PROTOBUF_CONSTEXPR ArrowIpc::ArrowIpc(
|
||||||
::_pbi::ConstantInitialized): _impl_{
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
/*decltype(_impl_.schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
/*decltype(_impl_.schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
|
, /*decltype(_impl_.data_header_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||||
, /*decltype(_impl_.payload_)*/{&::_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_.region_id_)*/uint64_t{0u}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||||
@@ -793,6 +794,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
|
|||||||
~0u, // no _inlined_string_donated_
|
~0u, // no _inlined_string_donated_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ArrowIpc, _impl_.region_id_),
|
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_.schema_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ArrowIpc, _impl_.data_header_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ArrowIpc, _impl_.payload_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ArrowIpc, _impl_.payload_),
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::MitoManifestInfo, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::MitoManifestInfo, _internal_metadata_),
|
||||||
@@ -853,9 +855,9 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
|||||||
{ 260, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
{ 260, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||||
{ 268, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
|
{ 268, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
|
||||||
{ 276, -1, -1, sizeof(::greptime::v1::region::ArrowIpc)},
|
{ 276, -1, -1, sizeof(::greptime::v1::region::ArrowIpc)},
|
||||||
{ 285, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
|
{ 286, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
|
||||||
{ 292, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
|
{ 293, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
|
||||||
{ 300, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
|
{ 301, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
@@ -990,22 +992,22 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
|
|||||||
"\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum"
|
"\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"
|
"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"
|
"uest\0221\n\tarrow_ipc\030\001 \001(\0132\034.greptime.v1.re"
|
||||||
"gion.ArrowIpcH\000B\006\n\004body\">\n\010ArrowIpc\022\021\n\tr"
|
"gion.ArrowIpcH\000B\006\n\004body\"S\n\010ArrowIpc\022\021\n\tr"
|
||||||
"egion_id\030\001 \001(\004\022\016\n\006schema\030\002 \001(\014\022\017\n\007payloa"
|
"egion_id\030\001 \001(\004\022\016\n\006schema\030\002 \001(\014\022\023\n\013data_h"
|
||||||
"d\030\003 \001(\014\"1\n\020MitoManifestInfo\022\035\n\025data_mani"
|
"eader\030\003 \001(\014\022\017\n\007payload\030\004 \001(\014\"1\n\020MitoMani"
|
||||||
"fest_version\030\001 \001(\004\"V\n\022MetricManifestInfo"
|
"festInfo\022\035\n\025data_manifest_version\030\001 \001(\004\""
|
||||||
"\022\035\n\025data_manifest_version\030\001 \001(\004\022!\n\031metad"
|
"V\n\022MetricManifestInfo\022\035\n\025data_manifest_v"
|
||||||
"ata_manifest_version\030\002 \001(\004\"\275\001\n\013SyncReque"
|
"ersion\030\001 \001(\004\022!\n\031metadata_manifest_versio"
|
||||||
"st\022\021\n\tregion_id\030\001 \001(\004\022B\n\022mito_manifest_i"
|
"n\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregion_id\030\001 \001"
|
||||||
"nfo\030\002 \001(\0132$.greptime.v1.region.MitoManif"
|
"(\004\022B\n\022mito_manifest_info\030\002 \001(\0132$.greptim"
|
||||||
"estInfoH\000\022F\n\024metric_manifest_info\030\003 \001(\0132"
|
"e.v1.region.MitoManifestInfoH\000\022F\n\024metric"
|
||||||
"&.greptime.v1.region.MetricManifestInfoH"
|
"_manifest_info\030\003 \001(\0132&.greptime.v1.regio"
|
||||||
"\000B\017\n\rmanifest_info2Y\n\006Region\022O\n\006Handle\022!"
|
"n.MetricManifestInfoH\000B\017\n\rmanifest_info2"
|
||||||
".greptime.v1.region.RegionRequest\032\".grep"
|
"Y\n\006Region\022O\n\006Handle\022!.greptime.v1.region"
|
||||||
"time.v1.region.RegionResponseB]\n\025io.grep"
|
".RegionRequest\032\".greptime.v1.region.Regi"
|
||||||
"time.v1.regionB\006ServerZ<github.com/Grept"
|
"onResponseB]\n\025io.greptime.v1.regionB\006Ser"
|
||||||
"imeTeam/greptime-proto/go/greptime/v1/re"
|
"verZ<github.com/GreptimeTeam/greptime-pr"
|
||||||
"gionb\006proto3"
|
"oto/go/greptime/v1/regionb\006proto3"
|
||||||
;
|
;
|
||||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
|
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
|
||||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||||
@@ -1014,7 +1016,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2freg
|
|||||||
};
|
};
|
||||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
|
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
|
||||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
|
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
|
||||||
false, false, 4332, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
false, false, 4353, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||||
"greptime/v1/region/server.proto",
|
"greptime/v1/region/server.proto",
|
||||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 3, 35,
|
&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,
|
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
|
||||||
@@ -8536,6 +8538,7 @@ ArrowIpc::ArrowIpc(const ArrowIpc& from)
|
|||||||
ArrowIpc* const _this = this; (void)_this;
|
ArrowIpc* const _this = this; (void)_this;
|
||||||
new (&_impl_) Impl_{
|
new (&_impl_) Impl_{
|
||||||
decltype(_impl_.schema_){}
|
decltype(_impl_.schema_){}
|
||||||
|
, decltype(_impl_.data_header_){}
|
||||||
, decltype(_impl_.payload_){}
|
, decltype(_impl_.payload_){}
|
||||||
, decltype(_impl_.region_id_){}
|
, decltype(_impl_.region_id_){}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}};
|
, /*decltype(_impl_._cached_size_)*/{}};
|
||||||
@@ -8549,6 +8552,14 @@ ArrowIpc::ArrowIpc(const ArrowIpc& from)
|
|||||||
_this->_impl_.schema_.Set(from._internal_schema(),
|
_this->_impl_.schema_.Set(from._internal_schema(),
|
||||||
_this->GetArenaForAllocation());
|
_this->GetArenaForAllocation());
|
||||||
}
|
}
|
||||||
|
_impl_.data_header_.InitDefault();
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
_impl_.data_header_.Set("", GetArenaForAllocation());
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
if (!from._internal_data_header().empty()) {
|
||||||
|
_this->_impl_.data_header_.Set(from._internal_data_header(),
|
||||||
|
_this->GetArenaForAllocation());
|
||||||
|
}
|
||||||
_impl_.payload_.InitDefault();
|
_impl_.payload_.InitDefault();
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.payload_.Set("", GetArenaForAllocation());
|
_impl_.payload_.Set("", GetArenaForAllocation());
|
||||||
@@ -8567,6 +8578,7 @@ inline void ArrowIpc::SharedCtor(
|
|||||||
(void)is_message_owned;
|
(void)is_message_owned;
|
||||||
new (&_impl_) Impl_{
|
new (&_impl_) Impl_{
|
||||||
decltype(_impl_.schema_){}
|
decltype(_impl_.schema_){}
|
||||||
|
, decltype(_impl_.data_header_){}
|
||||||
, decltype(_impl_.payload_){}
|
, decltype(_impl_.payload_){}
|
||||||
, decltype(_impl_.region_id_){uint64_t{0u}}
|
, decltype(_impl_.region_id_){uint64_t{0u}}
|
||||||
, /*decltype(_impl_._cached_size_)*/{}
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
@@ -8575,6 +8587,10 @@ inline void ArrowIpc::SharedCtor(
|
|||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.schema_.Set("", GetArenaForAllocation());
|
_impl_.schema_.Set("", GetArenaForAllocation());
|
||||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
_impl_.data_header_.InitDefault();
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
_impl_.data_header_.Set("", GetArenaForAllocation());
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.payload_.InitDefault();
|
_impl_.payload_.InitDefault();
|
||||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
_impl_.payload_.Set("", GetArenaForAllocation());
|
_impl_.payload_.Set("", GetArenaForAllocation());
|
||||||
@@ -8593,6 +8609,7 @@ ArrowIpc::~ArrowIpc() {
|
|||||||
inline void ArrowIpc::SharedDtor() {
|
inline void ArrowIpc::SharedDtor() {
|
||||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||||
_impl_.schema_.Destroy();
|
_impl_.schema_.Destroy();
|
||||||
|
_impl_.data_header_.Destroy();
|
||||||
_impl_.payload_.Destroy();
|
_impl_.payload_.Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -8607,6 +8624,7 @@ void ArrowIpc::Clear() {
|
|||||||
(void) cached_has_bits;
|
(void) cached_has_bits;
|
||||||
|
|
||||||
_impl_.schema_.ClearToEmpty();
|
_impl_.schema_.ClearToEmpty();
|
||||||
|
_impl_.data_header_.ClearToEmpty();
|
||||||
_impl_.payload_.ClearToEmpty();
|
_impl_.payload_.ClearToEmpty();
|
||||||
_impl_.region_id_ = uint64_t{0u};
|
_impl_.region_id_ = uint64_t{0u};
|
||||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||||
@@ -8635,9 +8653,18 @@ const char* ArrowIpc::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx)
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
// bytes payload = 3;
|
// bytes data_header = 3;
|
||||||
case 3:
|
case 3:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
||||||
|
auto str = _internal_mutable_data_header();
|
||||||
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||||
|
CHK_(ptr);
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
|
// bytes payload = 4;
|
||||||
|
case 4:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
|
||||||
auto str = _internal_mutable_payload();
|
auto str = _internal_mutable_payload();
|
||||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||||
CHK_(ptr);
|
CHK_(ptr);
|
||||||
@@ -8685,10 +8712,16 @@ uint8_t* ArrowIpc::_InternalSerialize(
|
|||||||
2, this->_internal_schema(), target);
|
2, this->_internal_schema(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
// bytes payload = 3;
|
// bytes data_header = 3;
|
||||||
|
if (!this->_internal_data_header().empty()) {
|
||||||
|
target = stream->WriteBytesMaybeAliased(
|
||||||
|
3, this->_internal_data_header(), target);
|
||||||
|
}
|
||||||
|
|
||||||
|
// bytes payload = 4;
|
||||||
if (!this->_internal_payload().empty()) {
|
if (!this->_internal_payload().empty()) {
|
||||||
target = stream->WriteBytesMaybeAliased(
|
target = stream->WriteBytesMaybeAliased(
|
||||||
3, this->_internal_payload(), target);
|
4, this->_internal_payload(), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||||
@@ -8714,7 +8747,14 @@ size_t ArrowIpc::ByteSizeLong() const {
|
|||||||
this->_internal_schema());
|
this->_internal_schema());
|
||||||
}
|
}
|
||||||
|
|
||||||
// bytes payload = 3;
|
// bytes data_header = 3;
|
||||||
|
if (!this->_internal_data_header().empty()) {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
||||||
|
this->_internal_data_header());
|
||||||
|
}
|
||||||
|
|
||||||
|
// bytes payload = 4;
|
||||||
if (!this->_internal_payload().empty()) {
|
if (!this->_internal_payload().empty()) {
|
||||||
total_size += 1 +
|
total_size += 1 +
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
||||||
@@ -8747,6 +8787,9 @@ void ArrowIpc::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTO
|
|||||||
if (!from._internal_schema().empty()) {
|
if (!from._internal_schema().empty()) {
|
||||||
_this->_internal_set_schema(from._internal_schema());
|
_this->_internal_set_schema(from._internal_schema());
|
||||||
}
|
}
|
||||||
|
if (!from._internal_data_header().empty()) {
|
||||||
|
_this->_internal_set_data_header(from._internal_data_header());
|
||||||
|
}
|
||||||
if (!from._internal_payload().empty()) {
|
if (!from._internal_payload().empty()) {
|
||||||
_this->_internal_set_payload(from._internal_payload());
|
_this->_internal_set_payload(from._internal_payload());
|
||||||
}
|
}
|
||||||
@@ -8776,6 +8819,10 @@ void ArrowIpc::InternalSwap(ArrowIpc* other) {
|
|||||||
&_impl_.schema_, lhs_arena,
|
&_impl_.schema_, lhs_arena,
|
||||||
&other->_impl_.schema_, rhs_arena
|
&other->_impl_.schema_, rhs_arena
|
||||||
);
|
);
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||||
|
&_impl_.data_header_, lhs_arena,
|
||||||
|
&other->_impl_.data_header_, rhs_arena
|
||||||
|
);
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||||
&_impl_.payload_, lhs_arena,
|
&_impl_.payload_, lhs_arena,
|
||||||
&other->_impl_.payload_, rhs_arena
|
&other->_impl_.payload_, rhs_arena
|
||||||
|
|||||||
@@ -5484,7 +5484,8 @@ class ArrowIpc final :
|
|||||||
|
|
||||||
enum : int {
|
enum : int {
|
||||||
kSchemaFieldNumber = 2,
|
kSchemaFieldNumber = 2,
|
||||||
kPayloadFieldNumber = 3,
|
kDataHeaderFieldNumber = 3,
|
||||||
|
kPayloadFieldNumber = 4,
|
||||||
kRegionIdFieldNumber = 1,
|
kRegionIdFieldNumber = 1,
|
||||||
};
|
};
|
||||||
// bytes schema = 2;
|
// bytes schema = 2;
|
||||||
@@ -5501,7 +5502,21 @@ class ArrowIpc final :
|
|||||||
std::string* _internal_mutable_schema();
|
std::string* _internal_mutable_schema();
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// bytes payload = 3;
|
// bytes data_header = 3;
|
||||||
|
void clear_data_header();
|
||||||
|
const std::string& data_header() const;
|
||||||
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||||
|
void set_data_header(ArgT0&& arg0, ArgT... args);
|
||||||
|
std::string* mutable_data_header();
|
||||||
|
PROTOBUF_NODISCARD std::string* release_data_header();
|
||||||
|
void set_allocated_data_header(std::string* data_header);
|
||||||
|
private:
|
||||||
|
const std::string& _internal_data_header() const;
|
||||||
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_data_header(const std::string& value);
|
||||||
|
std::string* _internal_mutable_data_header();
|
||||||
|
public:
|
||||||
|
|
||||||
|
// bytes payload = 4;
|
||||||
void clear_payload();
|
void clear_payload();
|
||||||
const std::string& payload() const;
|
const std::string& payload() const;
|
||||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||||
@@ -5533,6 +5548,7 @@ class ArrowIpc final :
|
|||||||
typedef void DestructorSkippable_;
|
typedef void DestructorSkippable_;
|
||||||
struct Impl_ {
|
struct Impl_ {
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_;
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_header_;
|
||||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_;
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_;
|
||||||
uint64_t region_id_;
|
uint64_t region_id_;
|
||||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
@@ -10030,7 +10046,57 @@ inline void ArrowIpc::set_allocated_schema(std::string* schema) {
|
|||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.ArrowIpc.schema)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.ArrowIpc.schema)
|
||||||
}
|
}
|
||||||
|
|
||||||
// bytes payload = 3;
|
// bytes data_header = 3;
|
||||||
|
inline void ArrowIpc::clear_data_header() {
|
||||||
|
_impl_.data_header_.ClearToEmpty();
|
||||||
|
}
|
||||||
|
inline const std::string& ArrowIpc::data_header() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.region.ArrowIpc.data_header)
|
||||||
|
return _internal_data_header();
|
||||||
|
}
|
||||||
|
template <typename ArgT0, typename... ArgT>
|
||||||
|
inline PROTOBUF_ALWAYS_INLINE
|
||||||
|
void ArrowIpc::set_data_header(ArgT0&& arg0, ArgT... args) {
|
||||||
|
|
||||||
|
_impl_.data_header_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||||
|
// @@protoc_insertion_point(field_set:greptime.v1.region.ArrowIpc.data_header)
|
||||||
|
}
|
||||||
|
inline std::string* ArrowIpc::mutable_data_header() {
|
||||||
|
std::string* _s = _internal_mutable_data_header();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.region.ArrowIpc.data_header)
|
||||||
|
return _s;
|
||||||
|
}
|
||||||
|
inline const std::string& ArrowIpc::_internal_data_header() const {
|
||||||
|
return _impl_.data_header_.Get();
|
||||||
|
}
|
||||||
|
inline void ArrowIpc::_internal_set_data_header(const std::string& value) {
|
||||||
|
|
||||||
|
_impl_.data_header_.Set(value, GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* ArrowIpc::_internal_mutable_data_header() {
|
||||||
|
|
||||||
|
return _impl_.data_header_.Mutable(GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* ArrowIpc::release_data_header() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.region.ArrowIpc.data_header)
|
||||||
|
return _impl_.data_header_.Release();
|
||||||
|
}
|
||||||
|
inline void ArrowIpc::set_allocated_data_header(std::string* data_header) {
|
||||||
|
if (data_header != nullptr) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
_impl_.data_header_.SetAllocated(data_header, GetArenaForAllocation());
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
if (_impl_.data_header_.IsDefault()) {
|
||||||
|
_impl_.data_header_.Set("", GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.ArrowIpc.data_header)
|
||||||
|
}
|
||||||
|
|
||||||
|
// bytes payload = 4;
|
||||||
inline void ArrowIpc::clear_payload() {
|
inline void ArrowIpc::clear_payload() {
|
||||||
_impl_.payload_.ClearToEmpty();
|
_impl_.payload_.ClearToEmpty();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26572,7 +26572,13 @@ java.lang.String defaultValue);
|
|||||||
com.google.protobuf.ByteString getSchema();
|
com.google.protobuf.ByteString getSchema();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <code>bytes payload = 3;</code>
|
* <code>bytes data_header = 3;</code>
|
||||||
|
* @return The dataHeader.
|
||||||
|
*/
|
||||||
|
com.google.protobuf.ByteString getDataHeader();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <code>bytes payload = 4;</code>
|
||||||
* @return The payload.
|
* @return The payload.
|
||||||
*/
|
*/
|
||||||
com.google.protobuf.ByteString getPayload();
|
com.google.protobuf.ByteString getPayload();
|
||||||
@@ -26591,6 +26597,7 @@ java.lang.String defaultValue);
|
|||||||
}
|
}
|
||||||
private ArrowIpc() {
|
private ArrowIpc() {
|
||||||
schema_ = com.google.protobuf.ByteString.EMPTY;
|
schema_ = com.google.protobuf.ByteString.EMPTY;
|
||||||
|
dataHeader_ = com.google.protobuf.ByteString.EMPTY;
|
||||||
payload_ = com.google.protobuf.ByteString.EMPTY;
|
payload_ = com.google.protobuf.ByteString.EMPTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26636,6 +26643,11 @@ java.lang.String defaultValue);
|
|||||||
}
|
}
|
||||||
case 26: {
|
case 26: {
|
||||||
|
|
||||||
|
dataHeader_ = input.readBytes();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 34: {
|
||||||
|
|
||||||
payload_ = input.readBytes();
|
payload_ = input.readBytes();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -26695,10 +26707,21 @@ java.lang.String defaultValue);
|
|||||||
return schema_;
|
return schema_;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final int PAYLOAD_FIELD_NUMBER = 3;
|
public static final int DATA_HEADER_FIELD_NUMBER = 3;
|
||||||
|
private com.google.protobuf.ByteString dataHeader_;
|
||||||
|
/**
|
||||||
|
* <code>bytes data_header = 3;</code>
|
||||||
|
* @return The dataHeader.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public com.google.protobuf.ByteString getDataHeader() {
|
||||||
|
return dataHeader_;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final int PAYLOAD_FIELD_NUMBER = 4;
|
||||||
private com.google.protobuf.ByteString payload_;
|
private com.google.protobuf.ByteString payload_;
|
||||||
/**
|
/**
|
||||||
* <code>bytes payload = 3;</code>
|
* <code>bytes payload = 4;</code>
|
||||||
* @return The payload.
|
* @return The payload.
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
@@ -26726,8 +26749,11 @@ java.lang.String defaultValue);
|
|||||||
if (!schema_.isEmpty()) {
|
if (!schema_.isEmpty()) {
|
||||||
output.writeBytes(2, schema_);
|
output.writeBytes(2, schema_);
|
||||||
}
|
}
|
||||||
|
if (!dataHeader_.isEmpty()) {
|
||||||
|
output.writeBytes(3, dataHeader_);
|
||||||
|
}
|
||||||
if (!payload_.isEmpty()) {
|
if (!payload_.isEmpty()) {
|
||||||
output.writeBytes(3, payload_);
|
output.writeBytes(4, payload_);
|
||||||
}
|
}
|
||||||
unknownFields.writeTo(output);
|
unknownFields.writeTo(output);
|
||||||
}
|
}
|
||||||
@@ -26746,9 +26772,13 @@ java.lang.String defaultValue);
|
|||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeBytesSize(2, schema_);
|
.computeBytesSize(2, schema_);
|
||||||
}
|
}
|
||||||
|
if (!dataHeader_.isEmpty()) {
|
||||||
|
size += com.google.protobuf.CodedOutputStream
|
||||||
|
.computeBytesSize(3, dataHeader_);
|
||||||
|
}
|
||||||
if (!payload_.isEmpty()) {
|
if (!payload_.isEmpty()) {
|
||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeBytesSize(3, payload_);
|
.computeBytesSize(4, payload_);
|
||||||
}
|
}
|
||||||
size += unknownFields.getSerializedSize();
|
size += unknownFields.getSerializedSize();
|
||||||
memoizedSize = size;
|
memoizedSize = size;
|
||||||
@@ -26769,6 +26799,8 @@ java.lang.String defaultValue);
|
|||||||
!= other.getRegionId()) return false;
|
!= other.getRegionId()) return false;
|
||||||
if (!getSchema()
|
if (!getSchema()
|
||||||
.equals(other.getSchema())) return false;
|
.equals(other.getSchema())) return false;
|
||||||
|
if (!getDataHeader()
|
||||||
|
.equals(other.getDataHeader())) return false;
|
||||||
if (!getPayload()
|
if (!getPayload()
|
||||||
.equals(other.getPayload())) return false;
|
.equals(other.getPayload())) return false;
|
||||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||||
@@ -26787,6 +26819,8 @@ java.lang.String defaultValue);
|
|||||||
getRegionId());
|
getRegionId());
|
||||||
hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
|
hash = (37 * hash) + SCHEMA_FIELD_NUMBER;
|
||||||
hash = (53 * hash) + getSchema().hashCode();
|
hash = (53 * hash) + getSchema().hashCode();
|
||||||
|
hash = (37 * hash) + DATA_HEADER_FIELD_NUMBER;
|
||||||
|
hash = (53 * hash) + getDataHeader().hashCode();
|
||||||
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
|
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
|
||||||
hash = (53 * hash) + getPayload().hashCode();
|
hash = (53 * hash) + getPayload().hashCode();
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
hash = (29 * hash) + unknownFields.hashCode();
|
||||||
@@ -26926,6 +26960,8 @@ java.lang.String defaultValue);
|
|||||||
|
|
||||||
schema_ = com.google.protobuf.ByteString.EMPTY;
|
schema_ = com.google.protobuf.ByteString.EMPTY;
|
||||||
|
|
||||||
|
dataHeader_ = com.google.protobuf.ByteString.EMPTY;
|
||||||
|
|
||||||
payload_ = com.google.protobuf.ByteString.EMPTY;
|
payload_ = com.google.protobuf.ByteString.EMPTY;
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -26956,6 +26992,7 @@ java.lang.String defaultValue);
|
|||||||
io.greptime.v1.region.Server.ArrowIpc result = new io.greptime.v1.region.Server.ArrowIpc(this);
|
io.greptime.v1.region.Server.ArrowIpc result = new io.greptime.v1.region.Server.ArrowIpc(this);
|
||||||
result.regionId_ = regionId_;
|
result.regionId_ = regionId_;
|
||||||
result.schema_ = schema_;
|
result.schema_ = schema_;
|
||||||
|
result.dataHeader_ = dataHeader_;
|
||||||
result.payload_ = payload_;
|
result.payload_ = payload_;
|
||||||
onBuilt();
|
onBuilt();
|
||||||
return result;
|
return result;
|
||||||
@@ -27011,6 +27048,9 @@ java.lang.String defaultValue);
|
|||||||
if (other.getSchema() != com.google.protobuf.ByteString.EMPTY) {
|
if (other.getSchema() != com.google.protobuf.ByteString.EMPTY) {
|
||||||
setSchema(other.getSchema());
|
setSchema(other.getSchema());
|
||||||
}
|
}
|
||||||
|
if (other.getDataHeader() != com.google.protobuf.ByteString.EMPTY) {
|
||||||
|
setDataHeader(other.getDataHeader());
|
||||||
|
}
|
||||||
if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) {
|
if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) {
|
||||||
setPayload(other.getPayload());
|
setPayload(other.getPayload());
|
||||||
}
|
}
|
||||||
@@ -27108,9 +27148,43 @@ java.lang.String defaultValue);
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private com.google.protobuf.ByteString dataHeader_ = com.google.protobuf.ByteString.EMPTY;
|
||||||
|
/**
|
||||||
|
* <code>bytes data_header = 3;</code>
|
||||||
|
* @return The dataHeader.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public com.google.protobuf.ByteString getDataHeader() {
|
||||||
|
return dataHeader_;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>bytes data_header = 3;</code>
|
||||||
|
* @param value The dataHeader to set.
|
||||||
|
* @return This builder for chaining.
|
||||||
|
*/
|
||||||
|
public Builder setDataHeader(com.google.protobuf.ByteString value) {
|
||||||
|
if (value == null) {
|
||||||
|
throw new NullPointerException();
|
||||||
|
}
|
||||||
|
|
||||||
|
dataHeader_ = value;
|
||||||
|
onChanged();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>bytes data_header = 3;</code>
|
||||||
|
* @return This builder for chaining.
|
||||||
|
*/
|
||||||
|
public Builder clearDataHeader() {
|
||||||
|
|
||||||
|
dataHeader_ = getDefaultInstance().getDataHeader();
|
||||||
|
onChanged();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
|
private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY;
|
||||||
/**
|
/**
|
||||||
* <code>bytes payload = 3;</code>
|
* <code>bytes payload = 4;</code>
|
||||||
* @return The payload.
|
* @return The payload.
|
||||||
*/
|
*/
|
||||||
@java.lang.Override
|
@java.lang.Override
|
||||||
@@ -27118,7 +27192,7 @@ java.lang.String defaultValue);
|
|||||||
return payload_;
|
return payload_;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>bytes payload = 3;</code>
|
* <code>bytes payload = 4;</code>
|
||||||
* @param value The payload to set.
|
* @param value The payload to set.
|
||||||
* @return This builder for chaining.
|
* @return This builder for chaining.
|
||||||
*/
|
*/
|
||||||
@@ -27132,7 +27206,7 @@ java.lang.String defaultValue);
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* <code>bytes payload = 3;</code>
|
* <code>bytes payload = 4;</code>
|
||||||
* @return This builder for chaining.
|
* @return This builder for chaining.
|
||||||
*/
|
*/
|
||||||
public Builder clearPayload() {
|
public Builder clearPayload() {
|
||||||
@@ -29570,22 +29644,22 @@ java.lang.String defaultValue);
|
|||||||
"\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum" +
|
"\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" +
|
"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" +
|
"uest\0221\n\tarrow_ipc\030\001 \001(\0132\034.greptime.v1.re" +
|
||||||
"gion.ArrowIpcH\000B\006\n\004body\">\n\010ArrowIpc\022\021\n\tr" +
|
"gion.ArrowIpcH\000B\006\n\004body\"S\n\010ArrowIpc\022\021\n\tr" +
|
||||||
"egion_id\030\001 \001(\004\022\016\n\006schema\030\002 \001(\014\022\017\n\007payloa" +
|
"egion_id\030\001 \001(\004\022\016\n\006schema\030\002 \001(\014\022\023\n\013data_h" +
|
||||||
"d\030\003 \001(\014\"1\n\020MitoManifestInfo\022\035\n\025data_mani" +
|
"eader\030\003 \001(\014\022\017\n\007payload\030\004 \001(\014\"1\n\020MitoMani" +
|
||||||
"fest_version\030\001 \001(\004\"V\n\022MetricManifestInfo" +
|
"festInfo\022\035\n\025data_manifest_version\030\001 \001(\004\"" +
|
||||||
"\022\035\n\025data_manifest_version\030\001 \001(\004\022!\n\031metad" +
|
"V\n\022MetricManifestInfo\022\035\n\025data_manifest_v" +
|
||||||
"ata_manifest_version\030\002 \001(\004\"\275\001\n\013SyncReque" +
|
"ersion\030\001 \001(\004\022!\n\031metadata_manifest_versio" +
|
||||||
"st\022\021\n\tregion_id\030\001 \001(\004\022B\n\022mito_manifest_i" +
|
"n\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregion_id\030\001 \001" +
|
||||||
"nfo\030\002 \001(\0132$.greptime.v1.region.MitoManif" +
|
"(\004\022B\n\022mito_manifest_info\030\002 \001(\0132$.greptim" +
|
||||||
"estInfoH\000\022F\n\024metric_manifest_info\030\003 \001(\0132" +
|
"e.v1.region.MitoManifestInfoH\000\022F\n\024metric" +
|
||||||
"&.greptime.v1.region.MetricManifestInfoH" +
|
"_manifest_info\030\003 \001(\0132&.greptime.v1.regio" +
|
||||||
"\000B\017\n\rmanifest_info2Y\n\006Region\022O\n\006Handle\022!" +
|
"n.MetricManifestInfoH\000B\017\n\rmanifest_info2" +
|
||||||
".greptime.v1.region.RegionRequest\032\".grep" +
|
"Y\n\006Region\022O\n\006Handle\022!.greptime.v1.region" +
|
||||||
"time.v1.region.RegionResponseB]\n\025io.grep" +
|
".RegionRequest\032\".greptime.v1.region.Regi" +
|
||||||
"time.v1.regionB\006ServerZ<github.com/Grept" +
|
"onResponseB]\n\025io.greptime.v1.regionB\006Ser" +
|
||||||
"imeTeam/greptime-proto/go/greptime/v1/re" +
|
"verZ<github.com/GreptimeTeam/greptime-pr" +
|
||||||
"gionb\006proto3"
|
"oto/go/greptime/v1/regionb\006proto3"
|
||||||
};
|
};
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
.internalBuildGeneratedFileFrom(descriptorData,
|
||||||
@@ -29785,7 +29859,7 @@ java.lang.String defaultValue);
|
|||||||
internal_static_greptime_v1_region_ArrowIpc_fieldAccessorTable = new
|
internal_static_greptime_v1_region_ArrowIpc_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_region_ArrowIpc_descriptor,
|
internal_static_greptime_v1_region_ArrowIpc_descriptor,
|
||||||
new java.lang.String[] { "RegionId", "Schema", "Payload", });
|
new java.lang.String[] { "RegionId", "Schema", "DataHeader", "Payload", });
|
||||||
internal_static_greptime_v1_region_MitoManifestInfo_descriptor =
|
internal_static_greptime_v1_region_MitoManifestInfo_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(28);
|
getDescriptor().getMessageTypes().get(28);
|
||||||
internal_static_greptime_v1_region_MitoManifestInfo_fieldAccessorTable = new
|
internal_static_greptime_v1_region_MitoManifestInfo_fieldAccessorTable = new
|
||||||
|
|||||||
@@ -195,7 +195,8 @@ message BulkInsertRequest {
|
|||||||
message ArrowIpc {
|
message ArrowIpc {
|
||||||
uint64 region_id = 1;
|
uint64 region_id = 1;
|
||||||
bytes schema = 2;
|
bytes schema = 2;
|
||||||
bytes payload = 3;
|
bytes data_header = 3;
|
||||||
|
bytes payload = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Manifest info for mito engine.
|
// Manifest info for mito engine.
|
||||||
|
|||||||
Reference in New Issue
Block a user