OmniSciDB
a5dc49c757
|
#include <QueryState.h>
Public Member Functions | |
QueryStateProxy | createQueryStateProxy () |
QueryStateProxy | createQueryStateProxy (Events::iterator parent) |
Timer | createTimer (char const *event_name, Events::iterator parent) |
bool | emptyLog () const |
std::string const & | getQueryStr () const |
std::shared_ptr < Catalog_Namespace::SessionInfo const > | getConstSessionInfo () const |
boost::optional< SessionData > const & | getSessionData () const |
bool | isLogged () const |
void | logCallStack (std::stringstream &) |
void | setQuerySubmittedTime (const std::string &t) |
const std::string | getQuerySubmittedTime () const |
void | setLogged (bool logged) |
Static Public Member Functions | |
template<typename... ARGS> | |
static std::shared_ptr < QueryState > | create (ARGS &&...args) |
Private Member Functions | |
void | logCallStack (std::stringstream &, unsigned const depth, Events::iterator parent) |
QueryState (std::shared_ptr< Catalog_Namespace::SessionInfo const > const &, std::string query_str) | |
Private Attributes | |
boost::optional< SessionData > | session_data_ |
std::string const | query_str_ |
Events | events_ |
std::mutex | events_mutex_ |
std::atomic< bool > | logged_ |
std::string | submitted_ |
Friends | |
class | QueryStates |
Definition at line 133 of file QueryState.h.
|
private |
Definition at line 62 of file QueryState.cpp.
Referenced by create().
|
inlinestatic |
Definition at line 148 of file QueryState.h.
References run_benchmark_import::args, and QueryState().
Referenced by Parser::CreateModelStmt::build_model_query(), query_state::QueryStates::create(), Parser::create_stmt_for_query(), ShowCreateTableCommand::execute(), EvaluateModelCommand::execute(), Parser::InsertIntoTableAsSelectStmt::execute(), Parser::CreateTableAsSelectStmt::execute(), Parser::ExportQueryStmt::execute(), Parser::CreateViewStmt::execute(), and Parser::CreateModelStmt::train_model().
QueryStateProxy query_state::QueryState::createQueryStateProxy | ( | ) |
Definition at line 71 of file QueryState.cpp.
References events_.
Referenced by DBHandler::convertResultSet(), and Parser::ExportQueryStmt::execute().
QueryStateProxy query_state::QueryState::createQueryStateProxy | ( | Events::iterator | parent | ) |
Definition at line 75 of file QueryState.cpp.
Timer query_state::QueryState::createTimer | ( | char const * | event_name, |
Events::iterator | parent | ||
) |
Definition at line 79 of file QueryState.cpp.
References events_, and events_mutex_.
Referenced by query_state::QueryStateProxy::createTimer().
|
inline |
std::shared_ptr< Catalog_Namespace::SessionInfo const > query_state::QueryState::getConstSessionInfo | ( | ) | const |
Definition at line 84 of file QueryState.cpp.
References session_data_.
Referenced by Calcite::checkAccessedObjectsPrivileges(), DBHandler::execute_rel_alg(), Parser::LocalQueryConnector::getOuterFragmentCount(), DBHandler::parse_to_ra(), Parser::InsertIntoTableAsSelectStmt::populateData(), Calcite::processImpl(), Parser::LocalQueryConnector::query(), QueryRunner::anonymous_namespace{QueryRunner.cpp}::run_select_query_with_filter_push_down(), and DBHandler::sql_execute_impl().
|
inline |
Definition at line 159 of file QueryState.h.
References query_str_.
Referenced by DBHandler::execute_rel_alg_with_filter_push_down(), QueryRunner::anonymous_namespace{QueryRunner.cpp}::run_select_query_with_filter_push_down(), and DBHandler::sql_execute_impl().
const std::string query_state::QueryState::getQuerySubmittedTime | ( | ) | const |
Definition at line 101 of file QueryState.cpp.
References events_mutex_, and submitted_.
Referenced by Parser::InsertIntoTableAsSelectStmt::populateData(), Parser::LocalQueryConnector::query(), and DBHandler::sql_execute_impl().
|
inline |
Definition at line 162 of file QueryState.h.
References session_data_.
|
inline |
|
private |
Definition at line 107 of file QueryState.cpp.
References events_.
Referenced by logCallStack().
void query_state::QueryState::logCallStack | ( | std::stringstream & | ss | ) |
Definition at line 124 of file QueryState.cpp.
References events_, events_mutex_, and logCallStack().
|
inline |
void query_state::QueryState::setQuerySubmittedTime | ( | const std::string & | t | ) |
|
friend |
Definition at line 168 of file QueryState.h.
|
private |
Definition at line 136 of file QueryState.h.
Referenced by createQueryStateProxy(), createTimer(), emptyLog(), and logCallStack().
|
mutableprivate |
Definition at line 137 of file QueryState.h.
Referenced by createTimer(), getQuerySubmittedTime(), logCallStack(), and setQuerySubmittedTime().
|
private |
Definition at line 138 of file QueryState.h.
Referenced by isLogged(), and setLogged().
|
private |
Definition at line 135 of file QueryState.h.
Referenced by emptyLog(), and getQueryStr().
|
private |
Definition at line 134 of file QueryState.h.
Referenced by getConstSessionInfo(), and getSessionData().
|
private |
Definition at line 139 of file QueryState.h.
Referenced by getQuerySubmittedTime(), and setQuerySubmittedTime().