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

#include <RelAlgDag.h>

+ Inheritance diagram for ModifyManipulationTarget:
+ Collaboration diagram for ModifyManipulationTarget:

Public Member Functions

 ModifyManipulationTarget (bool const update_via_select=false, bool const delete_via_select=false, bool const varlen_update_required=false, TableDescriptor const *table_descriptor=nullptr, ColumnNameList target_columns=ColumnNameList())
 
void setUpdateViaSelectFlag () const
 
void setDeleteViaSelectFlag () const
 
void setVarlenUpdateRequired (bool required) const
 
void forceRowwiseOutput () const
 
TableDescriptor const * getModifiedTableDescriptor () const
 
void setModifiedTableDescriptor (TableDescriptor const *td) const
 
auto const isUpdateViaSelect () const
 
auto const isDeleteViaSelect () const
 
auto const isVarlenUpdateRequired () const
 
auto const isRowwiseOutputForced () const
 
void setTargetColumns (ColumnNameList const &target_columns) const
 
ColumnNameList const & getTargetColumns () const
 
template<typename VALIDATION_FUNCTOR >
bool validateTargetColumns (VALIDATION_FUNCTOR validator) const
 

Private Attributes

bool is_update_via_select_ = false
 
bool is_delete_via_select_ = false
 
bool varlen_update_required_ = false
 
TableDescriptor const * table_descriptor_ = nullptr
 
ColumnNameList target_columns_
 
bool force_rowwise_output_ = false
 

Detailed Description

Definition at line 974 of file RelAlgDag.h.

Constructor & Destructor Documentation

ModifyManipulationTarget::ModifyManipulationTarget ( bool const  update_via_select = false,
bool const  delete_via_select = false,
bool const  varlen_update_required = false,
TableDescriptor const *  table_descriptor = nullptr,
ColumnNameList  target_columns = ColumnNameList() 
)
inline

Definition at line 976 of file RelAlgDag.h.

981  : is_update_via_select_(update_via_select)
982  , is_delete_via_select_(delete_via_select)
983  , varlen_update_required_(varlen_update_required)
984  , table_descriptor_(table_descriptor)
985  , target_columns_(target_columns) {}
ColumnNameList target_columns_
Definition: RelAlgDag.h:1024
TableDescriptor const * table_descriptor_
Definition: RelAlgDag.h:1023

Member Function Documentation

void ModifyManipulationTarget::forceRowwiseOutput ( ) const
inline

Definition at line 992 of file RelAlgDag.h.

References force_rowwise_output_.

992 { force_rowwise_output_ = true; }
TableDescriptor const* ModifyManipulationTarget::getModifiedTableDescriptor ( ) const
inline

Definition at line 994 of file RelAlgDag.h.

References table_descriptor_.

994 { return table_descriptor_; }
TableDescriptor const * table_descriptor_
Definition: RelAlgDag.h:1023
ColumnNameList const& ModifyManipulationTarget::getTargetColumns ( ) const
inline

Definition at line 1007 of file RelAlgDag.h.

References target_columns_.

1007 { return target_columns_; }
ColumnNameList target_columns_
Definition: RelAlgDag.h:1024
auto const ModifyManipulationTarget::isDeleteViaSelect ( ) const
inline

Definition at line 1000 of file RelAlgDag.h.

References is_delete_via_select_.

Referenced by QueryPlanDagChecker::visit().

1000 { return is_delete_via_select_; }

+ Here is the caller graph for this function:

auto const ModifyManipulationTarget::isRowwiseOutputForced ( ) const
inline

Definition at line 1002 of file RelAlgDag.h.

References force_rowwise_output_.

1002 { return force_rowwise_output_; }
auto const ModifyManipulationTarget::isUpdateViaSelect ( ) const
inline

Definition at line 999 of file RelAlgDag.h.

References is_update_via_select_.

Referenced by QueryPlanDagChecker::visit().

999 { return is_update_via_select_; }

+ Here is the caller graph for this function:

auto const ModifyManipulationTarget::isVarlenUpdateRequired ( ) const
inline

