Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-3782

[C++] Implement BufferedReader for C++

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • C++

    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

      Attachments

        Activity

          People

            wesm Wes McKinney
            wesm Wes McKinney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4.5h
                4.5h