OmniSciDB  baf940c279
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 845 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 847 of file RelAlgDagBuilder.h.

852  : is_update_via_select_(update_via_select)
853  , is_delete_via_select_(delete_via_select)
854  , varlen_update_required_(varlen_update_required)
855  , table_descriptor_(table_descriptor)
856  , target_columns_(target_columns) {}
ColumnNameList target_columns_
TableDescriptor const * table_descriptor_

Member Function Documentation

◆ getModifiedTableDescriptor()

TableDescriptor const* ModifyManipulationTarget::getModifiedTableDescriptor ( ) const
inline

Definition at line 864 of file RelAlgDagBuilder.h.

864 { return table_descriptor_; }
TableDescriptor const * table_descriptor_

◆ getTargetColumns()

ColumnNameList const& ModifyManipulationTarget::getTargetColumns ( ) const
inline

Definition at line 876 of file RelAlgDagBuilder.h.

876 { return target_columns_; }
ColumnNameList target_columns_

◆ isDeleteViaSelect()

auto const ModifyManipulationTarget::isDeleteViaSelect ( ) const
inline

Definition at line 870 of file RelAlgDagBuilder.h.

◆ isUpdateViaSelect()

auto const ModifyManipulationTarget::isUpdateViaSelect ( ) const
inline

Definition at line 869 of file RelAlgDagBuilder.h.

◆ isVarlenUpdateRequired()

auto const ModifyManipulationTarget::isVarlenUpdateRequired ( ) const
inline

Definition at line 871 of file RelAlgDagBuilder.h.

◆ setDeleteViaSelectFlag()

void ModifyManipulationTarget::setDeleteViaSelectFlag ( ) const
inline

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

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

865  {
866  table_descriptor_ = td;
867  }
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 873 of file RelAlgDagBuilder.h.

Referenced by RelModify::applyUpdateModificationsToInputNode().

873  {
874  target_columns_ = target_columns;
875  }
ColumnNameList target_columns_
+ Here is the caller graph for this function:

◆ setUpdateViaSelectFlag()

void ModifyManipulationTarget::setUpdateViaSelectFlag ( ) const
inline

Definition at line 858 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 860 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 879 of file RelAlgDagBuilder.h.

879  {
880  for (auto const& column_name : target_columns_) {
881  if (validator(column_name) == false) {
882  return false;
883  }
884  }
885  return true;
886  }
ColumnNameList target_columns_

Member Data Documentation

◆ is_delete_via_select_

bool ModifyManipulationTarget::is_delete_via_select_ = false
mutableprivate

Definition at line 890 of file RelAlgDagBuilder.h.

◆ is_update_via_select_

bool ModifyManipulationTarget::is_update_via_select_ = false
mutableprivate

Definition at line 889 of file RelAlgDagBuilder.h.

◆ table_descriptor_

TableDescriptor const* ModifyManipulationTarget::table_descriptor_ = nullptr
mutableprivate

Definition at line 892 of file RelAlgDagBuilder.h.

◆ target_columns_

ColumnNameList ModifyManipulationTarget::target_columns_
mutableprivate

Definition at line 893 of file RelAlgDagBuilder.h.

◆ varlen_update_required_

bool ModifyManipulationTarget::varlen_update_required_ = false
mutableprivate

Definition at line 891 of file RelAlgDagBuilder.h.


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