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

Method encodeScanNodeTable

src/planner/operator/logical_plan_util.cpp:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void LogicalPlanUtil::encodeScanNodeTable(LogicalOperator* logicalOperator,
93 std::string& encodeString) {
94 auto& scan = logicalOperator->constCast<LogicalScanNodeTable>();
95 if (scan.getScanType() == LogicalScanNodeTableType::PRIMARY_KEY_SCAN ||
96 scan.getScanType() == LogicalScanNodeTableType::SECONDARY_INDEX_SCAN) {
97 encodeString += "IndexScan";
98 } else {
99 encodeString += "S";
100 }
101 encodeString +=
102 "(" + scan.getNodeID()->constCast<PropertyExpression>().getRawVariableName() + ")";
103}
104
105void LogicalPlanUtil::encodeFilter(LogicalOperator*, std::string& encodedString) {
106 encodedString += "Filter()";

Callers

nothing calls this directly

Calls 2

getScanTypeMethod · 0.80
getNodeIDMethod · 0.45

Tested by

no test coverage detected