MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / mapFilter

Method mapFilter

src/processor/map/map_filter.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace processor {
10
11std::unique_ptr<PhysicalOperator> PlanMapper::mapFilter(const LogicalOperator* logicalOperator) {
12 auto& logicalFilter = logicalOperator->constCast<LogicalFilter>();
13 auto inSchema = logicalFilter.getChild(0)->getSchema();
14 auto prevOperator = mapOperator(logicalOperator->getChild(0).get());
15 auto exprMapper = ExpressionMapper(inSchema);
16 auto physicalRootExpr = exprMapper.getEvaluator(logicalFilter.getPredicate());
17 auto printInfo = std::make_unique<FilterPrintInfo>(logicalFilter.getPredicate());
18 return make_unique<Filter>(std::move(physicalRootExpr), logicalFilter.getGroupPosToSelect(),
19 std::move(prevOperator), getOperatorID(), std::move(printInfo));
20}
21
22} // namespace processor
23} // namespace lbug

Callers

nothing calls this directly

Calls 7

ExpressionMapperClass · 0.85
getOperatorIDFunction · 0.85
getEvaluatorMethod · 0.80
getChildMethod · 0.45
getMethod · 0.45
getPredicateMethod · 0.45
getGroupPosToSelectMethod · 0.45

Tested by

no test coverage detected