Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::AggregateExpressionMatcher Class Reference
Inheritance diagram for duckdb::AggregateExpressionMatcher:
Collaboration diagram for duckdb::AggregateExpressionMatcher:

Public Member Functions

bool Match (Expression &expr, vector< reference< Expression > > &bindings) override
Public Member Functions inherited from duckdb::ExpressionMatcher
 ExpressionMatcher (ExpressionClass type=ExpressionClass::INVALID)

Public Attributes

vector< unique_ptr< ExpressionMatcher > > matchers
 The matchers for the child expressions.
SetMatcher::Policy policy
 The set matcher matching policy to use.
unique_ptr< FunctionMatcher > function
 The function name to match.
Public Attributes inherited from duckdb::ExpressionMatcher
ExpressionClass expr_class
 The ExpressionClass of the to-be-matched expression. ExpressionClass::INVALID for ANY.
unique_ptr< ExpressionTypeMatcher > expr_type
 Matcher for the ExpressionType of the operator (nullptr for ANY).
unique_ptr< TypeMatcher > type
 Matcher for the return_type of the expression (nullptr for ANY).

Constructor & Destructor Documentation

◆ AggregateExpressionMatcher()

duckdb::AggregateExpressionMatcher::AggregateExpressionMatcher ( )
inline
69480 : ExpressionMatcher(ExpressionClass::BOUND_AGGREGATE) {
69481 }

Member Function Documentation

◆ Match()

bool duckdb::AggregateExpressionMatcher::Match ( Expression & expr,
vector< reference< Expression > > & bindings )
overridevirtual

Checks if the given expression matches this ExpressionMatcher. If it does, the expression is appended to the bindings list and true is returned. Otherwise, false is returned.

Reimplemented from duckdb::ExpressionMatcher.

315212 {
315213 if (!ExpressionMatcher::Match(expr_p, bindings)) {
315214 return false;
315215 }
315216 auto &expr = expr_p.Cast<BoundAggregateExpression>();
315217 if (!FunctionMatcher::Match(function, expr.function.name)) {
315218 return false;
315219 }
315220 // we should create matchers for these in the future
315221 if (expr.filter || expr.order_bys || expr.aggr_type != AggregateType::NON_DISTINCT) {
315222 return false;
315223 }
315224 if (!SetMatcher::Match(matchers, expr.children, bindings, policy)) {
315225 return false;
315226 }
315227 return true;
315228}
vector< unique_ptr< ExpressionMatcher > > matchers
The matchers for the child expressions.
Definition duckdb.cpp:69483
SetMatcher::Policy policy
The set matcher matching policy to use.
Definition duckdb.cpp:69485
unique_ptr< FunctionMatcher > function
The function name to match.
Definition duckdb.cpp:69487
virtual bool Match(Expression &expr, vector< reference< Expression > > &bindings)
Definition duckdb.cpp:315124
Here is the call graph for this function:

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