OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ExecutionResult Class Reference

#include <RelAlgExecutionDescriptor.h>

Public Member Functions

 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)
 
ExecutionResultoperator= (const ExecutionResult &that)
 
const std::shared_ptr
< ResultSet > & 
getRows () const
 
bool empty () const
 
const ResultSetPtrgetDataPtr () 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)
 

Private Attributes

ResultSetPtr result_
 
std::vector< TargetMetaInfotargets_meta_
 
std::vector< PushedDownFilterInfopushed_down_filter_info_
 
bool filter_push_down_enabled_
 

Detailed Description

Definition at line 28 of file RelAlgExecutionDescriptor.h.

Constructor & Destructor Documentation

ExecutionResult::ExecutionResult ( const std::shared_ptr< ResultSet > &  rows,
const std::vector< TargetMetaInfo > &  targets_meta 
)

Definition at line 24 of file RelAlgExecutionDescriptor.cpp.

26  : result_(rows), targets_meta_(targets_meta), filter_push_down_enabled_(false) {}
std::vector< TargetMetaInfo > targets_meta_
ExecutionResult::ExecutionResult ( ResultSetPtr &&  result,
const std::vector< TargetMetaInfo > &  targets_meta 
)

Definition at line 28 of file RelAlgExecutionDescriptor.cpp.

References run_benchmark_import::result, and result_.

30  : targets_meta_(targets_meta), filter_push_down_enabled_(false) {
31  result_ = std::move(result);
32 }
std::vector< TargetMetaInfo > targets_meta_
ExecutionResult::ExecutionResult ( const ExecutionResult that)

Definition at line 34 of file RelAlgExecutionDescriptor.cpp.

References filter_push_down_enabled_, pushed_down_filter_info_, and result_.

38  if (!pushed_down_filter_info_.empty() ||
40  return;
41  }
42  result_ = that.result_;
43 }
std::vector< PushedDownFilterInfo > pushed_down_filter_info_
std::vector< TargetMetaInfo > targets_meta_
ExecutionResult::ExecutionResult ( ExecutionResult &&  that)

Definition at line 45 of file RelAlgExecutionDescriptor.cpp.

References filter_push_down_enabled_, pushed_down_filter_info_, and result_.

46  : targets_meta_(std::move(that.targets_meta_))
49  if (!pushed_down_filter_info_.empty() ||
51  return;
52  }
53  result_ = std::move(that.result_);
54 }
std::vector< PushedDownFilterInfo > pushed_down_filter_info_
std::vector< TargetMetaInfo > targets_meta_
ExecutionResult::ExecutionResult ( const std::vector< PushedDownFilterInfo > &  pushed_down_filter_info,
bool  filter_push_down_enabled 
)

Definition at line 56 of file RelAlgExecutionDescriptor.cpp.

59  : pushed_down_filter_info_(pushed_down_filter_info)
60  , filter_push_down_enabled_(filter_push_down_enabled) {}
std::vector< PushedDownFilterInfo > pushed_down_filter_info_

Member Function Documentation

bool ExecutionResult::empty ( ) const
inline

Definition at line 46 of file RelAlgExecutionDescriptor.h.

References result_.

46 { return !result_; }
const ResultSetPtr& ExecutionResult::getDataPtr ( ) const
inline

Definition at line 48 of file RelAlgExecutionDescriptor.h.

References result_.

48 { return result_; }
const std::vector< PushedDownFilterInfo > & ExecutionResult::getPushedDownFilterInfo ( ) const

Definition at line 74 of file RelAlgExecutionDescriptor.cpp.

References pushed_down_filter_info_.

75  {
77 }
std::vector< PushedDownFilterInfo > pushed_down_filter_info_
const std::shared_ptr<ResultSet>& ExecutionResult::getRows ( ) const
inline

Definition at line 44 of file RelAlgExecutionDescriptor.h.

References result_.

Referenced by RelAlgExecutor::executeSort(), and result_set_arrow_loopback().

44 { return result_; }

+ Here is the caller graph for this function:

const std::vector<TargetMetaInfo>& ExecutionResult::getTargetsMeta ( ) const
inline

Definition at line 50 of file RelAlgExecutionDescriptor.h.

References targets_meta_.

Referenced by result_set_arrow_loopback().

50 { return targets_meta_; }
std::vector< TargetMetaInfo > targets_meta_

+ Here is the caller graph for this function:

const bool ExecutionResult::isFilterPushDownEnabled ( ) const
inline

Definition at line 54 of file RelAlgExecutionDescriptor.h.

References filter_push_down_enabled_.

ExecutionResult & ExecutionResult::operator= ( const ExecutionResult that)

Definition at line 62 of file RelAlgExecutionDescriptor.cpp.

References filter_push_down_enabled_, pushed_down_filter_info_, result_, and targets_meta_.

62  {
63  if (!that.pushed_down_filter_info_.empty() ||
64  (that.filter_push_down_enabled_ && that.pushed_down_filter_info_.empty())) {
67  return *this;
68  }
69  result_ = that.result_;
71  return *this;
72 }
std::vector< PushedDownFilterInfo > pushed_down_filter_info_
std::vector< TargetMetaInfo > targets_meta_
void ExecutionResult::setQueueTime ( const int64_t  queue_time_ms)
inline

Definition at line 56 of file RelAlgExecutionDescriptor.h.

References CHECK(), and result_.

56  {
57  CHECK(result_);
58  result_->setQueueTime(queue_time_ms);
59  }
CHECK(cgen_state)

+ Here is the call graph for this function:

Member Data Documentation

bool ExecutionResult::filter_push_down_enabled_
private

Definition at line 67 of file RelAlgExecutionDescriptor.h.

Referenced by ExecutionResult(), isFilterPushDownEnabled(), and operator=().

std::vector<PushedDownFilterInfo> ExecutionResult::pushed_down_filter_info_
private

Definition at line 65 of file RelAlgExecutionDescriptor.h.

Referenced by ExecutionResult(), getPushedDownFilterInfo(), and operator=().

ResultSetPtr ExecutionResult::result_
private
std::vector<TargetMetaInfo> ExecutionResult::targets_meta_
private

Definition at line 63 of file RelAlgExecutionDescriptor.h.

Referenced by getTargetsMeta(), and operator=().


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