static
| 1371 | BaseVector::resize(newSize, false); |
| 1372 | bits::fillBits(mutableRawNulls(), oldSize, newSize, bits::kNull); |
| 1373 | } |
| 1374 | |
| 1375 | // static |
| 1376 | CompositeRowVectorPtr 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 | } |
nothing calls this directly
no test coverage detected