OmniSciDB
a5dc49c757
|
#include <ParserNode.h>
Public Types | |
enum | CompressionType { CompressionType::kGZIP, CompressionType::kLZ4, CompressionType::kNONE } |
Public Member Functions | |
DumpRestoreTableStmtBase (const rapidjson::Value &payload, const bool is_restore) | |
CompressionType | defaultCompression (bool is_restore) |
CompressionType | validateCompression (const std::string &compression, const bool is_restore) |
std::string | tarCompressionStr (CompressionType compression, const bool is_restore) |
const std::string * | getTable () const |
const std::string * | getPath () const |
const CompressionType | getCompression () const |
Public Member Functions inherited from Parser::DDLStmt | |
virtual void | execute (const Catalog_Namespace::SessionInfo &session, bool read_only_mode)=0 |
void | setColumnDescriptor (ColumnDescriptor &cd, const ColumnDef *coldef) |
Public Member Functions inherited from Parser::Node | |
virtual | ~Node () |
Protected Attributes | |
std::unique_ptr< std::string > | table_ |
std::unique_ptr< std::string > | path_ |
CompressionType | compression_ |
TableArchiverS3Options | s3_options_ |
Definition at line 1411 of file ParserNode.h.
Enumerator | |
---|---|
kGZIP | |
kLZ4 | |
kNONE |
Definition at line 1415 of file ParserNode.h.
Parser::DumpRestoreTableStmtBase::DumpRestoreTableStmtBase | ( | const rapidjson::Value & | payload, |
const bool | is_restore | ||
) |
Definition at line 7101 of file ParserNode.cpp.
References CHECK, compression_, defaultCompression(), Parser::anonymous_namespace{ParserNode.cpp}::get_string_option(), json_str(), Parser::anonymous_namespace{ParserNode.cpp}::parse_options(), path_, TableArchiverS3Options::s3_access_key, TableArchiverS3Options::s3_endpoint, s3_options_, TableArchiverS3Options::s3_region, TableArchiverS3Options::s3_secret_key, TableArchiverS3Options::s3_session_token, table_, and validateCompression().
DumpRestoreTableStmtBase::CompressionType Parser::DumpRestoreTableStmtBase::defaultCompression | ( | bool | is_restore | ) |
Definition at line 7152 of file ParserNode.cpp.
References kGZIP, kLZ4, kNONE, Parser::Compress::sGZIP, Parser::Compress::sLZ4, Parser::Compress::sUNGZIP, and Parser::Compress::sUNLZ4.
Referenced by DumpRestoreTableStmtBase().
|
inline |
Definition at line 1429 of file ParserNode.h.
References compression_.
|
inline |
Definition at line 1428 of file ParserNode.h.
References path_.
|
inline |
Definition at line 1427 of file ParserNode.h.
References table_.
std::string Parser::DumpRestoreTableStmtBase::tarCompressionStr | ( | CompressionType | compression, |
const bool | is_restore | ||
) |
Definition at line 7197 of file ParserNode.cpp.
References kGZIP, kLZ4, Parser::Compress::sGZIP, Parser::Compress::sLZ4, Parser::Compress::sUNGZIP, and Parser::Compress::sUNLZ4.
Referenced by Parser::DumpTableStmt::execute(), and Parser::RestoreTableStmt::execute().
DumpRestoreTableStmtBase::CompressionType Parser::DumpRestoreTableStmtBase::validateCompression | ( | const std::string & | compression, |
const bool | is_restore | ||
) |
Definition at line 7166 of file ParserNode.cpp.
References kGZIP, kLZ4, kNONE, Parser::Compress::sGZIP, Parser::Compress::sLZ4, Parser::Compress::sNONE, Parser::Compress::sUNGZIP, and Parser::Compress::sUNLZ4.
Referenced by DumpRestoreTableStmtBase().
|
protected |
Definition at line 1434 of file ParserNode.h.
Referenced by DumpRestoreTableStmtBase(), Parser::DumpTableStmt::execute(), Parser::RestoreTableStmt::execute(), and getCompression().
|
protected |
Definition at line 1433 of file ParserNode.h.
Referenced by DumpRestoreTableStmtBase(), Parser::DumpTableStmt::execute(), Parser::RestoreTableStmt::execute(), and getPath().
|
protected |
Definition at line 1435 of file ParserNode.h.
Referenced by DumpRestoreTableStmtBase(), and Parser::RestoreTableStmt::execute().
|
protected |
Definition at line 1432 of file ParserNode.h.
Referenced by DumpRestoreTableStmtBase(), Parser::DumpTableStmt::execute(), Parser::RestoreTableStmt::execute(), and getTable().