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

Method GetStructType

python/pyarrow/src/arrow/python/inference.cc:742–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740 }
741
742 Status GetStructType(std::shared_ptr<DataType>* out) {
743 std::vector<std::shared_ptr<Field>> fields;
744 fields.reserve(struct_inferrers_.size());
745 for (auto& it : struct_inferrers_) {
746 std::shared_ptr<DataType> field_type;
747 RETURN_NOT_OK(it.second.GetType(&field_type));
748 fields.emplace_back(field(it.first, field_type));
749 }
750 *out = struct_(fields);
751 return Status::OK();
752 }
753
754 private:
755 bool pandas_null_sentinels_;

Callers

nothing calls this directly

Calls 7

struct_Function · 0.85
emplace_backMethod · 0.80
fieldFunction · 0.50
OKFunction · 0.50
reserveMethod · 0.45
sizeMethod · 0.45
GetTypeMethod · 0.45

Tested by

no test coverage detected