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

Method getSchema

matlab/src/cpp/arrow/matlab/tabular/proxy/table.cc:217–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void 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
231void Table::getColumnByIndex(libmexclass::proxy::method::Context& context) {
232 using ChunkedArrayProxy = arrow::matlab::array::proxy::ChunkedArray;

Callers 1

record_batchFunction · 0.45

Calls 1

schemaMethod · 0.45

Tested by

no test coverage detected