MCPcopy Create free account
hub / github.com/apache/fory / StructType

Method StructType

cpp/fory/row/schema.h:315–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313class StructType : public DataType {
314public:
315 explicit StructType(std::vector<FieldPtr> fields)
316 : DataType(TypeId::STRUCT), fields_(std::move(fields)) {
317 for (size_t i = 0; i < fields_.size(); ++i) {
318 name_to_index_[fields_[i]->name()] = static_cast<int>(i);
319 }
320 }
321
322 std::string name() const override { return "struct"; }
323

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected