Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
This will be the reader companion to arrow::io::BufferedOutputStream and a C++-like version of the io.BufferedReader class in the Python standard library
https://docs.python.org/3/library/io.html#io.BufferedReader
We already have a partial version of this that's used in the Parquet library
https://github.com/apache/arrow/blob/master/cpp/src/parquet/util/memory.h#L413
In particular we need
- Seek implemented for random access (it will invalidate the buffer)
- Peek method returning shared_ptr<Buffer>, a zero copy view into buffered memory
This is needed for ARROW-3126