OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
QuerySessionStatus Class Reference

#include <Execute.h>

Public Types

enum  QueryStatus {
  UNDEFINED = 0, PENDING_QUEUE, PENDING_EXECUTOR, RUNNING,
  RUNNING_REDUCTION
}
 

Public Member Functions

 QuerySessionStatus (const QuerySessionId &query_session, const std::string &query_str, const std::string &submitted_time)
 
 QuerySessionStatus (const QuerySessionId &query_session, const size_t executor_id, const std::string &query_str, const std::string &submitted_time)
 
 QuerySessionStatus (const QuerySessionId &query_session, const size_t executor_id, const std::string &query_str, const std::string &submitted_time, const QuerySessionStatus::QueryStatus &query_status)
 
const QuerySessionId getQuerySession ()
 
const std::string getQueryStr ()
 
const size_t getExecutorId ()
 
const std::string & getQuerySubmittedTime ()
 
const
QuerySessionStatus::QueryStatus 
getQueryStatus ()
 
void setQueryStatus (const QuerySessionStatus::QueryStatus &status)
 
void setExecutorId (const size_t executor_id)
 
void setQueryStatusAsRunning ()
 

Private Attributes

const QuerySessionId query_session_
 
size_t executor_id_
 
const std::string query_str_
 
const std::string submitted_time_
 
QuerySessionStatus::QueryStatus query_status_
 

Detailed Description

Definition at line 82 of file Execute.h.

Member Enumeration Documentation

Enumerator
UNDEFINED 
PENDING_QUEUE 
PENDING_EXECUTOR 
RUNNING 
RUNNING_REDUCTION 

Definition at line 87 of file Execute.h.

Constructor & Destructor Documentation

QuerySessionStatus::QuerySessionStatus ( const QuerySessionId query_session,
const std::string &  query_str,
const std::string &  submitted_time 
)
inline

Definition at line 95 of file Execute.h.

98  : query_session_(query_session)
99  , executor_id_(0)
100  , query_str_(query_str)
101  , submitted_time_(submitted_time)
102  , query_status_(QueryStatus::UNDEFINED) {}
const std::string query_str_
Definition: Execute.h:139
const QuerySessionId query_session_
Definition: Execute.h:137
const std::string submitted_time_
Definition: Execute.h:140
size_t executor_id_
Definition: Execute.h:138
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:147
QuerySessionStatus::QuerySessionStatus ( const QuerySessionId query_session,
const size_t  executor_id,
const std::string &  query_str,
const std::string &  submitted_time 
)
inline

Definition at line 103 of file Execute.h.

107  : query_session_(query_session)
108  , executor_id_(executor_id)
109  , query_str_(query_str)
110  , submitted_time_(submitted_time)
111  , query_status_(QueryStatus::UNDEFINED) {}
const std::string query_str_
Definition: Execute.h:139
const QuerySessionId query_session_
Definition: Execute.h:137
const std::string submitted_time_
Definition: Execute.h:140
size_t executor_id_
Definition: Execute.h:138
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:147
QuerySessionStatus::QuerySessionStatus ( const QuerySessionId query_session,
const size_t  executor_id,
const std::string &  query_str,
const std::string &  submitted_time,
const QuerySessionStatus::QueryStatus query_status 
)
inline

Definition at line 112 of file Execute.h.

117  : query_session_(query_session)
118  , executor_id_(executor_id)
119  , query_str_(query_str)
120  , submitted_time_(submitted_time)
121  , query_status_(query_status) {}
const std::string query_str_
Definition: Execute.h:139
const QuerySessionId query_session_
Definition: Execute.h:137
const std::string submitted_time_
Definition: Execute.h:140
size_t executor_id_
Definition: Execute.h:138
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:147

Member Function Documentation

const size_t QuerySessionStatus::getExecutorId ( )
inline

Definition at line 125 of file Execute.h.

References executor_id_.

125 { return executor_id_; }
size_t executor_id_
Definition: Execute.h:138
const QuerySessionId QuerySessionStatus::getQuerySession ( )
inline

Definition at line 123 of file Execute.h.

References query_session_.

123 { return query_session_; }
const QuerySessionId query_session_
Definition: Execute.h:137
const QuerySessionStatus::QueryStatus QuerySessionStatus::getQueryStatus ( )
inline

Definition at line 127 of file Execute.h.

References query_status_.

127 { return query_status_; }
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:147
const std::string QuerySessionStatus::getQueryStr ( )
inline

Definition at line 124 of file Execute.h.

References query_str_.

124 { return query_str_; }
const std::string query_str_
Definition: Execute.h:139
const std::string& QuerySessionStatus::getQuerySubmittedTime ( )
inline

Definition at line 126 of file Execute.h.

References submitted_time_.

126 { return submitted_time_; }
const std::string submitted_time_
Definition: Execute.h:140
void QuerySessionStatus::setExecutorId ( const size_t  executor_id)
inline

Definition at line 131 of file Execute.h.

References executor_id_.

131 { executor_id_ = executor_id; }
size_t executor_id_
Definition: Execute.h:138
void QuerySessionStatus::setQueryStatus ( const QuerySessionStatus::QueryStatus status)
inline

Definition at line 128 of file Execute.h.

References query_status_.

128  {
129  query_status_ = status;
130  }
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:147
void QuerySessionStatus::setQueryStatusAsRunning ( )
inline

Definition at line 132 of file Execute.h.

References query_status_.

132  {
133  query_status_ = QuerySessionStatus::QueryStatus::RUNNING;
134  }
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:147

Member Data Documentation

size_t QuerySessionStatus::executor_id_
private

Definition at line 138 of file Execute.h.

Referenced by getExecutorId(), and setExecutorId().

const QuerySessionId QuerySessionStatus::query_session_
private

Definition at line 137 of file Execute.h.

Referenced by getQuerySession().

QuerySessionStatus::QueryStatus QuerySessionStatus::query_status_
private

Definition at line 147 of file Execute.h.

Referenced by getQueryStatus(), setQueryStatus(), and setQueryStatusAsRunning().

const std::string QuerySessionStatus::query_str_
private

Definition at line 139 of file Execute.h.

Referenced by getQueryStr().

const std::string QuerySessionStatus::submitted_time_
private

Definition at line 140 of file Execute.h.

Referenced by getQuerySubmittedTime().


The documentation for this class was generated from the following file: