You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2017/09/06 12:50:00 UTC
[jira] [Created] (ARROW-1470) [C++] Add BufferAllocator abstract
interface
Wes McKinney created ARROW-1470:
-----------------------------------
Summary: [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
Fix For: 0.7.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
(v6.4.14#64029)