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

Function copyInternalID

src/processor/operator/path_property_probe.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60static 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.

Callers 1

getNextTuplesInternalMethod · 0.85

Calls 3

getDataVectorSizeFunction · 0.85
getDataVectorFunction · 0.50
setValueMethod · 0.45

Tested by

no test coverage detected