Skip to content

Commit

Permalink
Add writeTable method to RecordBatchFileWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Jun 18, 2024
1 parent aae2fb6 commit e8f9043
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions matlab/src/matlab/+arrow/+io/+ipc/RecordBatchFileWriter.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,15 @@ function writeRecordBatch(obj, recordBatch)
args = struct(RecordBatchProxyID=recordBatch.Proxy.ID);
obj.Proxy.writeRecordBatch(args);
end

function writeTable(obj, arrowTable)
arguments
obj(1, 1) arrow.io.ipc.RecordBatchFileWriter
arrowTable(1, 1) arrow.tabular.RecordBatch
end

args = struct(TableProxyID=arrowTable.Proxy.ID);
obj.Proxy.writeTable(args);
end
end
end

0 comments on commit e8f9043

Please sign in to comment.