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

Function complexGatherCopy

bolt/exec/OperatorUtils.cpp:111–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void complexGatherCopy(
112 BaseVector* target,
113 vector_size_t targetIndex,
114 vector_size_t count,
115 const std::vector<const RowVector*>& sources,
116 const std::vector<vector_size_t>& sourceIndices,
117 column_index_t sourceChannel) {
118 for (int i = 0; i < count; ++i) {
119 target->copy(
120 sources[i]->childAt(sourceChannel).get(),
121 targetIndex + i,
122 sourceIndices[i],
123 1);
124 }
125}
126
127// We want to aggregate some operator runtime metrics per operator rather than
128// per event. This function returns true for such metrics.

Callers 1

gatherCopyFunction · 0.85

Calls 3

childAtMethod · 0.80
copyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected