| 206 | } |
| 207 | |
| 208 | void 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 | |
| 222 | void RecordBatch::getRowAsString(libmexclass::proxy::method::Context& context) { |
| 223 | namespace mda = ::matlab::data; |