Class query_state::QueryState¶
-
class
QueryState
: public std::enable_shared_from_this<QueryState>¶ Public Functions
-
QueryStateProxy
createQueryStateProxy
()¶
-
QueryStateProxy
createQueryStateProxy
(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
Private Functions
-
void
logCallStack
(std::stringstream &ss, unsigned const depth, Events::iterator parent)¶
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
-
QueryStateProxy