OmniSciDB  0264ff685a
ModifyManipulationTarget Class Reference

#include <RelAlgDagBuilder.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
 
TableDescriptor const * getModifiedTableDescriptor () const
 
void setModifiedTableDescriptor (TableDescriptor const *td) const
 
auto const isUpdateViaSelect () const
 
auto const isDeleteViaSelect () const
 
auto const isVarlenUpdateRequired () 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_
 

Detailed Description

Definition at line 854 of file RelAlgDagBuilder.h.

Constructor & Destructor Documentation

◆ ModifyManipulationTarget()

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 856 of file RelAlgDagBuilder.h.

861  : is_update_via_select_(update_via_select)
862  , is_delete_via_select_(delete_via_select)
863  , varlen_update_required_(varlen_update_required)
864  , table_descriptor_(table_descriptor)
865  , target_columns_(target_columns) {}
ColumnNameList target_columns_
TableDescriptor const * table_descriptor_

Member Function Documentation

◆ getModifiedTableDescriptor()

TableDescriptor const* ModifyManipulationTarget::getModifiedTableDescriptor ( ) const
inline

Definition at line 873 of file RelAlgDagBuilder.h.

873 { return table_descriptor_; }
TableDescriptor const * table_descriptor_

◆ getTargetColumns()

ColumnNameList const& ModifyManipulationTarget::getTargetColumns ( ) const
inline

Definition at line 885 of file RelAlgDagBuilder.h.

885 { return target_columns_; }
ColumnNameList target_columns_

◆ isDeleteViaSelect()

auto const ModifyManipulationTarget::isDeleteViaSelect ( ) const
inline

Definition at line 879 of file RelAlgDagBuilder.h.

◆ isUpdateViaSelect()

auto const ModifyManipulationTarget::isUpdateViaSelect ( ) const
inline

Definition at line 878 of file RelAlgDagBuilder.h.

◆ isVarlenUpdateRequired()

auto const ModifyManipulationTarget::isVarlenUpdateRequired ( ) const
inline

Definition at line 880 of file RelAlgDagBuilder.h.

◆ setDeleteViaSelectFlag()

void ModifyManipulationTarget::setDeleteViaSelectFlag ( ) const
inline

Definition at line 868 of file RelAlgDagBuilder.h.

Referenced by RelModify::applyDeleteModificationsToInputNode().

+ Here is the caller graph for this function:

◆ setModifiedTableDescriptor()

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

Definition at line 874 of file RelAlgDagBuilder.h.

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

874  {
875  table_descriptor_ = td;
876  }
TableDescriptor const * table_descriptor_
+ Here is the caller graph for this function:

◆ setTargetColumns()

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

Definition at line 882 of file RelAlgDagBuilder.h.

Referenced by RelModify::applyUpdateModificationsToInputNode().

882  {
883  target_columns_ = target_columns;
884  }
ColumnNameList target_columns_
+ Here is the caller graph for this function:

◆ setUpdateViaSelectFlag()

void ModifyManipulationTarget::setUpdateViaSelectFlag ( ) const
inline

Definition at line 867 of file RelAlgDagBuilder.h.

Referenced by RelModify::applyUpdateModificationsToInputNode().

+ Here is the caller graph for this function:

◆ setVarlenUpdateRequired()

void ModifyManipulationTarget::setVarlenUpdateRequired ( bool  required) const
inline

Definition at line 869 of file RelAlgDagBuilder.h.

References run_benchmark_import::required.

Referenced by RelModify::applyUpdateModificationsToInputNode().

+ Here is the caller graph for this function:

◆ validateTargetColumns()

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

Definition at line 888 of file RelAlgDagBuilder.h.

888  {
889  for (auto const& column_name : target_columns_) {
890  if (validator(column_name) == false) {
891  return false;
892  }
893  }
894  return true;
895  }
ColumnNameList target_columns_

Member Data Documentation

◆ is_delete_via_select_

bool ModifyManipulationTarget::is_delete_via_select_ = false
mutableprivate

Definition at line 899 of file RelAlgDagBuilder.h.

◆ is_update_via_select_

bool ModifyManipulationTarget::is_update_via_select_ = false
mutableprivate

Definition at line 898 of file RelAlgDagBuilder.h.

◆ table_descriptor_

TableDescriptor const* ModifyManipulationTarget::table_descriptor_ = nullptr
mutableprivate

Definition at line 901 of file RelAlgDagBuilder.h.

◆ target_columns_

ColumnNameList ModifyManipulationTarget::target_columns_
mutableprivate

Definition at line 902 of file RelAlgDagBuilder.h.

◆ varlen_update_required_

bool ModifyManipulationTarget::varlen_update_required_ = false
mutableprivate

Definition at line 900 of file RelAlgDagBuilder.h.


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