OmniSciDB
a5dc49c757
|
#include <RelAlgExecutionDescriptor.h>
Public Types | |
enum | RType { QueryResult, SimpleResult, Explanation, CalciteDdl } |
Public Member Functions | |
ExecutionResult () | |
ExecutionResult (const std::shared_ptr< ResultSet > &rows, const std::vector< TargetMetaInfo > &targets_meta) | |
ExecutionResult (ResultSetPtr &&result, const std::vector< TargetMetaInfo > &targets_meta) | |
ExecutionResult (const ExecutionResult &that) | |
ExecutionResult (ExecutionResult &&that) | |
ExecutionResult (const std::vector< PushedDownFilterInfo > &pushed_down_filter_info, bool filter_push_down_enabled) | |
ExecutionResult & | operator= (const ExecutionResult &that) |
const std::shared_ptr < ResultSet > & | getRows () const |
bool | empty () const |
const ResultSetPtr & | getDataPtr () const |
const std::vector < TargetMetaInfo > & | getTargetsMeta () const |
const std::vector < PushedDownFilterInfo > & | getPushedDownFilterInfo () const |
const bool | isFilterPushDownEnabled () const |
void | setQueueTime (const int64_t queue_time_ms) |
std::string | toString () const |
std::string | getExplanation () |
void | updateResultSet (const std::string &query_ra, RType type, bool success=true) |
RType | getResultType () const |
void | setResultType (RType type) |
int64_t | getExecutionTime () const |
void | setExecutionTime (int64_t execution_time_ms) |
void | addExecutionTime (int64_t execution_time_ms) |
Private Attributes | |
ResultSetPtr | result_ |
std::vector< TargetMetaInfo > | targets_meta_ |
std::vector< PushedDownFilterInfo > | pushed_down_filter_info_ |
bool | filter_push_down_enabled_ |
bool | success_ |
uint64_t | execution_time_ms_ |
RType | type_ |
Definition at line 29 of file RelAlgExecutionDescriptor.h.
Enumerator | |
---|---|
QueryResult | |
SimpleResult | |
Explanation | |
CalciteDdl |
Definition at line 69 of file RelAlgExecutionDescriptor.h.
ExecutionResult::ExecutionResult | ( | ) |
Definition at line 26 of file RelAlgExecutionDescriptor.cpp.
ExecutionResult::ExecutionResult | ( | const std::shared_ptr< ResultSet > & | rows, |
const std::vector< TargetMetaInfo > & | targets_meta | ||
) |
Definition at line 32 of file RelAlgExecutionDescriptor.cpp.
ExecutionResult::ExecutionResult | ( | ResultSetPtr && | result, |
const std::vector< TargetMetaInfo > & | targets_meta | ||
) |
Definition at line 41 of file RelAlgExecutionDescriptor.cpp.
ExecutionResult::ExecutionResult | ( | const ExecutionResult & | that | ) |
Definition at line 50 of file RelAlgExecutionDescriptor.cpp.
References filter_push_down_enabled_, pushed_down_filter_info_, and result_.
ExecutionResult::ExecutionResult | ( | ExecutionResult && | that | ) |
Definition at line 64 of file RelAlgExecutionDescriptor.cpp.
References filter_push_down_enabled_, pushed_down_filter_info_, and result_.
ExecutionResult::ExecutionResult | ( | const std::vector< PushedDownFilterInfo > & | pushed_down_filter_info, |
bool | filter_push_down_enabled | ||
) |
Definition at line 78 of file RelAlgExecutionDescriptor.cpp.
|
inline |
Definition at line 79 of file RelAlgExecutionDescriptor.h.
References execution_time_ms_.
Referenced by DBHandler::execute_rel_alg_with_filter_push_down(), and DBHandler::sql_execute_impl().
|
inline |
Definition at line 49 of file RelAlgExecutionDescriptor.h.
References result_.
Referenced by DBHandler::convertData(), DBHandler::executeDdl(), and getExplanation().
|
inline |
Definition at line 51 of file RelAlgExecutionDescriptor.h.
References result_.
Referenced by DBHandler::convertResultSet(), and RelAlgExecutor::executeSort().
|
inline |
Definition at line 75 of file RelAlgExecutionDescriptor.h.
References execution_time_ms_.
Referenced by DBHandler::convertData(), DBHandler::execute_rel_alg(), DBHandler::sql_execute(), and DBHandler::sql_execute_df().
std::string ExecutionResult::getExplanation | ( | ) |
Definition at line 117 of file RelAlgExecutionDescriptor.cpp.
References empty(), and getRows().
const std::vector< PushedDownFilterInfo > & ExecutionResult::getPushedDownFilterInfo | ( | ) | const |
Definition at line 102 of file RelAlgExecutionDescriptor.cpp.
References pushed_down_filter_info_.
Referenced by DBHandler::execute_rel_alg().
|
inline |
Definition at line 73 of file RelAlgExecutionDescriptor.h.
References type_.
Referenced by DBHandler::convertData(), and DBHandler::executeDdl().
|
inline |
Definition at line 47 of file RelAlgExecutionDescriptor.h.
References result_.
Referenced by DBHandler::convertData(), DBHandler::execute_rel_alg(), DBHandler::executeDdl(), getExplanation(), result_set_arrow_loopback(), and DBHandler::sql_execute_df().
|
inline |
Definition at line 53 of file RelAlgExecutionDescriptor.h.
References targets_meta_.
Referenced by DBHandler::convertData(), result_set_arrow_loopback(), and DBHandler::sql_execute_df().
|
inline |
Definition at line 57 of file RelAlgExecutionDescriptor.h.
References filter_push_down_enabled_.
ExecutionResult & ExecutionResult::operator= | ( | const ExecutionResult & | that | ) |
Definition at line 87 of file RelAlgExecutionDescriptor.cpp.
References execution_time_ms_, filter_push_down_enabled_, pushed_down_filter_info_, result_, success_, targets_meta_, and type_.
|
inline |
Definition at line 76 of file RelAlgExecutionDescriptor.h.
References execution_time_ms_.
Referenced by DBHandler::execute_rel_alg(), DBHandler::executeDdl(), and DBHandler::sql_execute().
|
inline |
|
inline |
Definition at line 74 of file RelAlgExecutionDescriptor.h.
References run_benchmark_import::type, and type_.
Referenced by DBHandler::execute_rel_alg(), and DBHandler::executeDdl().
|
inline |
Definition at line 64 of file RelAlgExecutionDescriptor.h.
References result_, targets_meta_, and typeName().
void ExecutionResult::updateResultSet | ( | const std::string & | query_ra, |
RType | type, | ||
bool | success = true |
||
) |
Definition at line 107 of file RelAlgExecutionDescriptor.cpp.
References pushed_down_filter_info_, result_, success_, targets_meta_, run_benchmark_import::type, and type_.
Referenced by ShowCreateTableCommand::execute(), and DBHandler::sql_execute_impl().
|
private |
Definition at line 92 of file RelAlgExecutionDescriptor.h.
Referenced by addExecutionTime(), getExecutionTime(), operator=(), and setExecutionTime().
|
private |
Definition at line 89 of file RelAlgExecutionDescriptor.h.
Referenced by ExecutionResult(), isFilterPushDownEnabled(), and operator=().
|
private |
Definition at line 87 of file RelAlgExecutionDescriptor.h.
Referenced by ExecutionResult(), getPushedDownFilterInfo(), operator=(), and updateResultSet().
|
private |
Definition at line 84 of file RelAlgExecutionDescriptor.h.
Referenced by empty(), ExecutionResult(), getDataPtr(), getRows(), operator=(), setQueueTime(), toString(), and updateResultSet().
|
private |
Definition at line 91 of file RelAlgExecutionDescriptor.h.
Referenced by operator=(), and updateResultSet().
|
private |
Definition at line 85 of file RelAlgExecutionDescriptor.h.
Referenced by getTargetsMeta(), operator=(), toString(), and updateResultSet().
|
private |
Definition at line 93 of file RelAlgExecutionDescriptor.h.
Referenced by getResultType(), operator=(), setResultType(), and updateResultSet().