You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2020/02/18 18:17:00 UTC

[jira] [Closed] (ARROW-1470) [C++] Add BufferAllocator abstract interface

     [ https://issues.apache.org/jira/browse/ARROW-1470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Pitrou closed ARROW-1470.
---------------------------------
    Fix Version/s: 1.0.0
       Resolution: Fixed

I believe the functionality is now provided by the Device and MemoryManager abstractions, so closing.

> [C++] Add BufferAllocator abstract interface
> --------------------------------------------
>
>                 Key: ARROW-1470
>                 URL: https://issues.apache.org/jira/browse/ARROW-1470
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Wes McKinney
>            Priority: Major
>             Fix For: 1.0.0
>
>
> There are some situations ({{arrow::ipc::SerializeRecordBatch}} where we pass a {{MemoryPool*}} solely to call {{AllocateBuffer}} using it. This is not as flexible as it could be, since there are situation where we may wish to allocate from shared memory instead. 
> So instead:
> {code}
> Func(..., BufferAllocator* allocator, ...) {
>   ...
>   std::shared_ptr<Buffer> buffer;
>   RETURN_NOT_OK(allocator->Allocate(nbytes, &buffer));
>   ...
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)