23 #ifndef _LOAD_SESSION_HPP_ 24 #define _LOAD_SESSION_HPP_ 34 #include <condition_variable> 108 void on_error (std::string &err_msg);
110 void fail (
bool has_lock =
false);
127 template<
typename... Args>
166 template<
typename... Args>
174 std::unique_lock<std::mutex> ulock (
m_mutex);
void on_error(std::string &err_msg)
void notify_batch_done_and_register_tran_end(batch_id id, int tran_index)
void update_class_statistics(cubthread::entry &thread_ref)
void notify_waiting_threads()
int install_class(cubthread::entry &thread_ref, const batch &batch, bool &is_ignored, std::string &cls_name)
void stats_update_rows_committed(int64_t rows_committed)
int64_t stats_get_rows_committed()
class_registry m_class_registry
static std::string format_log_msg(MSGCAT_LOADDB_MSG msg_id, Args &&...args)
std::atomic< batch_id > m_max_batch_id
std::set< int > m_tran_indexes
void notify_batch_done(batch_id id)
void wait_for_completion()
void append_log_msg(MSGCAT_LOADDB_MSG msg_id, Args &&...args)
std::condition_variable m_cond_var
class_registry & get_class_registry()
const load_args & get_args()
std::atomic< size_t > m_active_task_count
session & operator=(session &&other)=delete
void fetch_status(load_status &status, bool has_lock=false)
int load_batch(cubthread::entry &thread_ref, const batch *batch, bool use_temp_batch, bool &is_batch_accepted, load_status &status)
void register_tran_start(int tran_index)
void update_atomic_value_with_max(std::atomic< T > &atomic_val, T new_max)
std::vector< stats > m_collected_stats
void stats_update_last_committed_line(int64_t last_committed_line)
void fail(bool has_lock=false)
cubthread::entry_task * m_temp_task
void stats_update_current_line(int64_t current_line)
void wait_for_previous_batch(batch_id id)