OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 * > 
visitStringOper (const Analyzer::StringOper *string_oper) 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 * > 
visitWidthBucket (const Analyzer::WidthBucketExpr *width_bucket_expr) const
 
virtual std::set< const
Analyzer::ColumnVar * > 
visitMLPredict (const Analyzer::MLPredictExpr *ml_predict_expr) const
 
virtual std::set< const
Analyzer::ColumnVar * > 
visitPCAProject (const Analyzer::PCAProjectExpr *pca_project_expr) 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 * > 
visitRangeJoinOper (const Analyzer::RangeOper *range_oper) const
 
virtual void visitBegin () 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 623 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 642 of file HashJoin.cpp.

References run_benchmark_import::result.

644  {
645  auto result = aggregate;
646  result.insert(next_result.begin(), next_result.end());
647  return result;
648  }
std::set<const Analyzer::ColumnVar*> AllColumnVarsVisitor::visitColumnVar ( const Analyzer::ColumnVar column) const
inlineoverrideprotectedvirtual

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

Definition at line 626 of file HashJoin.cpp.

627  {
628  return {column};
629  }
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 631 of file HashJoin.cpp.

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

632  {
633  AllColumnVarsVisitor visitor;
634  std::set<const Analyzer::ColumnVar*> result;
635  for (const auto& expr_component : expr_tuple->getTuple()) {
636  const auto component_rte_set = visitor.visit(expr_component.get());
637  result.insert(component_rte_set.begin(), component_rte_set.end());
638  }
639  return result;
640  }
T visit(const Analyzer::Expr *expr) const
const std::vector< std::shared_ptr< Analyzer::Expr > > & getTuple() const
Definition: Analyzer.h:253

+ Here is the call graph for this function:


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