feat: adds MergeScan plan node (#172)

* feat: adds dist_plan to substrait_extension

* feat: adds table_names to CreateViewExpr

* chore: style

Co-authored-by: Jeremyhi <jiachun_feng@proton.me>

* fix: update genearted code

---------

Co-authored-by: Jeremyhi <jiachun_feng@proton.me>
This commit is contained in:
dennis zhuang
2024-05-30 20:09:22 -07:00
committed by GitHub
parent 31dd060fc3
commit 21ed40d4a1
13 changed files with 2420 additions and 372 deletions
@@ -0,0 +1,25 @@
// Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: substrait_extension/dist_plan.proto
#include "substrait_extension/dist_plan.pb.h"
#include "substrait_extension/dist_plan.grpc.pb.h"
#include <functional>
#include <grpcpp/support/async_stream.h>
#include <grpcpp/support/async_unary_call.h>
#include <grpcpp/impl/channel_interface.h>
#include <grpcpp/impl/client_unary_call.h>
#include <grpcpp/support/client_callback.h>
#include <grpcpp/support/message_allocator.h>
#include <grpcpp/support/method_handler.h>
#include <grpcpp/impl/rpc_service_method.h>
#include <grpcpp/support/server_callback.h>
#include <grpcpp/impl/codegen/server_callback_handlers.h>
#include <grpcpp/server_context.h>
#include <grpcpp/impl/service_type.h>
#include <grpcpp/support/sync_stream.h>
namespace substrait_extension {
} // namespace substrait_extension
@@ -0,0 +1,48 @@
// Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: substrait_extension/dist_plan.proto
// Original file comments:
// Copyright 2023 Greptime Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#ifndef GRPC_substrait_5fextension_2fdist_5fplan_2eproto__INCLUDED
#define GRPC_substrait_5fextension_2fdist_5fplan_2eproto__INCLUDED
#include "substrait_extension/dist_plan.pb.h"
#include <functional>
#include <grpcpp/generic/async_generic_service.h>
#include <grpcpp/support/async_stream.h>
#include <grpcpp/support/async_unary_call.h>
#include <grpcpp/support/client_callback.h>
#include <grpcpp/client_context.h>
#include <grpcpp/completion_queue.h>
#include <grpcpp/support/message_allocator.h>
#include <grpcpp/support/method_handler.h>
#include <grpcpp/impl/codegen/proto_utils.h>
#include <grpcpp/impl/rpc_method.h>
#include <grpcpp/support/server_callback.h>
#include <grpcpp/impl/codegen/server_callback_handlers.h>
#include <grpcpp/server_context.h>
#include <grpcpp/impl/service_type.h>
#include <grpcpp/impl/codegen/status.h>
#include <grpcpp/support/stub_options.h>
#include <grpcpp/support/sync_stream.h>
namespace substrait_extension {
} // namespace substrait_extension
#endif // GRPC_substrait_5fextension_2fdist_5fplan_2eproto__INCLUDED
+320
View File
@@ -0,0 +1,320 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: substrait_extension/dist_plan.proto
#include "substrait_extension/dist_plan.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;
namespace substrait_extension {
PROTOBUF_CONSTEXPR MergeScan::MergeScan(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.input_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.is_placeholder_)*/false
, /*decltype(_impl_._cached_size_)*/{}} {}
struct MergeScanDefaultTypeInternal {
PROTOBUF_CONSTEXPR MergeScanDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~MergeScanDefaultTypeInternal() {}
union {
MergeScan _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MergeScanDefaultTypeInternal _MergeScan_default_instance_;
} // namespace substrait_extension
static ::_pb::Metadata file_level_metadata_substrait_5fextension_2fdist_5fplan_2eproto[1];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_substrait_5fextension_2fdist_5fplan_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_substrait_5fextension_2fdist_5fplan_2eproto = nullptr;
const uint32_t TableStruct_substrait_5fextension_2fdist_5fplan_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::substrait_extension::MergeScan, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::substrait_extension::MergeScan, _impl_.input_),
PROTOBUF_FIELD_OFFSET(::substrait_extension::MergeScan, _impl_.is_placeholder_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::substrait_extension::MergeScan)},
};
static const ::_pb::Message* const file_default_instances[] = {
&::substrait_extension::_MergeScan_default_instance_._instance,
};
const char descriptor_table_protodef_substrait_5fextension_2fdist_5fplan_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n#substrait_extension/dist_plan.proto\022\023s"
"ubstrait_extension\"2\n\tMergeScan\022\r\n\005input"
"\030\001 \001(\014\022\026\n\016is_placeholder\030\002 \001(\010B\?Z=github"
".com/GreptimeTeam/greptime-proto/go/subs"
"trait_extensionb\006proto3"
;
static ::_pbi::once_flag descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto = {
false, false, 183, descriptor_table_protodef_substrait_5fextension_2fdist_5fplan_2eproto,
"substrait_extension/dist_plan.proto",
&descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto_once, nullptr, 0, 1,
schemas, file_default_instances, TableStruct_substrait_5fextension_2fdist_5fplan_2eproto::offsets,
file_level_metadata_substrait_5fextension_2fdist_5fplan_2eproto, file_level_enum_descriptors_substrait_5fextension_2fdist_5fplan_2eproto,
file_level_service_descriptors_substrait_5fextension_2fdist_5fplan_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto_getter() {
return &descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_substrait_5fextension_2fdist_5fplan_2eproto(&descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto);
namespace substrait_extension {
// ===================================================================
class MergeScan::_Internal {
public:
};
MergeScan::MergeScan(::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:substrait_extension.MergeScan)
}
MergeScan::MergeScan(const MergeScan& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
MergeScan* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.input_){}
, decltype(_impl_.is_placeholder_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_impl_.input_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.input_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_input().empty()) {
_this->_impl_.input_.Set(from._internal_input(),
_this->GetArenaForAllocation());
}
_this->_impl_.is_placeholder_ = from._impl_.is_placeholder_;
// @@protoc_insertion_point(copy_constructor:substrait_extension.MergeScan)
}
inline void MergeScan::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.input_){}
, decltype(_impl_.is_placeholder_){false}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.input_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
_impl_.input_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
MergeScan::~MergeScan() {
// @@protoc_insertion_point(destructor:substrait_extension.MergeScan)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void MergeScan::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.input_.Destroy();
}
void MergeScan::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void MergeScan::Clear() {
// @@protoc_insertion_point(message_clear_start:substrait_extension.MergeScan)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.input_.ClearToEmpty();
_impl_.is_placeholder_ = false;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* MergeScan::_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) {
// bytes input = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_input();
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// bool is_placeholder = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.is_placeholder_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
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* MergeScan::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:substrait_extension.MergeScan)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// bytes input = 1;
if (!this->_internal_input().empty()) {
target = stream->WriteBytesMaybeAliased(
1, this->_internal_input(), target);
}
// bool is_placeholder = 2;
if (this->_internal_is_placeholder() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_is_placeholder(), 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:substrait_extension.MergeScan)
return target;
}
size_t MergeScan::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:substrait_extension.MergeScan)
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 input = 1;
if (!this->_internal_input().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
this->_internal_input());
}
// bool is_placeholder = 2;
if (this->_internal_is_placeholder() != 0) {
total_size += 1 + 1;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MergeScan::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
MergeScan::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MergeScan::GetClassData() const { return &_class_data_; }
void MergeScan::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<MergeScan*>(&to_msg);
auto& from = static_cast<const MergeScan&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:substrait_extension.MergeScan)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (!from._internal_input().empty()) {
_this->_internal_set_input(from._internal_input());
}
if (from._internal_is_placeholder() != 0) {
_this->_internal_set_is_placeholder(from._internal_is_placeholder());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void MergeScan::CopyFrom(const MergeScan& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:substrait_extension.MergeScan)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool MergeScan::IsInitialized() const {
return true;
}
void MergeScan::InternalSwap(MergeScan* 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_.input_, lhs_arena,
&other->_impl_.input_, rhs_arena
);
swap(_impl_.is_placeholder_, other->_impl_.is_placeholder_);
}
::PROTOBUF_NAMESPACE_ID::Metadata MergeScan::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto_getter, &descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto_once,
file_level_metadata_substrait_5fextension_2fdist_5fplan_2eproto[0]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace substrait_extension
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::substrait_extension::MergeScan*
Arena::CreateMaybeMessage< ::substrait_extension::MergeScan >(Arena* arena) {
return Arena::CreateMessageInternal< ::substrait_extension::MergeScan >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
+313
View File
@@ -0,0 +1,313 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: substrait_extension/dist_plan.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_substrait_5fextension_2fdist_5fplan_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_substrait_5fextension_2fdist_5fplan_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3021006 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_substrait_5fextension_2fdist_5fplan_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_substrait_5fextension_2fdist_5fplan_2eproto {
static const uint32_t offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_substrait_5fextension_2fdist_5fplan_2eproto;
namespace substrait_extension {
class MergeScan;
struct MergeScanDefaultTypeInternal;
extern MergeScanDefaultTypeInternal _MergeScan_default_instance_;
} // namespace substrait_extension
PROTOBUF_NAMESPACE_OPEN
template<> ::substrait_extension::MergeScan* Arena::CreateMaybeMessage<::substrait_extension::MergeScan>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace substrait_extension {
// ===================================================================
class MergeScan final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:substrait_extension.MergeScan) */ {
public:
inline MergeScan() : MergeScan(nullptr) {}
~MergeScan() override;
explicit PROTOBUF_CONSTEXPR MergeScan(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
MergeScan(const MergeScan& from);
MergeScan(MergeScan&& from) noexcept
: MergeScan() {
*this = ::std::move(from);
}
inline MergeScan& operator=(const MergeScan& from) {
CopyFrom(from);
return *this;
}
inline MergeScan& operator=(MergeScan&& 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 MergeScan& default_instance() {
return *internal_default_instance();
}
static inline const MergeScan* internal_default_instance() {
return reinterpret_cast<const MergeScan*>(
&_MergeScan_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(MergeScan& a, MergeScan& b) {
a.Swap(&b);
}
inline void Swap(MergeScan* 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(MergeScan* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
MergeScan* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<MergeScan>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const MergeScan& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const MergeScan& from) {
MergeScan::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(MergeScan* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "substrait_extension.MergeScan";
}
protected:
explicit MergeScan(::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 {
kInputFieldNumber = 1,
kIsPlaceholderFieldNumber = 2,
};
// bytes input = 1;
void clear_input();
const std::string& input() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_input(ArgT0&& arg0, ArgT... args);
std::string* mutable_input();
PROTOBUF_NODISCARD std::string* release_input();
void set_allocated_input(std::string* input);
private:
const std::string& _internal_input() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_input(const std::string& value);
std::string* _internal_mutable_input();
public:
// bool is_placeholder = 2;
void clear_is_placeholder();
bool is_placeholder() const;
void set_is_placeholder(bool value);
private:
bool _internal_is_placeholder() const;
void _internal_set_is_placeholder(bool value);
public:
// @@protoc_insertion_point(class_scope:substrait_extension.MergeScan)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr input_;
bool is_placeholder_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_substrait_5fextension_2fdist_5fplan_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// MergeScan
// bytes input = 1;
inline void MergeScan::clear_input() {
_impl_.input_.ClearToEmpty();
}
inline const std::string& MergeScan::input() const {
// @@protoc_insertion_point(field_get:substrait_extension.MergeScan.input)
return _internal_input();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void MergeScan::set_input(ArgT0&& arg0, ArgT... args) {
_impl_.input_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:substrait_extension.MergeScan.input)
}
inline std::string* MergeScan::mutable_input() {
std::string* _s = _internal_mutable_input();
// @@protoc_insertion_point(field_mutable:substrait_extension.MergeScan.input)
return _s;
}
inline const std::string& MergeScan::_internal_input() const {
return _impl_.input_.Get();
}
inline void MergeScan::_internal_set_input(const std::string& value) {
_impl_.input_.Set(value, GetArenaForAllocation());
}
inline std::string* MergeScan::_internal_mutable_input() {
return _impl_.input_.Mutable(GetArenaForAllocation());
}
inline std::string* MergeScan::release_input() {
// @@protoc_insertion_point(field_release:substrait_extension.MergeScan.input)
return _impl_.input_.Release();
}
inline void MergeScan::set_allocated_input(std::string* input) {
if (input != nullptr) {
} else {
}
_impl_.input_.SetAllocated(input, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.input_.IsDefault()) {
_impl_.input_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:substrait_extension.MergeScan.input)
}
// bool is_placeholder = 2;
inline void MergeScan::clear_is_placeholder() {
_impl_.is_placeholder_ = false;
}
inline bool MergeScan::_internal_is_placeholder() const {
return _impl_.is_placeholder_;
}
inline bool MergeScan::is_placeholder() const {
// @@protoc_insertion_point(field_get:substrait_extension.MergeScan.is_placeholder)
return _internal_is_placeholder();
}
inline void MergeScan::_internal_set_is_placeholder(bool value) {
_impl_.is_placeholder_ = value;
}
inline void MergeScan::set_is_placeholder(bool value) {
_internal_set_is_placeholder(value);
// @@protoc_insertion_point(field_set:substrait_extension.MergeScan.is_placeholder)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace substrait_extension
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_substrait_5fextension_2fdist_5fplan_2eproto