From ffd2b770099121c8e4ccd6373f8b131f443e1fab Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Fri, 24 May 2024 11:25:08 -0400 Subject: [PATCH] export method should not be static --- .../src/matlab/+arrow/+tabular/RecordBatch.m | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/matlab/src/matlab/+arrow/+tabular/RecordBatch.m b/matlab/src/matlab/+arrow/+tabular/RecordBatch.m index 3e94a6504c454..da5c1fc1c3764 100644 --- a/matlab/src/matlab/+arrow/+tabular/RecordBatch.m +++ b/matlab/src/matlab/+arrow/+tabular/RecordBatch.m @@ -102,6 +102,19 @@ function tf = isequal(obj, varargin) tf = arrow.tabular.internal.isequal(obj, varargin{:}); end + + function export(obj, cArrowArrayAddress, cArrowSchemaAddress) + arguments + obj(1, 1) arrow.tabular.RecordBatch + cArrowArrayAddress(1, 1) uint64 + cArrowSchemaAddress(1, 1) uint64 + end + args = struct(... + ArrowArrayAddress=cArrowArrayAddress,... + ArrowSchemaAddress=cArrowSchemaAddress... + ); + obj.Proxy.exportToC(args); + end end methods (Access = private) @@ -142,21 +155,6 @@ function displayScalarObject(obj) recordBatch = arrow.tabular.RecordBatch(proxy); end - function export(obj, cArrowArrayAddress, cArrowSchemaAddress) - arguments - obj(1, 1) arrow.tabular.RecordBatch - cArrowArrayAddress(1, 1) uint64 - cArrowSchemaAddress(1, 1) uint64 - end - args = struct(... - ArrowArrayAddress=cArrowArrayAddress,... - ArrowSchemaAddress=cArrowSchemaAddress... - ); - obj.Proxy.exportToC(args); - end - end - - methods(Static) function recordBatch = import(cArray, cSchema) arguments cArray(1, 1) arrow.c.Array