| 203 | } |
| 204 | |
| 205 | Status ExportSchema(const Schema& schema) { |
| 206 | static const StructType dummy_struct_type({}); |
| 207 | flags_ = 0; |
| 208 | |
| 209 | RETURN_NOT_OK(ExportFormat(dummy_struct_type)); |
| 210 | RETURN_NOT_OK(ExportChildren(schema.fields())); |
| 211 | RETURN_NOT_OK(ExportMetadata(schema.metadata().get())); |
| 212 | return Status::OK(); |
| 213 | } |
| 214 | |
| 215 | // Finalize exporting by setting C struct fields and allocating |
| 216 | // autonomous private data for each schema node. |