kevingurney opened a new pull request, #37044:
URL: https://github.com/apache/arrow/pull/37044
### Rationale for this change
Now that we've have the basic building blocks for tabular IO in the MATLAB
Interface (Array, Schema, RecordBatch), we can implement a Feather V1 reader in
terms of the new APIs.
This is a follow up to #37043, where a new Feather V1 internal `Writer`
object was added.
### What changes are included in this PR?
1. Added a new class called arrow.internal.io.feather.Reader which can be
used to read Feather V1 files. It has one public property named `Filename` and
one public method named `read`.
**Example Usage:**
```matlab
>> T = array2table(rand(3))
T =
3x3 table
Var1 Var2 Var3
_______ ________ _______
0.79221 0.035712 0.67874
0.95949 0.84913 0.75774
0.65574 0.93399 0.74313
>> filename = "test.feather";
>> featherwrite(filename, T)
>> reader = arrow.internal.io.feather.Reader(filename)
reader =
Reader with properties:
Filename: "test.feather"
>> T = reader.read()
T =
3x3 table
Var1 Var2 Var3
_______ ________ _______
0.79221 0.035712 0.67874
0.95949 0.84913 0.75774
0.65574 0.93399 0.74313
```
### Are these changes tested?
Yes.
1. Added `Reader` to `feather/tRoundTrip.m`.
### Are there any user-facing changes?
No.
These are only internal objects right now.
### Future Directions
1. Re-implement `featherread` in terms of the new `Reader` object.
2. Remove legacy feather code and infrastructure.
### Notes
1. For conciseness, I renamed the C++ Proxy class `FeatherWriter` to
`Writer` since it is already inside of a `feather` namespace / "package".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]