| 997 | |
| 998 | struct SchemaImporter { |
| 999 | Status Import(struct ArrowSchema* src) { |
| 1000 | if (ArrowSchemaIsReleased(src)) { |
| 1001 | return Status::Invalid("Cannot import released ArrowSchema"); |
| 1002 | } |
| 1003 | guard_.Reset(src); |
| 1004 | recursion_level_ = 0; |
| 1005 | c_struct_ = src; |
| 1006 | return DoImport(); |
| 1007 | } |
| 1008 | |
| 1009 | Result<std::shared_ptr<Field>> MakeField() const { |
| 1010 | const char* name = c_struct_->name ? c_struct_->name : ""; |
nothing calls this directly
no test coverage detected