OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 constgetModifiedTableDescriptor () 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 constgetTargetColumns () 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 consttable_descriptor_ = nullptr
 
ColumnNameList target_columns_
 

Detailed Description

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

783  : is_update_via_select_(update_via_select)
784  , is_delete_via_select_(delete_via_select)
785  , varlen_update_required_(varlen_update_required)
786  , table_descriptor_(table_descriptor)
787  , target_columns_(target_columns) {}
ColumnNameList target_columns_
TableDescriptor const * table_descriptor_

Member Function Documentation

TableDescriptor const* ModifyManipulationTarget::getModifiedTableDescriptor ( ) const
inline

Definition at line 795 of file RelAlgDagBuilder.h.

References table_descriptor_.

795 { return table_descriptor_; }
TableDescriptor const * table_descriptor_
ColumnNameList const& ModifyManipulationTarget::getTargetColumns ( ) const
inline

Definition at line 807 of file RelAlgDagBuilder.h.

References target_columns_.

807 { return target_columns_; }
ColumnNameList target_columns_
auto const ModifyManipulationTarget::isDeleteViaSelect ( ) const
inline

Definition at line 801 of file RelAlgDagBuilder.h.

References is_delete_via_select_.

auto const ModifyManipulationTarget::isUpdateViaSelect ( ) const
inline

Definition at line 800 of file RelAlgDagBuilder.h.

References is_update_via_select_.

auto const ModifyManipulationTarget::isVarlenUpdateRequired ( ) const
inline

Definition at line 802 of file RelAlgDagBuilder.h.

References varlen_update_required_.

void ModifyManipulationTarget::setDeleteViaSelectFlag ( ) const
inline

Definition at line 790 of file RelAlgDagBuilder.h.

References is_delete_via_select_.

Referenced by RelModify::applyDeleteModificationsToInputNode().

+ Here is the caller graph for this function:

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

Definition at line 796 of file RelAlgDagBuilder.h.

References table_descriptor_.

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

796  {
797  table_descriptor_ = td;
798  }
TableDescriptor const * table_descriptor_

+ Here is the caller graph for this function:

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

Definition at line 804 of file RelAlgDagBuilder.h.

References target_columns_.

Referenced by RelModify::applyUpdateModificationsToInputNode().

804  {
805  target_columns_ = target_columns;
806  }
ColumnNameList target_columns_

+ Here is the caller graph for this function:

void ModifyManipulationTarget::setUpdateViaSelectFlag ( ) const
inline

Definition at line 789 of file RelAlgDagBuilder.h.

References is_update_via_select_.

Referenced by RelModify::applyUpdateModificationsToInputNode().

+ Here is the caller graph for this function:

void ModifyManipulationTarget::setVarlenUpdateRequired ( bool  required) const
inline

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

References target_columns_.

810  {
811  for (auto const& column_name : target_columns_) {
812  if (validator(column_name) == false) {
813  return false;
814  }
815  }
816  return true;
817  }
ColumnNameList target_columns_

Member Data Documentation

bool ModifyManipulationTarget::is_delete_via_select_ = false
mutableprivate

Definition at line 821 of file RelAlgDagBuilder.h.

Referenced by isDeleteViaSelect(), and setDeleteViaSelectFlag().

bool ModifyManipulationTarget::is_update_via_select_ = false
mutableprivate

Definition at line 820 of file RelAlgDagBuilder.h.

Referenced by isUpdateViaSelect(), and setUpdateViaSelectFlag().

TableDescriptor const* ModifyManipulationTarget::table_descriptor_ = nullptr
mutableprivate

Definition at line 823 of file RelAlgDagBuilder.h.

Referenced by getModifiedTableDescriptor(), and setModifiedTableDescriptor().

ColumnNameList ModifyManipulationTarget::target_columns_
mutableprivate

Definition at line 824 of file RelAlgDagBuilder.h.

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

bool ModifyManipulationTarget::varlen_update_required_ = false
mutableprivate

Definition at line 822 of file RelAlgDagBuilder.h.

Referenced by isVarlenUpdateRequired(), and setVarlenUpdateRequired().


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