Skip to content

Commit

Permalink
export method should not be static
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed May 24, 2024
1 parent 817dcfd commit ffd2b77
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions matlab/src/matlab/+arrow/+tabular/RecordBatch.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ffd2b77

Please sign in to comment.