Class query_state::QueryState

class QueryState : public std::enable_shared_from_this<QueryState>

Public Functions

QueryStateProxy createQueryStateProxy()
QueryStateProxy createQueryStateProxy(Events::iterator parent)
Timer createTimer(char const *event_name, Events::iterator parent)
bool emptyLog() const
logger::QueryId getId() 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 &ss)
logger::QidScopeGuard setThreadLocalQueryId() const
void setQuerySubmittedTime(const std::string &t)
const std::string getQuerySubmittedTime() const
void setLogged(bool logged)

Public Static Functions

template<typename ...ARGS>
static std::shared_ptr<QueryState> create(ARGS&&... args)

Private Functions

void logCallStack(std::stringstream &ss, unsigned const depth, Events::iterator parent)
QueryState(std::shared_ptr<Catalog_Namespace::SessionInfo const> const &session_info, std::string query_str)

Private Members

logger::QueryId const id_
boost::optional<SessionData> session_data_
std::string const query_str_
Events events_
std::mutex events_mutex_
std::atomic<bool> logged_
std::string submitted_

Private Static Attributes

std::atomic<logger::QueryId> s_next_id = {1}

Friends

friend query_state::QueryState::QueryStates