OmniSciDB  2e3a973ef4
AllColumnVarsVisitor Class Reference
+ Inheritance diagram for AllColumnVarsVisitor:
+ Collaboration diagram for AllColumnVarsVisitor:

Protected Member Functions

std::set< const Analyzer::ColumnVar * > visitColumnVar (const Analyzer::ColumnVar *column) const override
 
std::set< const Analyzer::ColumnVar * > visitColumnVarTuple (const Analyzer::ExpressionTuple *expr_tuple) const override
 
std::set< const Analyzer::ColumnVar * > aggregateResult (const std::set< const Analyzer::ColumnVar *> &aggregate, const std::set< const Analyzer::ColumnVar *> &next_result) const override
 
- Protected Member Functions inherited from ScalarExprVisitor< std::set< const Analyzer::ColumnVar *> >
virtual std::set< const Analyzer::ColumnVar * > visitVar (const Analyzer::Var *) const
 
virtual std::set< const Analyzer::ColumnVar * > visitConstant (const Analyzer::Constant *) const
 
virtual std::set< const Analyzer::ColumnVar * > visitUOper (const Analyzer::UOper *uoper) const
 
virtual std::set< const Analyzer::ColumnVar * > visitBinOper (const Analyzer::BinOper *bin_oper) const
 
virtual std::set< const Analyzer::ColumnVar * > visitInValues (const Analyzer::InValues *in_values) const
 
virtual std::set< const Analyzer::ColumnVar * > visitInIntegerSet (const Analyzer::InIntegerSet *in_integer_set) const
 
virtual std::set< const Analyzer::ColumnVar * > visitCharLength (const Analyzer::CharLengthExpr *char_length) const
 
virtual std::set< const Analyzer::ColumnVar * > visitKeyForString (const Analyzer::KeyForStringExpr *key_for_string) const
 
virtual std::set< const Analyzer::ColumnVar * > visitSampleRatio (const Analyzer::SampleRatioExpr *sample_ratio) const
 
virtual std::set< const Analyzer::ColumnVar * > visitLower (const Analyzer::LowerExpr *lower_expr) const
 
virtual std::set< const Analyzer::ColumnVar * > visitCardinality (const Analyzer::CardinalityExpr *cardinality) const
 
virtual std::set< const Analyzer::ColumnVar * > visitLikeExpr (const Analyzer::LikeExpr *like) const
 
virtual std::set< const Analyzer::ColumnVar * > visitRegexpExpr (const Analyzer::RegexpExpr *regexp) const
 
virtual std::set< const Analyzer::ColumnVar * > visitCaseExpr (const Analyzer::CaseExpr *case_) const
 
virtual std::set< const Analyzer::ColumnVar * > visitDatetruncExpr (const Analyzer::DatetruncExpr *datetrunc) const
 
virtual std::set< const Analyzer::ColumnVar * > visitExtractExpr (const Analyzer::ExtractExpr *extract) const
 
virtual std::set< const Analyzer::ColumnVar * > visitFunctionOperWithCustomTypeHandling (const Analyzer::FunctionOperWithCustomTypeHandling *func_oper) const
 
virtual std::set< const Analyzer::ColumnVar * > visitArrayOper (Analyzer::ArrayExpr const *array_expr) const
 
virtual std::set< const Analyzer::ColumnVar * > visitGeoUOper (const Analyzer::GeoUOper *geo_expr) const
 
virtual std::set< const Analyzer::ColumnVar * > visitGeoBinOper (const Analyzer::GeoBinOper *geo_expr) const
 
virtual std::set< const Analyzer::ColumnVar * > visitFunctionOper (const Analyzer::FunctionOper *func_oper) const
 
virtual std::set< const Analyzer::ColumnVar * > visitWindowFunction (const Analyzer::WindowFunction *window_func) const
 
virtual std::set< const Analyzer::ColumnVar * > visitDatediffExpr (const Analyzer::DatediffExpr *datediff) const
 
virtual std::set< const Analyzer::ColumnVar * > visitDateaddExpr (const Analyzer::DateaddExpr *dateadd) const
 
virtual std::set< const Analyzer::ColumnVar * > visitLikelihood (const Analyzer::LikelihoodExpr *likelihood) const
 
virtual std::set< const Analyzer::ColumnVar * > visitOffsetInFragment (const Analyzer::OffsetInFragment *) const
 
virtual std::set< const Analyzer::ColumnVar * > visitAggExpr (const Analyzer::AggExpr *agg) const
 
virtual std::set< const Analyzer::ColumnVar * > defaultResult () const
 

Additional Inherited Members

- Public Member Functions inherited from ScalarExprVisitor< std::set< const Analyzer::ColumnVar *> >
std::set< const Analyzer::ColumnVar * > visit (const Analyzer::Expr *expr) const
 

Detailed Description

Definition at line 590 of file JoinHashTableInterface.cpp.

Member Function Documentation

◆ aggregateResult()

std::set<const Analyzer::ColumnVar*> AllColumnVarsVisitor::aggregateResult ( const std::set< const Analyzer::ColumnVar *> &  aggregate,
const std::set< const Analyzer::ColumnVar *> &  next_result 
) const
inlineoverrideprotectedvirtual

Reimplemented from ScalarExprVisitor< std::set< const Analyzer::ColumnVar *> >.

Definition at line 609 of file JoinHashTableInterface.cpp.

References run_benchmark_import::result.

611  {
612  auto result = aggregate;
613  result.insert(next_result.begin(), next_result.end());
614  return result;
615  }

◆ visitColumnVar()

std::set<const Analyzer::ColumnVar*> AllColumnVarsVisitor::visitColumnVar ( const Analyzer::ColumnVar column) const
inlineoverrideprotectedvirtual

Reimplemented from ScalarExprVisitor< std::set< const Analyzer::ColumnVar *> >.

Definition at line 593 of file JoinHashTableInterface.cpp.

594  {
595  return {column};
596  }

◆ visitColumnVarTuple()

std::set<const Analyzer::ColumnVar*> AllColumnVarsVisitor::visitColumnVarTuple ( const Analyzer::ExpressionTuple expr_tuple) const
inlineoverrideprotectedvirtual

Reimplemented from ScalarExprVisitor< std::set< const Analyzer::ColumnVar *> >.

Definition at line 598 of file JoinHashTableInterface.cpp.

References Analyzer::ExpressionTuple::getTuple(), run_benchmark_import::result, and ScalarExprVisitor< T >::visit().

599  {
600  AllColumnVarsVisitor visitor;
601  std::set<const Analyzer::ColumnVar*> result;
602  for (const auto& expr_component : expr_tuple->getTuple()) {
603  const auto component_rte_set = visitor.visit(expr_component.get());
604  result.insert(component_rte_set.begin(), component_rte_set.end());
605  }
606  return result;
607  }
const std::vector< std::shared_ptr< Analyzer::Expr > > & getTuple() const
Definition: Analyzer.h:244
T visit(const Analyzer::Expr *expr) const
+ Here is the call graph for this function:

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