OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 * > 
visitGeoExpr (const Analyzer::GeoExpr *geo_expr) 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 404 of file HashJoin.cpp.

Member Function Documentation

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 423 of file HashJoin.cpp.

References run_benchmark_import::result.

425  {
426  auto result = aggregate;
427  result.insert(next_result.begin(), next_result.end());
428  return result;
429  }
std::set<const Analyzer::ColumnVar*> AllColumnVarsVisitor::visitColumnVar ( const Analyzer::ColumnVar column) const
inlineoverrideprotectedvirtual

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

Definition at line 407 of file HashJoin.cpp.

408  {
409  return {column};
410  }
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 412 of file HashJoin.cpp.

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

413  {
414  AllColumnVarsVisitor visitor;
415  std::set<const Analyzer::ColumnVar*> result;
416  for (const auto& expr_component : expr_tuple->getTuple()) {
417  const auto component_rte_set = visitor.visit(expr_component.get());
418  result.insert(component_rte_set.begin(), component_rte_set.end());
419  }
420  return result;
421  }
T visit(const Analyzer::Expr *expr) const
const std::vector< std::shared_ptr< Analyzer::Expr > > & getTuple() const
Definition: Analyzer.h:244

+ Here is the call graph for this function:


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