MCPcopy Create free account
hub / github.com/bytedance/bolt / copyRow

Function copyRow

bolt/exec/MergeJoin.cpp:296–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294
295namespace {
296void copyRow(
297 const RowVectorPtr& source,
298 vector_size_t sourceIndex,
299 const RowVectorPtr& target,
300 vector_size_t targetIndex,
301 const std::vector<IdentityProjection>& projections) {
302 for (const auto& projection : projections) {
303 const auto& sourceChild = source->childAt(projection.inputChannel);
304 const auto& targetChild = target->childAt(projection.outputChannel);
305 targetChild->copy(sourceChild.get(), targetIndex, sourceIndex, 1);
306 }
307}
308
309// MergeJoin fills 'indices' incrementally as output rows are appended.
310// Therefore we must keep a dictionary directly over the input child and must

Callers 5

spillMethod · 0.85
storeRowsMethod · 0.85
storeRowsMethod · 0.85
storeRowsMethod · 0.85
addOutputRowMethod · 0.85

Calls 3

childAtMethod · 0.80
copyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected