You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -32,158 +32,164 @@ namespace querytele
|
||||
|
||||
struct QueryTeleStats
|
||||
{
|
||||
enum QTType
|
||||
{
|
||||
QT_INVALID,
|
||||
QT_SUMMARY,
|
||||
QT_PROGRESS,
|
||||
QT_START,
|
||||
};
|
||||
enum QTType
|
||||
{
|
||||
QT_INVALID,
|
||||
QT_SUMMARY,
|
||||
QT_PROGRESS,
|
||||
QT_START,
|
||||
};
|
||||
|
||||
QueryTeleStats() :
|
||||
msg_type(QT_INVALID),
|
||||
max_mem_pct(0),
|
||||
num_files(0),
|
||||
phy_io(0),
|
||||
cache_io(0),
|
||||
msg_rcv_cnt(0),
|
||||
cp_blocks_skipped(0),
|
||||
msg_bytes_in(0),
|
||||
msg_bytes_out(0),
|
||||
rows(0),
|
||||
start_time(-1),
|
||||
end_time(-1),
|
||||
error_no(0),
|
||||
blocks_changed(0),
|
||||
session_id(0),
|
||||
priority_level(0),
|
||||
local_query(0)
|
||||
{ query_uuid = boost::uuids::nil_generator()(); }
|
||||
QueryTeleStats() :
|
||||
msg_type(QT_INVALID),
|
||||
max_mem_pct(0),
|
||||
num_files(0),
|
||||
phy_io(0),
|
||||
cache_io(0),
|
||||
msg_rcv_cnt(0),
|
||||
cp_blocks_skipped(0),
|
||||
msg_bytes_in(0),
|
||||
msg_bytes_out(0),
|
||||
rows(0),
|
||||
start_time(-1),
|
||||
end_time(-1),
|
||||
error_no(0),
|
||||
blocks_changed(0),
|
||||
session_id(0),
|
||||
priority_level(0),
|
||||
local_query(0)
|
||||
{
|
||||
query_uuid = boost::uuids::nil_generator()();
|
||||
}
|
||||
|
||||
~QueryTeleStats() { }
|
||||
~QueryTeleStats() { }
|
||||
|
||||
boost::uuids::uuid query_uuid;
|
||||
QTType msg_type;
|
||||
int64_t max_mem_pct;
|
||||
int64_t num_files;
|
||||
int64_t phy_io;
|
||||
int64_t cache_io;
|
||||
int64_t msg_rcv_cnt;
|
||||
int64_t cp_blocks_skipped;
|
||||
int64_t msg_bytes_in;
|
||||
int64_t msg_bytes_out;
|
||||
int64_t rows;
|
||||
int64_t start_time;
|
||||
int64_t end_time;
|
||||
int64_t error_no;
|
||||
int64_t blocks_changed;
|
||||
int64_t session_id;
|
||||
std::string query_type;
|
||||
std::string query;
|
||||
std::string user;
|
||||
std::string host;
|
||||
std::string priority;
|
||||
int32_t priority_level;
|
||||
std::string system_name;
|
||||
std::string module_name;
|
||||
int32_t local_query;
|
||||
std::string schema_name;
|
||||
boost::uuids::uuid query_uuid;
|
||||
QTType msg_type;
|
||||
int64_t max_mem_pct;
|
||||
int64_t num_files;
|
||||
int64_t phy_io;
|
||||
int64_t cache_io;
|
||||
int64_t msg_rcv_cnt;
|
||||
int64_t cp_blocks_skipped;
|
||||
int64_t msg_bytes_in;
|
||||
int64_t msg_bytes_out;
|
||||
int64_t rows;
|
||||
int64_t start_time;
|
||||
int64_t end_time;
|
||||
int64_t error_no;
|
||||
int64_t blocks_changed;
|
||||
int64_t session_id;
|
||||
std::string query_type;
|
||||
std::string query;
|
||||
std::string user;
|
||||
std::string host;
|
||||
std::string priority;
|
||||
int32_t priority_level;
|
||||
std::string system_name;
|
||||
std::string module_name;
|
||||
int32_t local_query;
|
||||
std::string schema_name;
|
||||
};
|
||||
|
||||
struct StepTeleStats
|
||||
{
|
||||
enum STType
|
||||
{
|
||||
ST_INVALID,
|
||||
ST_SUMMARY,
|
||||
ST_PROGRESS,
|
||||
ST_START,
|
||||
};
|
||||
enum STType
|
||||
{
|
||||
ST_INVALID,
|
||||
ST_SUMMARY,
|
||||
ST_PROGRESS,
|
||||
ST_START,
|
||||
};
|
||||
|
||||
enum StepType
|
||||
{
|
||||
T_INVALID,
|
||||
T_HJS, //TupleHashJoinStep
|
||||
T_DSS, //DictionaryScanStep
|
||||
T_CES, //CrossEngineStep
|
||||
T_SQS, //SubQueryStep
|
||||
T_TAS, //TupleAggregateStep
|
||||
T_TNS, //TupleAnnexStep
|
||||
T_BPS, //TupleBPS
|
||||
T_TCS, //TupleConstantStep
|
||||
T_HVS, //TupleHavingStep
|
||||
T_WFS, //WindowFunctionStep
|
||||
T_SAS, //SubAdapterStep
|
||||
T_TUN, //TupleUnion
|
||||
};
|
||||
enum StepType
|
||||
{
|
||||
T_INVALID,
|
||||
T_HJS, //TupleHashJoinStep
|
||||
T_DSS, //DictionaryScanStep
|
||||
T_CES, //CrossEngineStep
|
||||
T_SQS, //SubQueryStep
|
||||
T_TAS, //TupleAggregateStep
|
||||
T_TNS, //TupleAnnexStep
|
||||
T_BPS, //TupleBPS
|
||||
T_TCS, //TupleConstantStep
|
||||
T_HVS, //TupleHavingStep
|
||||
T_WFS, //WindowFunctionStep
|
||||
T_SAS, //SubAdapterStep
|
||||
T_TUN, //TupleUnion
|
||||
};
|
||||
|
||||
StepTeleStats() :
|
||||
msg_type(ST_INVALID),
|
||||
step_type(T_INVALID),
|
||||
phy_io(0),
|
||||
cache_io(0),
|
||||
msg_rcv_cnt(0),
|
||||
cp_blocks_skipped(0),
|
||||
msg_bytes_in(0),
|
||||
msg_bytes_out(0),
|
||||
rows(0),
|
||||
start_time(-1),
|
||||
end_time(-1),
|
||||
total_units_of_work(0),
|
||||
units_of_work_completed(0)
|
||||
{ query_uuid = boost::uuids::nil_generator()();
|
||||
step_uuid = boost::uuids::nil_generator()(); }
|
||||
StepTeleStats() :
|
||||
msg_type(ST_INVALID),
|
||||
step_type(T_INVALID),
|
||||
phy_io(0),
|
||||
cache_io(0),
|
||||
msg_rcv_cnt(0),
|
||||
cp_blocks_skipped(0),
|
||||
msg_bytes_in(0),
|
||||
msg_bytes_out(0),
|
||||
rows(0),
|
||||
start_time(-1),
|
||||
end_time(-1),
|
||||
total_units_of_work(0),
|
||||
units_of_work_completed(0)
|
||||
{
|
||||
query_uuid = boost::uuids::nil_generator()();
|
||||
step_uuid = boost::uuids::nil_generator()();
|
||||
}
|
||||
|
||||
~StepTeleStats() { }
|
||||
~StepTeleStats() { }
|
||||
|
||||
boost::uuids::uuid query_uuid;
|
||||
STType msg_type;
|
||||
StepType step_type;
|
||||
boost::uuids::uuid step_uuid;
|
||||
int64_t phy_io;
|
||||
int64_t cache_io;
|
||||
int64_t msg_rcv_cnt;
|
||||
int64_t cp_blocks_skipped;
|
||||
int64_t msg_bytes_in;
|
||||
int64_t msg_bytes_out;
|
||||
int64_t rows;
|
||||
int64_t start_time;
|
||||
int64_t end_time;
|
||||
int32_t total_units_of_work;
|
||||
int32_t units_of_work_completed;
|
||||
boost::uuids::uuid query_uuid;
|
||||
STType msg_type;
|
||||
StepType step_type;
|
||||
boost::uuids::uuid step_uuid;
|
||||
int64_t phy_io;
|
||||
int64_t cache_io;
|
||||
int64_t msg_rcv_cnt;
|
||||
int64_t cp_blocks_skipped;
|
||||
int64_t msg_bytes_in;
|
||||
int64_t msg_bytes_out;
|
||||
int64_t rows;
|
||||
int64_t start_time;
|
||||
int64_t end_time;
|
||||
int32_t total_units_of_work;
|
||||
int32_t units_of_work_completed;
|
||||
};
|
||||
|
||||
struct ImportTeleStats
|
||||
{
|
||||
typedef std::vector<std::string> StringList;
|
||||
typedef std::vector<int64_t> I64List;
|
||||
typedef std::vector<std::string> StringList;
|
||||
typedef std::vector<int64_t> I64List;
|
||||
|
||||
enum ITType
|
||||
{
|
||||
IT_INVALID,
|
||||
IT_SUMMARY,
|
||||
IT_PROGRESS,
|
||||
IT_START,
|
||||
IT_TERM,
|
||||
};
|
||||
enum ITType
|
||||
{
|
||||
IT_INVALID,
|
||||
IT_SUMMARY,
|
||||
IT_PROGRESS,
|
||||
IT_START,
|
||||
IT_TERM,
|
||||
};
|
||||
|
||||
ImportTeleStats() :
|
||||
msg_type(IT_INVALID),
|
||||
start_time(-1),
|
||||
end_time(-1)
|
||||
{ job_uuid = boost::uuids::nil_generator()();
|
||||
import_uuid = boost::uuids::nil_generator()(); }
|
||||
ImportTeleStats() :
|
||||
msg_type(IT_INVALID),
|
||||
start_time(-1),
|
||||
end_time(-1)
|
||||
{
|
||||
job_uuid = boost::uuids::nil_generator()();
|
||||
import_uuid = boost::uuids::nil_generator()();
|
||||
}
|
||||
|
||||
boost::uuids::uuid job_uuid;
|
||||
boost::uuids::uuid import_uuid;
|
||||
ITType msg_type;
|
||||
int64_t start_time;
|
||||
int64_t end_time;
|
||||
StringList table_list;
|
||||
I64List rows_so_far;
|
||||
std::string system_name;
|
||||
std::string module_name;
|
||||
std::string schema_name;
|
||||
boost::uuids::uuid job_uuid;
|
||||
boost::uuids::uuid import_uuid;
|
||||
ITType msg_type;
|
||||
int64_t start_time;
|
||||
int64_t end_time;
|
||||
StringList table_list;
|
||||
I64List rows_so_far;
|
||||
std::string system_name;
|
||||
std::string module_name;
|
||||
std::string schema_name;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user