| 225 | } |
| 226 | |
| 227 | void PrintTuple(const Tuple* t, const TupleDescriptor& tuple_d, stringstream* out) { |
| 228 | // The whole tuple is null |
| 229 | if (t == nullptr) { |
| 230 | *out << "null"; |
| 231 | return; |
| 232 | } |
| 233 | *out << "("; |
| 234 | for (int i = 0; i < tuple_d.slots().size(); ++i) { |
| 235 | if (i != 0) { |
| 236 | *out << " "; |
| 237 | } |
| 238 | const SlotDescriptor& slot_d = *tuple_d.slots()[i]; |
| 239 | PrintSlot(t, slot_d, out); |
| 240 | } |
| 241 | *out << ")"; |
| 242 | } |
| 243 | |
| 244 | string PrintTuple(const Tuple* t, const TupleDescriptor& tuple_d) { |
| 245 | stringstream out; |
no test coverage detected