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

Method encodePlan

src/planner/subplans_table.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45std::bitset<MAX_NUM_QUERY_VARIABLES> SubgraphPlans::encodePlan(const LogicalPlan& plan) {
46 auto schema = plan.getSchema();
47 std::bitset<MAX_NUM_QUERY_VARIABLES> result;
48 result.reset();
49 for (auto i = 0u; i < nodeIDsToEncode.size(); ++i) {
50 result[i] = schema->getGroup(schema->getGroupPos(*nodeIDsToEncode[i]))->isFlat();
51 }
52 return result;
53}
54
55std::vector<SubqueryGraph> DPLevel::getSubqueryGraphs() {
56 std::vector<SubqueryGraph> result;

Callers

nothing calls this directly

Calls 5

resetMethod · 0.45
sizeMethod · 0.45
isFlatMethod · 0.45
getGroupMethod · 0.45
getGroupPosMethod · 0.45

Tested by

no test coverage detected