LogicalFilter represents a filter operation (e.g. WHERE or HAVING clause).
More...
|
|
static constexpr const LogicalOperatorType | TYPE = LogicalOperatorType::LOGICAL_FILTER |
|
| void | ResolveTypes () override |
| | Resolve types for this specific operator.
|
LogicalFilter represents a filter operation (e.g. WHERE or HAVING clause).
◆ LogicalFilter() [1/2]
382165 : LogicalOperator(LogicalOperatorType::LOGICAL_FILTER) {
382168}
vector< unique_ptr< Expression > > expressions
The set of expressions contained within the operator, if any.
Definition duckdb.hpp:21264
◆ LogicalFilter() [2/2]
| duckdb::LogicalFilter::LogicalFilter |
( |
| ) |
|
382170 : LogicalOperator(LogicalOperatorType::LOGICAL_FILTER) {
382171}
◆ GetColumnBindings()
Reimplemented from duckdb::LogicalOperator.
382177 {
382178 return MapBindings(
children[0]->GetColumnBindings(), projection_map);
382179}
vector< unique_ptr< LogicalOperator > > children
The set of children of the operator.
Definition duckdb.hpp:21262
◆ HasProjectionMap()
| bool duckdb::LogicalFilter::HasProjectionMap |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Serialize()
| void duckdb::LogicalFilter::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::LogicalOperator.
416795 {
416796 LogicalOperator::Serialize(serializer);
416797 serializer.WritePropertyWithDefault<vector<unique_ptr<Expression>>>(200,
"expressions",
expressions);
416798 serializer.WritePropertyWithDefault<vector<idx_t>>(201, "projection_map", projection_map);
416799}
◆ Deserialize()
416801 {
416802 auto result = duckdb::unique_ptr<LogicalFilter>(new LogicalFilter());
416803 deserializer.ReadPropertyWithDefault<vector<unique_ptr<Expression>>>(200, "expressions", result->expressions);
416804 deserializer.ReadPropertyWithDefault<vector<idx_t>>(201, "projection_map", result->projection_map);
416805 return std::move(result);
416806}
◆ SplitPredicates() [1/2]
| bool duckdb::LogicalFilter::SplitPredicates |
( |
| ) |
|
|
inline |
◆ SplitPredicates() [2/2]
Splits up the predicates of the LogicalFilter into a set of predicates separated by AND Returns whether or not any splits were made
382184 {
382185 bool found_conjunction = false;
382187 if (
expressions[i]->GetExpressionType() == ExpressionType::CONJUNCTION_AND) {
382188 auto &conjunction =
expressions[i]->Cast<BoundConjunctionExpression>();
382189 found_conjunction = true;
382190
382191 for (
idx_t k = 1; k < conjunction.children.size(); k++) {
382192 expressions.push_back(std::move(conjunction.children[k]));
382193 }
382194
382195 expressions[i] = std::move(conjunction.children[0]);
382196
382197
382198 i--;
382199 }
382200 }
382201 return found_conjunction;
382202}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
◆ ResolveTypes()
| void duckdb::LogicalFilter::ResolveTypes |
( |
| ) |
|
|
overrideprotectedvirtual |
Resolve types for this specific operator.
Implements duckdb::LogicalOperator.
382173 {
382175}
vector< LogicalType > types
The types returned by this logical operator. Set by calling LogicalOperator::ResolveTypes.
Definition duckdb.hpp:21266
The documentation for this class was generated from the following file: