Class Parser::CopyTableStmt

class CopyTableStmt : public Parser::DDLStmt

Public Functions

CopyTableStmt(std::string *t, std::string *f, std::list<NameValueAssign *> *o)
CopyTableStmt(const rapidjson::Value &payload)
void execute(const Catalog_Namespace::SessionInfo &session)
void execute(const Catalog_Namespace::SessionInfo &session, const std::function<std::unique_ptr<import_export::AbstractImporter>(Catalog_Namespace::Catalog&, const TableDescriptor *, const std::string&, const import_export::CopyParams&)> &importer_factory)
std::string &get_table() const
bool get_success() const
bool was_deferred_copy_from() const
void get_deferred_copy_from_payload(std::string &table, std::string &file_name, import_export::CopyParams &copy_params, std::string &partitions)

Public Members

std::unique_ptr<std::string> return_message

Private Members

std::unique_ptr<std::string> table_
std::unique_ptr<std::string> copy_from_source_pattern_
bool success_
std::list<std::unique_ptr<NameValueAssign>> options_
bool was_deferred_copy_from_ = false
std::string deferred_copy_from_file_name_
import_export::CopyParams deferred_copy_from_copy_params_
std::string deferred_copy_from_partitions_