OmniSciDB  c07336695a
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 26 of file RelAlgExecutionDescriptor.h.

Constructor & Destructor Documentation

◆ ExecutionResult() [1/5]

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

Definition at line 28 of file RelAlgExecutionDescriptor.h.

30  : result_(rows), targets_meta_(targets_meta), filter_push_down_enabled_(false) {}
std::vector< TargetMetaInfo > targets_meta_

◆ ExecutionResult() [2/5]

ExecutionResult::ExecutionResult ( ResultSetPtr &&  result,
const std::vector< TargetMetaInfo > &  targets_meta 
)
inline

Definition at line 32 of file RelAlgExecutionDescriptor.h.

References run-benchmark-import::result, and result_.

33  : targets_meta_(targets_meta), filter_push_down_enabled_(false) {
34  result_ = std::move(result);
35  }
std::vector< TargetMetaInfo > targets_meta_

◆ ExecutionResult() [3/5]

ExecutionResult::ExecutionResult ( const ExecutionResult that)
inline

Definition at line 37 of file RelAlgExecutionDescriptor.h.

References filter_push_down_enabled_, pushed_down_filter_info_, and result_.

41  if (!pushed_down_filter_info_.empty() ||
43  return;
44  }
45  result_ = that.result_;
46  }
std::vector< PushedDownFilterInfo > pushed_down_filter_info_
std::vector< TargetMetaInfo > targets_meta_

◆ ExecutionResult() [4/5]

ExecutionResult::ExecutionResult ( ExecutionResult &&  that)
inline

Definition at line 48 of file RelAlgExecutionDescriptor.h.

References filter_push_down_enabled_, pushed_down_filter_info_, and result_.

49  : targets_meta_(std::move(that.targets_meta_))
52  if (!pushed_down_filter_info_.empty() ||
54  return;
55  }
56  result_ = std::move(that.result_);
57  }
std::vector< PushedDownFilterInfo > pushed_down_filter_info_
std::vector< TargetMetaInfo > targets_meta_

◆ ExecutionResult() [5/5]

ExecutionResult::ExecutionResult ( const std::vector< PushedDownFilterInfo > &  pushed_down_filter_info,
bool  filter_push_down_enabled 
)
inline

Definition at line 59 of file RelAlgExecutionDescriptor.h.

61  : pushed_down_filter_info_(pushed_down_filter_info)
62  , filter_push_down_enabled_(filter_push_down_enabled) {}
std::vector< PushedDownFilterInfo > pushed_down_filter_info_

Member Function Documentation

◆ empty()

bool ExecutionResult::empty ( ) const
inline

Definition at line 78 of file RelAlgExecutionDescriptor.h.

References result_.

78 { return !result_; }

◆ getDataPtr()

const ResultSetPtr& ExecutionResult::getDataPtr ( ) const
inline

Definition at line 80 of file RelAlgExecutionDescriptor.h.

References result_.

80 { return result_; }

◆ getPushedDownFilterInfo()

const std::vector<PushedDownFilterInfo>& ExecutionResult::getPushedDownFilterInfo ( ) const
inline

Definition at line 84 of file RelAlgExecutionDescriptor.h.

References pushed_down_filter_info_.

84  {
86  }
std::vector< PushedDownFilterInfo > pushed_down_filter_info_

◆ getRows()

const std::shared_ptr<ResultSet>& ExecutionResult::getRows ( ) const
inline

Definition at line 76 of file RelAlgExecutionDescriptor.h.

References result_.

Referenced by result_set_arrow_loopback().

76 { return result_; }
+ Here is the caller graph for this function:

◆ getTargetsMeta()

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

Definition at line 82 of file RelAlgExecutionDescriptor.h.

References targets_meta_.

Referenced by result_set_arrow_loopback().

82 { return targets_meta_; }
std::vector< TargetMetaInfo > targets_meta_
+ Here is the caller graph for this function:

◆ isFilterPushDownEnabled()

const bool ExecutionResult::isFilterPushDownEnabled ( ) const
inline

Definition at line 88 of file RelAlgExecutionDescriptor.h.

References filter_push_down_enabled_.

◆ operator=()

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

Definition at line 64 of file RelAlgExecutionDescriptor.h.

References filter_push_down_enabled_, pushed_down_filter_info_, result_, and targets_meta_.

64  {
65  if (!that.pushed_down_filter_info_.empty() ||
66  (that.filter_push_down_enabled_ && that.pushed_down_filter_info_.empty())) {
69  return *this;
70  }
71  result_ = that.result_;
73  return *this;
74  }
std::vector< PushedDownFilterInfo > pushed_down_filter_info_
std::vector< TargetMetaInfo > targets_meta_

◆ setQueueTime()

void ExecutionResult::setQueueTime ( const int64_t  queue_time_ms)
inline

Definition at line 90 of file RelAlgExecutionDescriptor.h.

References CHECK, and result_.

90  {
91  CHECK(result_);
92  result_->setQueueTime(queue_time_ms);
93  }
#define CHECK(condition)
Definition: Logger.h:187

Member Data Documentation

◆ filter_push_down_enabled_

bool ExecutionResult::filter_push_down_enabled_
private

◆ pushed_down_filter_info_

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

Definition at line 99 of file RelAlgExecutionDescriptor.h.

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

◆ result_

◆ targets_meta_

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

Definition at line 97 of file RelAlgExecutionDescriptor.h.

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


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