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

[Rust] Refactor MutableBuffer's resize

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • Rust

    Description

      Currently `MutableBuffer#resize` adjust the buffer's capacity. This is slightly confusing, and is not conforming with Rust's as vector, as well as C++'s buffer impl.

      This proposes to rename the `resize` to `reserve`, and modify the current `set_len` to `resize`. We'll also allow `resize` to shrink the buffer so as to free up unnecessary space.

      Attachments

        Issue Links

          Activity

            People

              csun Chao Sun
              csun Chao Sun
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1.5h
                  1.5h