OmniSciDB
a5dc49c757
|
#include <ParserNode.h>
Public Member Functions | |
CopyTableStmt (std::string *t, std::string *f, std::list< NameValueAssign * > *o) | |
CopyTableStmt (const rapidjson::Value &payload) | |
void | execute (const Catalog_Namespace::SessionInfo &session, bool read_only_mode) override |
void | execute (const Catalog_Namespace::SessionInfo &session, bool read_only_mode, 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 ©_params, std::string &partitions) |
Public Member Functions inherited from Parser::DDLStmt | |
void | setColumnDescriptor (ColumnDescriptor &cd, const ColumnDef *coldef) |
Public Member Functions inherited from Parser::Node | |
virtual | ~Node () |
Public Attributes | |
std::unique_ptr< std::string > | return_message |
Private Attributes | |
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_ |
Definition at line 1460 of file ParserNode.h.
Parser::CopyTableStmt::CopyTableStmt | ( | std::string * | t, |
std::string * | f, | ||
std::list< NameValueAssign * > * | o | ||
) |
Definition at line 5720 of file ParserNode.cpp.
References options_.
Parser::CopyTableStmt::CopyTableStmt | ( | const rapidjson::Value & | payload | ) |
Definition at line 5732 of file ParserNode.cpp.
References CHECK, copy_from_source_pattern_, json_str(), options_, Parser::anonymous_namespace{ParserNode.cpp}::parse_options(), and table_.
|
overridevirtual |
Implements Parser::DDLStmt.
Definition at line 5745 of file ParserNode.cpp.
References import_export::create_importer().
Referenced by heavydb.cursor.Cursor::executemany(), and QueryRunner::QueryRunner::runImport().
void Parser::CopyTableStmt::execute | ( | const Catalog_Namespace::SessionInfo & | session, |
bool | read_only_mode, | ||
const std::function< std::unique_ptr< import_export::AbstractImporter >(Catalog_Namespace::Catalog &, const TableDescriptor *, const std::string &, const import_export::CopyParams &)> & | importer_factory | ||
) |
Definition at line 5760 of file ParserNode.cpp.
References CHECK, Executor::clearExternalCaches(), copy_from_source_pattern_, deferred_copy_from_copy_params_, deferred_copy_from_file_name_, deferred_copy_from_partitions_, logger::ERROR, measure< TimeT >::execution(), g_enable_non_kernel_time_query_interrupt, Catalog_Namespace::SessionInfo::get_currentUser(), Catalog_Namespace::SessionInfo::get_session_id(), Catalog_Namespace::SessionInfo::getCatalog(), legacylockmgr::getExecuteReadLock(), Executor::getExecutor(), lockmgr::TableLockMgrImpl< T >::getWriteLockForTable(), ddl_utils::IMPORT, logger::INFO, AccessPrivileges::INSERT_INTO_TABLE, lockmgr::instance(), import_export::kGeoFile, import_export::kOdbc, import_export::kRasterFile, import_export::ImportStatus::load_failed, import_export::ImportStatus::load_msg, DBObject::loadKey(), LOG, import_export::CopyParams::max_reject, options_, Parser::anonymous_namespace{ParserNode.cpp}::parse_copy_params(), return_message, import_export::ImportStatus::rows_completed, import_export::ImportStatus::rows_rejected, DBObject::setPrivileges(), import_export::CopyParams::source_type, import_export::CopyParams::sql_order_by, import_export::CopyParams::sql_select, run_benchmark_import::start_time, success_, table_, TableDBObjectType, TableDescriptor::tableName, to_string(), toString(), Executor::UNITARY_EXECUTOR_ID, Catalog_Namespace::UserMetadata::userLoggable(), ddl_utils::validate_allowed_file_path(), and was_deferred_copy_from_.
Referenced by heavydb.cursor.Cursor::executemany().
|
inline |
Definition at line 1485 of file ParserNode.h.
References deferred_copy_from_copy_params_, deferred_copy_from_file_name_, deferred_copy_from_partitions_, table_, and was_deferred_copy_from_.
|
inline |
|
inline |
Definition at line 1476 of file ParserNode.h.
|
inline |
Definition at line 1483 of file ParserNode.h.
References was_deferred_copy_from_.
|
private |
Definition at line 1498 of file ParserNode.h.
Referenced by CopyTableStmt(), and execute().
|
private |
Definition at line 1504 of file ParserNode.h.
Referenced by execute(), and get_deferred_copy_from_payload().
|
private |
Definition at line 1503 of file ParserNode.h.
Referenced by execute(), and get_deferred_copy_from_payload().
|
private |
Definition at line 1505 of file ParserNode.h.
Referenced by execute(), and get_deferred_copy_from_payload().
|
private |
Definition at line 1500 of file ParserNode.h.
Referenced by CopyTableStmt(), and execute().
std::unique_ptr<std::string> Parser::CopyTableStmt::return_message |
Definition at line 1474 of file ParserNode.h.
Referenced by execute().
|
private |
Definition at line 1499 of file ParserNode.h.
Referenced by execute(), and get_success().
|
private |
Definition at line 1497 of file ParserNode.h.
Referenced by CopyTableStmt(), execute(), get_deferred_copy_from_payload(), and get_table().
|
private |
Definition at line 1502 of file ParserNode.h.
Referenced by execute(), get_deferred_copy_from_payload(), and was_deferred_copy_from().