17 #ifndef LEAFAGGREGATOR_H
18 #define LEAFAGGREGATOR_H
20 #include "../AggregatedResult.h"
26 #include "gen-cpp/Heavy.h"
30 namespace Catalog_Namespace {
41 const std::string& query_ra,
43 const bool is_update_delete) {
55 const std::string& query_str) {
62 const std::string& query_str,
63 const size_t leaf_idx) {
69 const size_t leaf_idx,
70 const TInsertData& thrift_insert_data) {
77 const int32_t table_id) {
83 const int32_t table_id) {
90 const int32_t table_id,
91 const int32_t new_epoch) {
98 const int32_t table_id) {
106 const std::vector<Catalog_Namespace::TableEpochInfo>& table_epochs) {
111 const std::string& user,
112 const std::string& passwd,
113 const std::string& dbname) {
127 void interrupt(
const TSessionId query_session,
const TSessionId interrupt_session) {
159 const std::string& start_time_str,
160 const std::string&
label) {
165 const std::string& start_time_str,
166 const std::string&
label) {
172 std::string& sql_query) {
178 #endif // LEAFAGGREGATOR_H
int32_t get_table_epochLeaf(const Catalog_Namespace::SessionInfo &parent_session_info, const int32_t db_id, const int32_t table_id)
std::vector< size_t > query_get_outer_fragment_counts(const Catalog_Namespace::SessionInfo &parent_session_info, std::string &sql_query)
void set_execution_mode(const TSessionId session, const TExecuteMode::type mode)
AggregatedResult execute(const Catalog_Namespace::SessionInfo &parent_session_info, const std::string &query_ra, const ExecutionOptions &eo, const bool is_update_delete)
void leafCatalogConsistencyCheck(const Catalog_Namespace::SessionInfo &parent_session_info)
void clone_session(const TSessionId session1, const TSessionId session2)
void clear_leaf_gpu_memory(const TSessionId session)
void connect(const Catalog_Namespace::SessionInfo &parent_session_info, const std::string &user, const std::string &passwd, const std::string &dbname)
void checkpointLeafShardsWithAutoRollback(const Catalog_Namespace::SessionInfo &parent_session_info, const int32_t db_id, const int32_t table_id)
void switch_database(const TSessionId session, const std::string &dbname)
void disconnect(const TSessionId session)
This file contains the class specification and related data structures for Catalog.
LeafAggregator(const std::vector< LeafHostInfo > &leaves)
void clear_leaf_cpu_memory(const TSessionId session)
void invalidate_cur_session(const TSessionId parent_session, const std::string &start_time_str, const std::string &label)
std::map< size_t, TQueryResult > forwardQueryToLeaves(const Catalog_Namespace::SessionInfo &parent_session_info, const std::string &query_str)
TClusterHardwareInfo getHardwareInfo(TSessionId session)
TQueryResult forwardQueryToLeaf(const Catalog_Namespace::SessionInfo &parent_session_info, const std::string &query_str, const size_t leaf_idx)
std::vector< TNodeMemoryInfo > getLeafMemoryInfo(TSessionId session, Data_Namespace::MemoryLevel memory_level)
void set_table_epochLeaf(const Catalog_Namespace::SessionInfo &parent_session_info, const int32_t db_id, const int32_t table_id, const int32_t new_epoch)
void insertDataToLeaf(const Catalog_Namespace::SessionInfo &parent_session_info, const size_t leaf_idx, const TInsertData &thrift_insert_data)
std::vector< TServerStatus > getLeafStatus(TSessionId session)
void setLeafTableEpochs(const Catalog_Namespace::SessionInfo &parent_session_info, const int32_t db_id, const std::vector< Catalog_Namespace::TableEpochInfo > &table_epochs)
std::vector< Catalog_Namespace::TableEpochInfo > getLeafTableEpochs(const Catalog_Namespace::SessionInfo &parent_session_info, const int32_t db_id, const int32_t table_id)
ResultSet(const std::vector< TargetInfo > &targets, const ExecutorDeviceType device_type, const QueryMemoryDescriptor &query_mem_desc, const std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner, const unsigned block_size, const unsigned grid_size)
void set_cur_session(const TSessionId parent_session, const std::string &start_time_str, const std::string &label)
void interrupt(const TSessionId query_session, const TSessionId interrupt_session)