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

Method toString

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

Source from the content-addressed store, hash-verified

70std::shared_ptr<arrow::RecordBatch> RecordBatch::unwrap() { return record_batch; }
71
72void 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
82libmexclass::proxy::MakeResult RecordBatch::make(
83 const libmexclass::proxy::FunctionArguments& constructor_arguments) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected