| 2304 | } |
| 2305 | |
| 2306 | Result<std::shared_ptr<Schema>> ReadSchema() { |
| 2307 | struct ArrowSchema c_schema = {}; |
| 2308 | ARROW_RETURN_NOT_OK( |
| 2309 | StatusFromCError(&stream_, stream_.get_schema(&stream_, &c_schema))); |
| 2310 | ARROW_ASSIGN_OR_RAISE(auto schema, ImportSchema(&c_schema)); |
| 2311 | return schema; |
| 2312 | } |
| 2313 | |
| 2314 | Result<std::shared_ptr<Field>> ReadField() { |
| 2315 | struct ArrowSchema c_schema = {}; |