OmniSciDB  29e35f4d58
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
 
int getTargetColumnCount () 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 724 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 726 of file RelAlgDagBuilder.h.

731  : is_update_via_select_(update_via_select)
732  , is_delete_via_select_(delete_via_select)
733  , varlen_update_required_(varlen_update_required)
734  , table_descriptor_(table_descriptor)
735  , target_columns_(target_columns) {}
ColumnNameList target_columns_
TableDescriptor const * table_descriptor_

Member Function Documentation

◆ getModifiedTableDescriptor()

TableDescriptor const* ModifyManipulationTarget::getModifiedTableDescriptor ( ) const
inline

Definition at line 743 of file RelAlgDagBuilder.h.

Referenced by RelAlgExecutor::executeDeleteViaCompound(), RelAlgExecutor::executeDeleteViaProject(), RelAlgExecutor::executeUpdateViaCompound(), and RelAlgExecutor::executeUpdateViaProject().

743 { return table_descriptor_; }
TableDescriptor const * table_descriptor_
+ Here is the caller graph for this function:

◆ getTargetColumnCount()

int ModifyManipulationTarget::getTargetColumnCount ( ) const
inline

Definition at line 752 of file RelAlgDagBuilder.h.

752 { return target_columns_.size(); }
ColumnNameList target_columns_

◆ getTargetColumns()

ColumnNameList const& ModifyManipulationTarget::getTargetColumns ( ) const
inline

Definition at line 756 of file RelAlgDagBuilder.h.

Referenced by RelAlgExecutor::executeUpdateViaCompound(), and RelAlgExecutor::executeUpdateViaProject().

756 { return target_columns_; }
ColumnNameList target_columns_
+ Here is the caller graph for this function:

◆ isDeleteViaSelect()

auto const ModifyManipulationTarget::isDeleteViaSelect ( ) const
inline

Definition at line 749 of file RelAlgDagBuilder.h.

◆ isUpdateViaSelect()

auto const ModifyManipulationTarget::isUpdateViaSelect ( ) const
inline

Definition at line 748 of file RelAlgDagBuilder.h.

◆ isVarlenUpdateRequired()

auto const ModifyManipulationTarget::isVarlenUpdateRequired ( ) const
inline

Definition at line 750 of file RelAlgDagBuilder.h.

Referenced by RelAlgExecutor::executeUpdateViaCompound(), and RelAlgExecutor::executeUpdateViaProject().

+ Here is the caller graph for this function:

◆ setDeleteViaSelectFlag()

void ModifyManipulationTarget::setDeleteViaSelectFlag ( ) const
inline

Definition at line 738 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 744 of file RelAlgDagBuilder.h.

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

744  {
745  table_descriptor_ = td;
746  }
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 753 of file RelAlgDagBuilder.h.

Referenced by RelModify::applyUpdateModificationsToInputNode().

753  {
754  target_columns_ = target_columns;
755  }
ColumnNameList target_columns_
+ Here is the caller graph for this function:

◆ setUpdateViaSelectFlag()

void ModifyManipulationTarget::setUpdateViaSelectFlag ( ) const
inline

Definition at line 737 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 739 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 759 of file RelAlgDagBuilder.h.

Referenced by RelAlgExecutor::executeUpdateViaCompound(), and RelAlgExecutor::executeUpdateViaProject().

759  {
760  for (auto const& column_name : target_columns_) {
761  if (validator(column_name) == false) {
762  return false;
763  }
764  }
765  return true;
766  }
ColumnNameList target_columns_
+ Here is the caller graph for this function:

Member Data Documentation

◆ is_delete_via_select_

bool ModifyManipulationTarget::is_delete_via_select_ = false
mutableprivate

Definition at line 770 of file RelAlgDagBuilder.h.

◆ is_update_via_select_

bool ModifyManipulationTarget::is_update_via_select_ = false
mutableprivate

Definition at line 769 of file RelAlgDagBuilder.h.

◆ table_descriptor_

TableDescriptor const* ModifyManipulationTarget::table_descriptor_ = nullptr
mutableprivate

Definition at line 772 of file RelAlgDagBuilder.h.

◆ target_columns_

ColumnNameList ModifyManipulationTarget::target_columns_
mutableprivate

Definition at line 773 of file RelAlgDagBuilder.h.

◆ varlen_update_required_

bool ModifyManipulationTarget::varlen_update_required_ = false
mutableprivate

Definition at line 771 of file RelAlgDagBuilder.h.


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