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

#include <Execute.h>

Public Types

enum  QueryStatus {
  UNDEFINED = 0, PENDING_QUEUE, PENDING_EXECUTOR, RUNNING_QUERY_KERNEL,
  RUNNING_REDUCTION, RUNNING_IMPORTER
}
 

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)
 

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 89 of file Execute.h.

Member Enumeration Documentation

Enumerator
UNDEFINED 
PENDING_QUEUE 
PENDING_EXECUTOR 
RUNNING_QUERY_KERNEL 
RUNNING_REDUCTION 
RUNNING_IMPORTER 

Definition at line 94 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 103 of file Execute.h.

106  : query_session_(query_session)
107  , executor_id_(0)
108  , query_str_(query_str)
109  , submitted_time_(submitted_time)
110  , query_status_(QueryStatus::UNDEFINED) {}
const std::string query_str_
Definition: Execute.h:144
const QuerySessionId query_session_
Definition: Execute.h:142
const std::string submitted_time_
Definition: Execute.h:145
size_t executor_id_
Definition: Execute.h:143
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:152
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 111 of file Execute.h.

115  : query_session_(query_session)
116  , executor_id_(executor_id)
117  , query_str_(query_str)
118  , submitted_time_(submitted_time)
119  , query_status_(QueryStatus::UNDEFINED) {}
const std::string query_str_
Definition: Execute.h:144
const QuerySessionId query_session_
Definition: Execute.h:142
const std::string submitted_time_
Definition: Execute.h:145
size_t executor_id_
Definition: Execute.h:143
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:152
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 120 of file Execute.h.

125  : query_session_(query_session)
126  , executor_id_(executor_id)
127  , query_str_(query_str)
128  , submitted_time_(submitted_time)
129  , query_status_(query_status) {}
const std::string query_str_
Definition: Execute.h:144
const QuerySessionId query_session_
Definition: Execute.h:142
const std::string submitted_time_
Definition: Execute.h:145
size_t executor_id_
Definition: Execute.h:143
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:152

Member Function Documentation

const size_t QuerySessionStatus::getExecutorId ( )
inline

Definition at line 133 of file Execute.h.

References executor_id_.

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

Definition at line 131 of file Execute.h.

References query_session_.

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

Definition at line 135 of file Execute.h.

References query_status_.

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

Definition at line 132 of file Execute.h.

References query_str_.

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

Definition at line 134 of file Execute.h.

References submitted_time_.

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

Definition at line 139 of file Execute.h.

References executor_id_.

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

Definition at line 136 of file Execute.h.

References query_status_.

136  {
137  query_status_ = status;
138  }
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:152

Member Data Documentation

size_t QuerySessionStatus::executor_id_
private

Definition at line 143 of file Execute.h.

Referenced by getExecutorId(), and setExecutorId().

const QuerySessionId QuerySessionStatus::query_session_
private

Definition at line 142 of file Execute.h.

Referenced by getQuerySession().

QuerySessionStatus::QueryStatus QuerySessionStatus::query_status_
private

Definition at line 152 of file Execute.h.

Referenced by getQueryStatus(), and setQueryStatus().

const std::string QuerySessionStatus::query_str_
private

Definition at line 144 of file Execute.h.

Referenced by getQueryStr().

const std::string QuerySessionStatus::submitted_time_
private

Definition at line 145 of file Execute.h.

Referenced by getQuerySubmittedTime().


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