OmniSciDB  c0231cc57d
 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 (bool required) const
 
void setDeleteViaSelectFlag (bool required) 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 isProjectForUpdate () const
 
auto const isRowwiseOutputForced () const
 
void setTargetColumns (ColumnNameList const &target_columns) const
 
ColumnNameList const & getTargetColumns () const
 
void invalidateTargetColumns () 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:1029
TableDescriptor const * table_descriptor_
Definition: RelAlgDag.h:1028

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_.

Referenced by RelProject::propagateModifyManipulationTarget().

994 { return table_descriptor_; }
TableDescriptor const * table_descriptor_
Definition: RelAlgDag.h:1028

+ Here is the caller graph for this function:

ColumnNameList const& ModifyManipulationTarget::getTargetColumns ( ) const
inline

Definition at line 1010 of file RelAlgDag.h.

References target_columns_.

Referenced by RelProject::propagateModifyManipulationTarget().

1010 { return target_columns_; }
ColumnNameList target_columns_
Definition: RelAlgDag.h:1029

+ Here is the caller graph for this function:

void ModifyManipulationTarget::invalidateTargetColumns ( ) const
inline

Definition at line 1012 of file RelAlgDag.h.

References target_columns_.

Referenced by RelProject::resetModifyManipulationTarget().

1012 { target_columns_.clear(); }
ColumnNameList target_columns_
Definition: RelAlgDag.h:1029

+ Here is the caller graph for this function:

auto const ModifyManipulationTarget::isDeleteViaSelect ( ) const
inline

Definition at line 1000 of file RelAlgDag.h.

References is_delete_via_select_.

Referenced by RelProject::propagateModifyManipulationTarget(), and QueryPlanDagChecker::visit().

1000 { return is_delete_via_select_; }

+ Here is the caller graph for this function:

auto const ModifyManipulationTarget::isProjectForUpdate ( ) const
inline

Definition at line 1002 of file RelAlgDag.h.

References is_delete_via_select_, is_update_via_select_, and varlen_update_required_.

Referenced by RelProject::deepCopy().

+ Here is the caller graph for this function:

auto const ModifyManipulationTarget::isRowwiseOutputForced ( ) const
inline

Definition at line 1005 of file RelAlgDag.h.

References force_rowwise_output_.

1005 { 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 RelProject::propagateModifyManipulationTarget(), and 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 RelProject::propagateModifyManipulationTarget(), and QueryPlanDagChecker::visit().

1001 { return varlen_update_required_; }

+ Here is the caller graph for this function:

void ModifyManipulationTarget::setDeleteViaSelectFlag ( bool  required) const
inline

Definition at line 988 of file RelAlgDag.h.

References is_delete_via_select_, and run_benchmark_import::required.

Referenced by RelModify::applyDeleteModificationsToInputNode(), and RelProject::resetModifyManipulationTarget().

+ 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(), RelModify::applyUpdateModificationsToInputNode(), and RelProject::resetModifyManipulationTarget().

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

+ Here is the caller graph for this function:

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

Definition at line 1007 of file RelAlgDag.h.

References target_columns_.

Referenced by RelModify::applyUpdateModificationsToInputNode().

1007  {
1008  target_columns_ = target_columns;
1009  }
ColumnNameList target_columns_
Definition: RelAlgDag.h:1029

+ Here is the caller graph for this function:

void ModifyManipulationTarget::setUpdateViaSelectFlag ( bool  required) const
inline

Definition at line 987 of file RelAlgDag.h.

References is_update_via_select_, and run_benchmark_import::required.

Referenced by RelModify::applyUpdateModificationsToInputNode(), and RelProject::resetModifyManipulationTarget().

+ 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(), and RelProject::resetModifyManipulationTarget().

+ Here is the caller graph for this function:

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

Definition at line 1015 of file RelAlgDag.h.

References target_columns_.

1015  {
1016  for (auto const& column_name : target_columns_) {
1017  if (validator(column_name) == false) {
1018  return false;
1019  }
1020  }
1021  return true;
1022  }
ColumnNameList target_columns_
Definition: RelAlgDag.h:1029

Member Data Documentation

bool ModifyManipulationTarget::force_rowwise_output_ = false
mutableprivate

Definition at line 1030 of file RelAlgDag.h.

Referenced by forceRowwiseOutput(), and isRowwiseOutputForced().

bool ModifyManipulationTarget::is_delete_via_select_ = false
mutableprivate

Definition at line 1026 of file RelAlgDag.h.

Referenced by isDeleteViaSelect(), isProjectForUpdate(), and setDeleteViaSelectFlag().

bool ModifyManipulationTarget::is_update_via_select_ = false
mutableprivate

Definition at line 1025 of file RelAlgDag.h.

Referenced by isProjectForUpdate(), isUpdateViaSelect(), and setUpdateViaSelectFlag().

TableDescriptor const* ModifyManipulationTarget::table_descriptor_ = nullptr
mutableprivate

Definition at line 1028 of file RelAlgDag.h.

Referenced by getModifiedTableDescriptor(), and setModifiedTableDescriptor().

ColumnNameList ModifyManipulationTarget::target_columns_
mutableprivate
bool ModifyManipulationTarget::varlen_update_required_ = false
mutableprivate

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