Definition at line 1001 of file RelAlgDag.h.

References varlen_update_required_.

Referenced by QueryPlanDagChecker::visit().

1001 { return varlen_update_required_; }

+ Here is the caller graph for this function:

void ModifyManipulationTarget::setDeleteViaSelectFlag ( ) const
inline

Definition at line 988 of file RelAlgDag.h.

References is_delete_via_select_.

Referenced by RelModify::applyDeleteModificationsToInputNode().

988 { is_delete_via_select_ = true; }

+ Here is the caller graph for this function:

void ModifyManipulationTarget::setModifiedTableDescriptor ( TableDescriptor const *  td) const
inline

Definition at line 995 of file RelAlgDag.h.

References table_descriptor_.

Referenced by RelModify::applyDeleteModificationsToInputNode(), and RelModify::applyUpdateModificationsToInputNode().

995  {
996  table_descriptor_ = td;
997  }
TableDescriptor const * table_descriptor_
Definition: RelAlgDag.h:1023

+ Here is the caller graph for this function:

void ModifyManipulationTarget::setTargetColumns ( ColumnNameList const &  target_columns) const
inline

Definition at line 1004 of file RelAlgDag.h.

References target_columns_.

Referenced by RelModify::applyUpdateModificationsToInputNode().

1004  {
1005  target_columns_ = target_columns;
1006  }
ColumnNameList target_columns_
Definition: RelAlgDag.h:1024

+ Here is the caller graph for this function:

void ModifyManipulationTarget::setUpdateViaSelectFlag ( ) const
inline

Definition at line 987 of file RelAlgDag.h.

References is_update_via_select_.

Referenced by RelModify::applyUpdateModificationsToInputNode().

987 { is_update_via_select_ = true; }

+ Here is the caller graph for this function:

void ModifyManipulationTarget::setVarlenUpdateRequired ( bool  required) const
inline

Definition at line 989 of file RelAlgDag.h.

References run_benchmark_import::required, and varlen_update_required_.

Referenced by RelModify::applyUpdateModificationsToInputNode().

+ Here is the caller graph for this function:

template<typename VALIDATION_FUNCTOR >
bool ModifyManipulationTarget::validateTargetColumns ( VALIDATION_FUNCTOR  validator) const
inline

Definition at line 1010 of file RelAlgDag.h.

References target_columns_.

1010  {
1011  for (auto const& column_name : target_columns_) {
1012  if (validator(column_name) == false) {
1013  return false;
1014  }
1015  }
1016  return true;
1017  }
ColumnNameList target_columns_
Definition: RelAlgDag.h:1024

Member Data Documentation

bool ModifyManipulationTarget::force_rowwise_output_ = false
mutableprivate

Definition at line 1025 of file RelAlgDag.h.

Referenced by forceRowwiseOutput(), and isRowwiseOutputForced().

bool ModifyManipulationTarget::is_delete_via_select_ = false
mutableprivate

Definition at line 1021 of file RelAlgDag.h.

Referenced by isDeleteViaSelect(), and setDeleteViaSelectFlag().

bool ModifyManipulationTarget::is_update_via_select_ = false
mutableprivate

Definition at line 1020 of file RelAlgDag.h.

Referenced by isUpdateViaSelect(), and setUpdateViaSelectFlag().

TableDescriptor const* ModifyManipulationTarget::table_descriptor_ = nullptr
mutableprivate

Definition at line 1023 of file RelAlgDag.h.

Referenced by getModifiedTableDescriptor(), and setModifiedTableDescriptor().

ColumnNameList ModifyManipulationTarget::target_columns_
mutableprivate

Definition at line 1024 of file RelAlgDag.h.

Referenced by getTargetColumns(), setTargetColumns(), and validateTargetColumns().

bool ModifyManipulationTarget::varlen_update_required_ = false
mutableprivate

Definition at line 1022 of file RelAlgDag.h.

Referenced by isVarlenUpdateRequired(), and setVarlenUpdateRequired().


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