Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Snapshot of a query's state, archived in the query log. More...
Public Member Functions | |
QueryStateRecord (const QueryExecState &exec_state, bool copy_profile=false, const std::string &encoded_str="") | |
QueryStateRecord () | |
Default constructor used only when participating in collections. More... | |
bool | operator() (const QueryStateRecord &lhs, const QueryStateRecord &rhs) const |
Comparator that sorts by start time. More... | |
Public Attributes | |
std::string | profile_str |
Pretty-printed runtime profile. TODO: Copy actual profile object. More... | |
std::string | encoded_profile_str |
Base64 encoded runtime profile. More... | |
TUniqueId | id |
Query id. More... | |
std::string | effective_user |
std::string | default_db |
default db for this query More... | |
std::string | stmt |
SQL statement text. More... | |
std::string | plan |
Text representation of plan. More... | |
TStmtType::type | stmt_type |
DDL, DML etc. More... | |
bool | has_coord |
True if the query required a coordinator fragment. More... | |
int64_t | num_complete_fragments |
The number of fragments that have completed. More... | |
int64_t | total_fragments |
The total number of fragments. More... | |
int64_t | num_rows_fetched |
The number of rows fetched by the client. More... | |
beeswax::QueryState::type | query_state |
The state of the query as of this snapshot. More... | |
TimestampValue | start_time |
Start and end time of the query. More... | |
TimestampValue | end_time |
TExecSummary | exec_summary |
Summary of execution for this query. More... | |
Status | query_status |
TEventSequence | event_sequence |
Timeline of important query events. More... | |
vector< TPlanFragment > | fragments |
Snapshot of a query's state, archived in the query log.
Definition at line 549 of file impala-server.h.
impala::ImpalaServer::QueryStateRecord::QueryStateRecord | ( | const QueryExecState & | exec_state, |
bool | copy_profile = false , |
||
const std::string & | encoded_str = "" |
||
) |
Initialise from an exec_state. If copy_profile is true, print the query profile to a string and copy that into this.profile (which is expensive), otherwise leave this.profile empty. If encoded_str is non-empty, it is the base64 encoded string for exec_state->profile.
|
inline |
Default constructor used only when participating in collections.
Definition at line 615 of file impala-server.h.
bool impala::ImpalaServer::QueryStateRecord::operator() | ( | const QueryStateRecord & | lhs, |
const QueryStateRecord & | rhs | ||
) | const |
Comparator that sorts by start time.
Definition at line 1454 of file impala-server.cc.
References id, and start_time.
std::string impala::ImpalaServer::QueryStateRecord::default_db |
default db for this query
Definition at line 565 of file impala-server.h.
Referenced by impala::ImpalaServer::QueryStateToJson().
std::string impala::ImpalaServer::QueryStateRecord::effective_user |
Queries are run and authorized on behalf of the effective_user. If there is no delegated user, this will be the connected user. Otherwise, it will be set to the delegated user.
Definition at line 562 of file impala-server.h.
Referenced by impala::ImpalaServer::QueryStateToJson().
std::string impala::ImpalaServer::QueryStateRecord::encoded_profile_str |
Base64 encoded runtime profile.
Definition at line 554 of file impala-server.h.
TimestampValue impala::ImpalaServer::QueryStateRecord::end_time |
Definition at line 592 of file impala-server.h.
Referenced by impala::ImpalaServer::QueryStateToJson().
TEventSequence impala::ImpalaServer::QueryStateRecord::event_sequence |
Timeline of important query events.
Definition at line 600 of file impala-server.h.
Referenced by impala::ImpalaServer::QueryStateToJson().
TExecSummary impala::ImpalaServer::QueryStateRecord::exec_summary |
Summary of execution for this query.
Definition at line 595 of file impala-server.h.
Referenced by impala::ImpalaServer::ArchiveQuery().
vector<TPlanFragment> impala::ImpalaServer::QueryStateRecord::fragments |
Save the query plan fragments so that the plan tree can be rendered on the debug webpages.
Definition at line 604 of file impala-server.h.
bool impala::ImpalaServer::QueryStateRecord::has_coord |
True if the query required a coordinator fragment.
Definition at line 577 of file impala-server.h.
Referenced by impala::ImpalaServer::QueryStateToJson().
TUniqueId impala::ImpalaServer::QueryStateRecord::id |
Query id.
Definition at line 557 of file impala-server.h.
Referenced by operator()(), and impala::ImpalaServer::QueryStateToJson().
int64_t impala::ImpalaServer::QueryStateRecord::num_complete_fragments |
The number of fragments that have completed.
Definition at line 580 of file impala-server.h.
Referenced by impala::ImpalaServer::QueryStateToJson().
int64_t impala::ImpalaServer::QueryStateRecord::num_rows_fetched |
The number of rows fetched by the client.
Definition at line 586 of file impala-server.h.
Referenced by impala::ImpalaServer::QueryStateToJson().
std::string impala::ImpalaServer::QueryStateRecord::plan |
Text representation of plan.
Definition at line 571 of file impala-server.h.
std::string impala::ImpalaServer::QueryStateRecord::profile_str |
Pretty-printed runtime profile. TODO: Copy actual profile object.
Definition at line 551 of file impala-server.h.
beeswax::QueryState::type impala::ImpalaServer::QueryStateRecord::query_state |
The state of the query as of this snapshot.
Definition at line 589 of file impala-server.h.
Referenced by impala::ImpalaServer::QueryStateToJson().
Status impala::ImpalaServer::QueryStateRecord::query_status |
Definition at line 597 of file impala-server.h.
TimestampValue impala::ImpalaServer::QueryStateRecord::start_time |
Start and end time of the query.
Definition at line 592 of file impala-server.h.
Referenced by operator()(), and impala::ImpalaServer::QueryStateToJson().
std::string impala::ImpalaServer::QueryStateRecord::stmt |
SQL statement text.
Definition at line 568 of file impala-server.h.
Referenced by impala::ImpalaServer::QueryStateToJson().
TStmtType::type impala::ImpalaServer::QueryStateRecord::stmt_type |
DDL, DML etc.
Definition at line 574 of file impala-server.h.
Referenced by impala::ImpalaServer::QueryStateToJson().
int64_t impala::ImpalaServer::QueryStateRecord::total_fragments |
The total number of fragments.
Definition at line 583 of file impala-server.h.
Referenced by impala::ImpalaServer::QueryStateToJson().