OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UsedColumnsVisitor Class Reference

#include <UsedColumnsVisitor.h>

+ Inheritance diagram for UsedColumnsVisitor:
+ Collaboration diagram for UsedColumnsVisitor:

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

Definition at line 21 of file UsedColumnsVisitor.h.

Member Function Documentation

std::unordered_set<int> UsedColumnsVisitor::aggregateResult ( const std::unordered_set< int > &  aggregate,
const std::unordered_set< int > &  next_result 
) const
inlineoverrideprotectedvirtual

Reimplemented from ScalarExprVisitor< std::unordered_set< int > >.

Definition at line 28 of file UsedColumnsVisitor.h.

References run_benchmark_import::result.

30  {
31  auto result = aggregate;
32  result.insert(next_result.begin(), next_result.end());
33  return result;
34  }
std::unordered_set<int> UsedColumnsVisitor::visitColumnVar ( const Analyzer::ColumnVar column) const
inlineoverrideprotectedvirtual

Reimplemented from ScalarExprVisitor< std::unordered_set< int > >.

Definition at line 23 of file UsedColumnsVisitor.h.

References Analyzer::ColumnVar::get_column_id().

24  {
25  return {column->get_column_id()};
26  }
int get_column_id() const
Definition: Analyzer.h:195

+ Here is the call graph for this function:


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