Skip to content

Commit

Permalink
Add static import method to arrow.tabular.RecordBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed May 23, 2024
1 parent 273ed77 commit 97d60a0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions matlab/src/matlab/+arrow/+tabular/RecordBatch.m
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,17 @@ function displayScalarObject(obj)
proxy = arrow.internal.proxy.create(proxyName, args);
recordBatch = arrow.tabular.RecordBatch(proxy);
end

end

methods(Static)
function recordBatch = import(cArray, cSchema)
arguments
cArray(1, 1) arrow.c.Array
cSchema(1, 1) arrow.c.Schema
end
importer = arrow.c.internal.RecordBatchImporter();
recordBatch = importer.import(cArray, cSchema);
end
end
end

0 comments on commit 97d60a0

Please sign in to comment.