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

Method ExportSchema

cpp/src/arrow/c/bridge.cc:205–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.

Callers 2

ExportSchemaFunction · 0.80

Calls 4

OKFunction · 0.50
fieldsMethod · 0.45
getMethod · 0.45
metadataMethod · 0.45

Tested by 1