Skip to content

Commit ffd2b77

Browse files
committed
export method should not be static
1 parent 817dcfd commit ffd2b77

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

Diff for: matlab/src/matlab/+arrow/+tabular/RecordBatch.m

+13-15
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,19 @@
102102
function tf = isequal(obj, varargin)
103103
tf = arrow.tabular.internal.isequal(obj, varargin{:});
104104
end
105+
106+
function export(obj, cArrowArrayAddress, cArrowSchemaAddress)
107+
arguments
108+
obj(1, 1) arrow.tabular.RecordBatch
109+
cArrowArrayAddress(1, 1) uint64
110+
cArrowSchemaAddress(1, 1) uint64
111+
end
112+
args = struct(...
113+
ArrowArrayAddress=cArrowArrayAddress,...
114+
ArrowSchemaAddress=cArrowSchemaAddress...
115+
);
116+
obj.Proxy.exportToC(args);
117+
end
105118
end
106119

107120
methods (Access = private)
@@ -142,21 +155,6 @@ function displayScalarObject(obj)
142155
recordBatch = arrow.tabular.RecordBatch(proxy);
143156
end
144157

145-
function export(obj, cArrowArrayAddress, cArrowSchemaAddress)
146-
arguments
147-
obj(1, 1) arrow.tabular.RecordBatch
148-
cArrowArrayAddress(1, 1) uint64
149-
cArrowSchemaAddress(1, 1) uint64
150-
end
151-
args = struct(...
152-
ArrowArrayAddress=cArrowArrayAddress,...
153-
ArrowSchemaAddress=cArrowSchemaAddress...
154-
);
155-
obj.Proxy.exportToC(args);
156-
end
157-
end
158-
159-
methods(Static)
160158
function recordBatch = import(cArray, cSchema)
161159
arguments
162160
cArray(1, 1) arrow.c.Array

0 commit comments

Comments
 (0)