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

Method getSchema

matlab/src/cpp/arrow/matlab/tabular/proxy/record_batch.cc:208–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void RecordBatch::getSchema(libmexclass::proxy::method::Context& context) {
209 namespace mda = ::matlab::data;
210 using namespace libmexclass::proxy;
211 using SchemaProxy = arrow::matlab::tabular::proxy::Schema;
212 mda::ArrayFactory factory;
213
214 const auto schema = record_batch->schema();
215 const auto schema_proxy = std::make_shared<SchemaProxy>(std::move(schema));
216 const auto schema_proxy_id = ProxyManager::manageProxy(schema_proxy);
217 const auto schema_proxy_id_mda = factory.createScalar(schema_proxy_id);
218
219 context.outputs[0] = schema_proxy_id_mda;
220}
221
222void RecordBatch::getRowAsString(libmexclass::proxy::method::Context& context) {
223 namespace mda = ::matlab::data;

Callers

nothing calls this directly

Calls 1

schemaMethod · 0.45

Tested by

no test coverage detected