MCPcopy Create free account
hub / github.com/apache/arrow / type

Method type

cpp/src/arrow/array/builder_nested.cc:307–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307std::shared_ptr<DataType> StructBuilder::type() const {
308 DCHECK_EQ(type_->fields().size(), children_.size());
309 std::vector<std::shared_ptr<Field>> fields(children_.size());
310 for (int i = 0; i < static_cast<int>(fields.size()); ++i) {
311 fields[i] = type_->field(i)->WithType(children_[i]->type());
312 }
313 return struct_(std::move(fields));
314}
315
316} // namespace arrow

Callers 2

MapBuilderMethod · 0.45
FixedSizeListBuilderMethod · 0.45

Calls 5

struct_Function · 0.85
WithTypeMethod · 0.80
sizeMethod · 0.45
fieldsMethod · 0.45
fieldMethod · 0.45

Tested by

no test coverage detected