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

Method RowType

bolt/type/Type.cpp:364–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362} // namespace
363
364RowType::RowType(std::vector<std::string>&& names, std::vector<TypePtr>&& types)
365 : names_{std::move(names)},
366 children_{std::move(types)},
367 parameters_{createTypeParameters(children_)} {
368 BOLT_CHECK_EQ(
369 names_.size(),
370 children_.size(),
371 "Mismatch names/types sizes: {}",
372 namesAndTypesToString(names_, children_));
373 for (auto& child : children_) {
374 BOLT_CHECK_NOT_NULL(
375 child,
376 "Child types cannot be null: {}",
377 namesAndTypesToString(names_, children_));
378 }
379}
380
381uint32_t RowType::size() const {
382 return children_.size();

Callers

nothing calls this directly

Calls 3

createTypeParametersFunction · 0.85
namesAndTypesToStringFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected