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

Method createInternal

bolt/vector/ComplexVector.cpp:1373–1388  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

1371 BaseVector::resize(newSize, false);
1372 bits::fillBits(mutableRawNulls(), oldSize, newSize, bits::kNull);
1373}
1374
1375// static
1376CompositeRowVectorPtr CompositeRowVector::createInternal(
1377 const TypePtr& type,
1378 vector_size_t size,
1379 bolt::memory::MemoryPool* pool,
1380 std::unique_ptr<SelectivityVector> validColumns) {
1381 std::vector<VectorPtr> children;
1382 auto&& rowType = type->as<TypeKind::ROW>();
1383 children.resize(rowType.size());
1384 if (validColumns) {
1385 validColumns->applyToSelected([&](vector_size_t row) {
1386 children[row] = BaseVector::create(rowType.childAt(row), size, pool);
1387 });
1388 }
1389 return std::make_shared<CompositeRowVector>(
1390 type, size, pool, std::move(validColumns), std::move(children));
1391}

Callers

nothing calls this directly

Calls 5

applyToSelectedMethod · 0.80
childAtMethod · 0.80
createFunction · 0.70
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected