[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (ARROW-3649) Refactor MutableBuffer's resize

Chao Sun created ARROW-3649:

             Summary: Refactor MutableBuffer's resize
                 Key: ARROW-3649
                 URL: https://issues.apache.org/jira/browse/ARROW-3649
             Project: Apache Arrow
          Issue Type: Improvement
            Reporter: Chao Sun
            Assignee: Chao Sun

Currently `MutableBuffer#resize` adjust the buffer's capacity. This is slightly confusing, and is not conforming with Rust's as [vector|https://doc.rust-lang.org/std/vec/struct.Vec.html#method.resize], 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.

This message was sent by Atlassian JIRA