| 58 | } |
| 59 | |
| 60 | static void copyInternalID(ValueVector* srcVector, ValueVector* dstIDVector, |
| 61 | ValueVector* dstLabelVector, |
| 62 | const std::unordered_map<common::table_id_t, std::string>& tableIDToName) { |
| 63 | auto srcDataVector = ListVector::getDataVector(srcVector); |
| 64 | for (auto i = 0u; i < ListVector::getDataVectorSize(srcVector); ++i) { |
| 65 | auto id = srcDataVector->getValue<internalID_t>(i); |
| 66 | dstIDVector->setValue(i, id); |
| 67 | StringVector::addString(dstLabelVector, i, tableIDToName.at(id.tableID)); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | // TODO(Xiyang): revisit me. Instead of printing in src->dst order. Maybe left->right order make |
| 72 | // more sense. |
no test coverage detected