Skip to content

Commit 97d60a0

Browse files
committed
Add static import method to arrow.tabular.RecordBatch
1 parent 273ed77 commit 97d60a0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

matlab/src/matlab/+arrow/+tabular/RecordBatch.m

+12
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,17 @@ function displayScalarObject(obj)
141141
proxy = arrow.internal.proxy.create(proxyName, args);
142142
recordBatch = arrow.tabular.RecordBatch(proxy);
143143
end
144+
145+
end
146+
147+
methods(Static)
148+
function recordBatch = import(cArray, cSchema)
149+
arguments
150+
cArray(1, 1) arrow.c.Array
151+
cSchema(1, 1) arrow.c.Schema
152+
end
153+
importer = arrow.c.internal.RecordBatchImporter();
154+
recordBatch = importer.import(cArray, cSchema);
155+
end
144156
end
145157
end

0 commit comments

Comments
 (0)