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

Method getName

matlab/src/cpp/arrow/matlab/type/proxy/field.cc:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36std::shared_ptr<arrow::Field> Field::unwrap() { return field; }
37
38void Field::getName(libmexclass::proxy::method::Context& context) {
39 namespace mda = ::matlab::data;
40 mda::ArrayFactory factory;
41
42 const auto& str_utf8 = field->name();
43 MATLAB_ASSIGN_OR_ERROR_WITH_CONTEXT(const auto str_utf16,
44 arrow::util::UTF8StringToUTF16(str_utf8), context,
45 error::UNICODE_CONVERSION_ERROR_ID);
46 auto str_mda = factory.createScalar(str_utf16);
47 context.outputs[0] = str_mda;
48}
49
50void Field::getType(libmexclass::proxy::method::Context& context) {
51 const auto& datatype = field->type();

Callers 2

fieldFunction · 0.80
RemoveUnusedFunctionsMethod · 0.80

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected