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

[C++] Add a const overload to MemoryMappedFile::GetSize

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.11.1
    • 0.12.0
    • C++

    Description

       

      While GetSize in general is not a const function, it can be on a MemoryMappedFile. I propose to add a const override directly to the MemoryMappedFile.

      Alternatively we could add a const version on the RandomAccessFile level which would fail, if a const size getting (e.g. without a seek) isn't possible, but it seems to me to be a potential source of hard-to-debug bugs and spurious failures. At would at least require a careful analysis of the platform support of different size getting options.

      Attachments

        Issue Links

          Activity

            People

              alendit Dimitri Vorona
              alendit Dimitri Vorona
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 0.5h
                  0.5h