CUBRID Engine
latest
|
#include <load_common.hpp>
Public Member Functions | |
load_args () | |
void | pack (cubpacking::packer &serializator) const override |
void | unpack (cubpacking::unpacker &deserializator) override |
size_t | get_packed_size (cubpacking::packer &serializator, std::size_t start_offset) const override |
int | parse_ignore_class_file () |
Public Member Functions inherited from cubpacking::packable_object | |
virtual | ~packable_object () |
virtual bool | is_equal (const packable_object *other) |
Public Attributes | |
std::string | volume |
std::string | input_file |
std::string | user_name |
std::string | password |
bool | syntax_check |
bool | load_only |
int | estimated_size |
bool | verbose |
bool | disable_statistics |
int | periodic_commit |
bool | verbose_commit |
bool | no_oid_hint |
std::string | schema_file |
std::string | index_file |
std::string | trigger_file |
std::string | object_file |
std::string | error_file |
bool | ignore_logging |
bool | compare_storage_order |
std::string | table_name |
std::string | ignore_class_file |
std::vector< std::string > | ignore_classes |
std::vector< int > | m_ignored_errors |
Static Public Attributes | |
static const int | PERIODIC_COMMIT_DEFAULT_VALUE = 10240 |
Definition at line 83 of file load_common.hpp.
load_args::load_args | ( | ) |
Definition at line 165 of file load_common.cpp.
|
overridevirtual |
Implements cubpacking::packable_object.
Definition at line 273 of file load_common.cpp.
References error_file, cubpacking::packer::get_packed_bigint_size(), cubpacking::packer::get_packed_bool_size(), cubpacking::packer::get_packed_int_size(), cubpacking::packer::get_packed_string_size(), i, ignore_class_file, ignore_classes, index_file, input_file, m_ignored_errors, object_file, password, schema_file, table_name, user_name, and volume.
|
overridevirtual |
Implements cubpacking::packable_object.
Definition at line 193 of file load_common.cpp.
References compare_storage_order, disable_statistics, error(), error_file, estimated_size, ignore_class_file, ignore_classes, ignore_logging, index_file, input_file, load_only, m_ignored_errors, no_oid_hint, object_file, cubpacking::packer::pack_bigint(), cubpacking::packer::pack_bool(), cubpacking::packer::pack_int(), cubpacking::packer::pack_string(), password, periodic_commit, schema_file, syntax_check, table_name, user_name, verbose, verbose_commit, and volume.
int load_args::parse_ignore_class_file | ( | ) |
Definition at line 312 of file load_common.cpp.
References assert, DB_MAX_IDENTIFIER_LENGTH, ER_FAILED, ER_FILE_UNKNOWN_FILE, ignore_class_file, ignore_classes, intl_identifier_lower(), intl_identifier_lower_string_size(), NO_ERROR, and cubload::rtrim().
Referenced by loaddb_internal().
|
overridevirtual |
Implements cubpacking::packable_object.
Definition at line 229 of file load_common.cpp.
References compare_storage_order, disable_statistics, error_file, estimated_size, i, ignore_class_file, ignore_classes, ignore_logging, index_file, input_file, load_only, m_ignored_errors, no_oid_hint, object_file, password, periodic_commit, schema_file, syntax_check, table_name, cubpacking::unpacker::unpack_bigint(), cubpacking::unpacker::unpack_bool(), cubpacking::unpacker::unpack_int(), cubpacking::unpacker::unpack_string(), user_name, verbose, verbose_commit, and volume.
Referenced by sloaddb_init().
bool cubload::load_args::compare_storage_order |
Definition at line 111 of file load_common.hpp.
Referenced by get_loaddb_args(), loaddb_internal(), pack(), and unpack().
bool cubload::load_args::disable_statistics |
Definition at line 101 of file load_common.hpp.
Referenced by get_loaddb_args(), ldr_sa_load(), pack(), unpack(), and cubload::session::update_class_statistics().
std::string cubload::load_args::error_file |
Definition at line 109 of file load_common.hpp.
Referenced by get_loaddb_args(), get_packed_size(), loaddb_internal(), pack(), and unpack().
int cubload::load_args::estimated_size |
Definition at line 99 of file load_common.hpp.
Referenced by get_loaddb_args(), pack(), and unpack().
std::string cubload::load_args::ignore_class_file |
Definition at line 113 of file load_common.hpp.
Referenced by get_loaddb_args(), get_packed_size(), loaddb_internal(), pack(), parse_ignore_class_file(), and unpack().
std::vector<std::string> cubload::load_args::ignore_classes |
Definition at line 114 of file load_common.hpp.
Referenced by get_packed_size(), cubload::server_class_installer::is_class_ignored(), ldr_is_ignore_class(), pack(), parse_ignore_class_file(), and unpack().
bool cubload::load_args::ignore_logging |
Definition at line 110 of file load_common.hpp.
Referenced by get_loaddb_args(), ldr_sa_load(), loaddb_internal(), pack(), and unpack().
std::string cubload::load_args::index_file |
Definition at line 106 of file load_common.hpp.
Referenced by get_loaddb_args(), get_packed_size(), ldr_validate_object_file(), loaddb_internal(), pack(), and unpack().
std::string cubload::load_args::input_file |
Definition at line 94 of file load_common.hpp.
Referenced by get_loaddb_args(), get_packed_size(), ldr_validate_object_file(), pack(), and unpack().
bool cubload::load_args::load_only |
Definition at line 98 of file load_common.hpp.
Referenced by get_loaddb_args(), ldr_sa_load(), loaddb_internal(), pack(), and unpack().
std::vector<int> cubload::load_args::m_ignored_errors |
Definition at line 115 of file load_common.hpp.
Referenced by cubload::server_object_loader::flush_records(), get_packed_size(), loaddb_internal(), pack(), and unpack().
bool cubload::load_args::no_oid_hint |
Definition at line 104 of file load_common.hpp.
Referenced by get_loaddb_args(), insert_instance(), ldr_assign_all_perm_oids(), pack(), and unpack().
std::string cubload::load_args::object_file |
Definition at line 108 of file load_common.hpp.
Referenced by get_loaddb_args(), get_packed_size(), ldr_sa_load(), ldr_validate_object_file(), load_object_file(), loaddb_internal(), pack(), and unpack().
std::string cubload::load_args::password |
Definition at line 96 of file load_common.hpp.
Referenced by get_loaddb_args(), get_packed_size(), loaddb_internal(), pack(), and unpack().
int cubload::load_args::periodic_commit |
Definition at line 102 of file load_common.hpp.
Referenced by check_commit(), get_loaddb_args(), ldr_clear_context(), ldr_exec_query_from_file(), ldr_sa_load(), ldr_start(), load_object_file(), pack(), and unpack().
|
static |
Definition at line 116 of file load_common.hpp.
Referenced by get_loaddb_args().
std::string cubload::load_args::schema_file |
Definition at line 105 of file load_common.hpp.
Referenced by get_loaddb_args(), get_packed_size(), ldr_validate_object_file(), loaddb_internal(), pack(), and unpack().
bool cubload::load_args::syntax_check |
Definition at line 97 of file load_common.hpp.
Referenced by cubload::session::collect_stats(), cubload::load_task::execute(), cubload::server_object_loader::finish_line(), cubload::server_object_loader::flush_records(), get_loaddb_args(), ldr_sa_load(), ldr_server_load(), loaddb_internal(), pack(), print_stats(), cubload::server_object_loader::process_line(), cubload::server_class_installer::register_class_with_attributes(), unpack(), and cubload::session::update_class_statistics().
std::string cubload::load_args::table_name |
Definition at line 112 of file load_common.hpp.
Referenced by get_loaddb_args(), get_packed_size(), ldr_sa_load(), load_object_file(), pack(), cubload::session::session(), and unpack().
std::string cubload::load_args::trigger_file |
Definition at line 107 of file load_common.hpp.
Referenced by get_loaddb_args(), and loaddb_internal().
std::string cubload::load_args::user_name |
Definition at line 95 of file load_common.hpp.
Referenced by get_loaddb_args(), get_packed_size(), loaddb_internal(), pack(), and unpack().
bool cubload::load_args::verbose |
Definition at line 100 of file load_common.hpp.
Referenced by check_commit(), get_loaddb_args(), insert_instance(), insert_meth_instance(), ldr_act_init_context(), ldr_exec_query_from_file(), ldr_finish_context(), ldr_sa_load(), ldr_update_statistics(), loaddb_internal(), pack(), print_stats(), and unpack().
bool cubload::load_args::verbose_commit |
Definition at line 103 of file load_common.hpp.
Referenced by get_loaddb_args(), ldr_exec_query_from_file(), ldr_report_num_of_commits(), pack(), and unpack().
std::string cubload::load_args::volume |
Definition at line 93 of file load_common.hpp.
Referenced by get_loaddb_args(), get_packed_size(), ldr_validate_object_file(), loaddb_internal(), pack(), and unpack().