| 70 | std::shared_ptr<arrow::RecordBatch> RecordBatch::unwrap() { return record_batch; } |
| 71 | |
| 72 | void RecordBatch::toString(libmexclass::proxy::method::Context& context) { |
| 73 | namespace mda = ::matlab::data; |
| 74 | MATLAB_ASSIGN_OR_ERROR_WITH_CONTEXT( |
| 75 | const auto utf16_string, arrow::util::UTF8StringToUTF16(record_batch->ToString()), |
| 76 | context, error::UNICODE_CONVERSION_ERROR_ID); |
| 77 | mda::ArrayFactory factory; |
| 78 | auto str_mda = factory.createScalar(utf16_string); |
| 79 | context.outputs[0] = str_mda; |
| 80 | } |
| 81 | |
| 82 | libmexclass::proxy::MakeResult RecordBatch::make( |
| 83 | const libmexclass::proxy::FunctionArguments& constructor_arguments) { |
nothing calls this directly
no outgoing calls
no test coverage detected