OmniSciDB  04ee39c94c
MetaClientContext.h
Go to the documentation of this file.
1 #ifndef METACLIENTCONTEXT_H
2 #define METACLIENTCONTEXT_H
3 
4 #include "gen-cpp/mapd_types.h"
5 
6 using namespace ::apache::thrift;
7 using namespace ::apache::thrift::protocol;
8 using namespace ::apache::thrift::transport;
9 
10 static std::string const INVALID_SESSION_ID("");
11 static std::string const OMNISCI_ROOT_USER("admin");
12 static std::string const OMNISCI_DEFAULT_ROOT_USER_ROLE("omnisci_default_suser_role");
13 
14 template <typename CLIENT_TYPE, typename TRANSPORT_TYPE>
16  std::string user_name;
17  std::string passwd;
18  std::string db_name;
19  std::string server_host;
20  int port;
21  bool http;
22  bool https;
24  TRANSPORT_TYPE transport;
25  CLIENT_TYPE client;
26  TSessionId session;
28  std::vector<std::string> names_return;
29  std::vector<TDBInfo> dbinfos_return;
31  std::string version;
32  std::vector<TNodeMemoryInfo> gpu_memory;
33  std::vector<TNodeMemoryInfo> cpu_memory;
34  TTableDetails table_details;
35  std::string table_name;
36  std::string file_name;
37  TCopyParams copy_params;
38  int db_id;
39  int table_id;
41  TServerStatus server_status;
42  TClusterHardwareInfo cluster_hardware_info;
43  std::vector<TServerStatus> cluster_status;
44  std::string view_name;
45  std::string dashboard_owner;
46  int dash_id;
47  std::string view_state;
48  std::string view_metadata;
49  TDashboard dash_return;
50  std::string privs_role_name;
51  std::string privs_user_name;
52  std::string privs_object_name;
53  std::vector<std::string> role_names;
54  std::vector<TDBObject> db_objects;
56  std::string license_key;
57  TLicenseInfo license_info;
58  std::vector<TCompletionHint> completion_hints;
59  std::vector<TDashboard> dash_names;
60  TSessionInfo session_info;
61 
62  MetaClientContext(TTransport& t, CLIENT_TYPE& c)
63  : transport(t)
64  , client(c)
65  , session(INVALID_SESSION_ID)
66  , execution_mode(TExecuteMode::GPU) {}
68 };
69 
70 #endif
TExecuteMode::type execution_mode
std::string table_name
std::vector< TDashboard > dash_names
std::vector< TNodeMemoryInfo > cpu_memory
std::string server_host
std::string dashboard_owner
std::string privs_role_name
void c(const std::string &query_string, const ExecutorDeviceType device_type)
TServerStatus server_status
TLicenseInfo license_info
TQueryResult query_return
TTableDetails table_details
static std::string const OMNISCI_DEFAULT_ROOT_USER_ROLE("omnisci_default_suser_role")
TDBObjectType::type object_type
TRANSPORT_TYPE transport
std::vector< std::string > names_return
std::string view_state
MetaClientContext(TTransport &t, CLIENT_TYPE &c)
std::string view_metadata
std::vector< TCompletionHint > completion_hints
std::vector< TNodeMemoryInfo > gpu_memory
TCopyParams copy_params
static std::string const INVALID_SESSION_ID("")
std::vector< TDBObject > db_objects
std::string privs_user_name
TClusterHardwareInfo cluster_hardware_info
static std::string const OMNISCI_ROOT_USER("admin")
std::vector< TDBInfo > dbinfos_return
std::vector< std::string > role_names
std::vector< TServerStatus > cluster_status
std::string privs_object_name
TSessionInfo session_info
std::string license_key