You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…#44925)
### Rationale for this change
To enable support for the IPC Streaming format in the MATLAB interface, we should add a `RecordBatchStreamWriter` class.
### What changes are included in this PR?
Added `arrow.io.ipc.RecordBatchStreamWriter` class.
**Example Usage:**
```matlab
>> city = ["Boston" "Seattle" "Denver" "Juno" "Anchorage" "Chicago"]';
>> daylength = duration(["15:17:01" "15:59:16" "14:59:14" "19:21:23" "14:18:24" "15:13:39"])';
>> matlabTable = table(city, daylength, VariableNames=["City", "DayLength"]);
>> recordBatch1 = arrow.recordBatch(matlabTable(1:4, :))
>> recordBatch2 = arrow.recordBatch(matlabTable(5:end, :));
>> writer = arrow.io.ipc.RecordBatchStreamWriter("daylight.arrow", recordBatch1.Schema);
>> writer.writeRecordBatch(recordBatch1);
>> writer.writeRecordBatch(recordBatch2);
>> writer.close();
```
### Are these changes tested?
Yes. I Parameterized the test cases in `test/arrow/io/ipc/tRecordBatchWriter.m` to test the behavior of both `arrow.io.ipc.RecordBatchFileWriter` AND `arrow.io.ipc.RecordBatchStreamWriter`.
### Are there any user-facing changes?
Yes. Users can now use `arrow.io.ipc.RecordBatchStreamWriter` to serialize `RecordBatch`es/`Table`s to the Arrow IPC Streaming format.
### Future Directions
1. #44923
* GitHub Issue: #44922
Lead-authored-by: Sarah Gilmore <[email protected]>
Co-authored-by: Sarah Gilmore <[email protected]>
Co-authored-by: Kevin Gurney <[email protected]>
Co-authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sarah Gilmore <[email protected]>
kevingurney
changed the title
[MATLAB] Add IPC RecordBatchStreamFileReader MATLAB class
[MATLAB] Add IPC RecordBatchStreamReader MATLAB class
Dec 4, 2024
Describe the enhancement requested
To enable support for the IPC Streaming format in the MATLAB interface, we should add a
RecordBatchStreamReader
class.This is a followup issue to #44922
Component(s)
MATLAB
The text was updated successfully, but these errors were encountered: