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

Function wrapChildren

bolt/exec/LocalPartition.cpp:465–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465RowVectorPtr
466wrapChildren(const RowVectorPtr& input, vector_size_t size, BufferPtr indices) {
467 std::vector<VectorPtr> wrappedChildren;
468 wrappedChildren.reserve(input->type()->size());
469 for (auto i = 0; i < input->type()->size(); i++) {
470 wrappedChildren.emplace_back(BaseVector::wrapInDictionary(
471 BufferPtr(nullptr), indices, size, input->childAt(i)));
472 }
473
474 return std::make_shared<RowVector>(
475 input->pool(), input->type(), BufferPtr(nullptr), size, wrappedChildren);
476}
477} // namespace
478
479void LocalPartition::notifyPeersToTerminate() {

Callers 1

addInputMethod · 0.70

Calls 6

wrapInDictionaryFunction · 0.85
childAtMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
typeMethod · 0.45
poolMethod · 0.45

Tested by

no test coverage detected