| 294 | |
| 295 | namespace { |
| 296 | void 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 |