| 35 | } |
| 36 | |
| 37 | std::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 | |
| 81 | void ScanRelTableInfo::initScanState(TableScanState& scanState, |
| 82 | const std::vector<ValueVector*>& outVectors, main::ClientContext* context) { |
nothing calls this directly
no test coverage detected