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

Method toString

src/processor/operator/scan/scan_rel_table.cpp:37–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37std::string ScanRelTablePrintInfo::toString() const {
38 std::string result = "Tables: ";
39 for (auto& tableName : tableNames) {
40 result += tableName;
41 if (tableName != tableNames.back()) {
42 result += ", ";
43 }
44 }
45 if (!alias.empty()) {
46 result += ",Alias: ";
47 result += alias;
48 }
49 result += ",Direction: (";
50 result += boundNode->toString();
51 result += ")";
52 switch (direction) {
53 case ExtendDirection::FWD: {
54 result += "-[";
55 result += rel->detailsToString();
56 result += "]->";
57 } break;
58 case ExtendDirection::BWD: {
59 result += "<-[";
60 result += rel->detailsToString();
61 result += "]-";
62 } break;
63 case ExtendDirection::BOTH: {
64 result += "<-[";
65 result += rel->detailsToString();
66 result += "]->";
67 } break;
68 default:
69 UNREACHABLE_CODE;
70 }
71 result += "(";
72 result += nbrNode->toString();
73 result += ")";
74 if (!properties.empty()) {
75 result += ",Properties: ";
76 result += binder::ExpressionUtil::toString(properties);
77 }
78 return result;
79}
80
81void ScanRelTableInfo::initScanState(TableScanState& scanState,
82 const std::vector<ValueVector*>& outVectors, main::ClientContext* context) {

Callers

nothing calls this directly

Calls 3

detailsToStringMethod · 0.80
toStringFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected