| 215 | } |
| 216 | |
| 217 | void Table::getSchema(libmexclass::proxy::method::Context& context) { |
| 218 | namespace mda = ::matlab::data; |
| 219 | using namespace libmexclass::proxy; |
| 220 | using SchemaProxy = arrow::matlab::tabular::proxy::Schema; |
| 221 | mda::ArrayFactory factory; |
| 222 | |
| 223 | const auto schema = table->schema(); |
| 224 | const auto schema_proxy = std::make_shared<SchemaProxy>(std::move(schema)); |
| 225 | const auto schema_proxy_id = ProxyManager::manageProxy(schema_proxy); |
| 226 | const auto schema_proxy_id_mda = factory.createScalar(schema_proxy_id); |
| 227 | |
| 228 | context.outputs[0] = schema_proxy_id_mda; |
| 229 | } |
| 230 | |
| 231 | void Table::getColumnByIndex(libmexclass::proxy::method::Context& context) { |
| 232 | using ChunkedArrayProxy = arrow::matlab::array::proxy::ChunkedArray; |