[
https://issues.apache.org/jira/browse/ARROW-1403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wes McKinney updated ARROW-1403:
--------------------------------
Fix Version/s: (was: 0.7.0)
> [C++] Add variant of SerializeRecordBatch that accepts an writer-allocator
> callback
> -----------------------------------------------------------------------------------
>
> Key: ARROW-1403
> URL: https://issues.apache.org/jira/browse/ARROW-1403
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Wes McKinney
>
> When writing to other kinds of interfaces, like GPU, it would be useful to be
> able to pass a function or closure that can instantiate an instance of
> {{OutputStream}} (which might write to CPU memory, GPU, etc.) given the
> computed size of the record batch. Currently we allocate new CPU memory and
> write to that buffer, but this would eliminate an intermediate copy.
> So something like
> {code}
> typedef std::function<Status(const int64_t, std::unique_ptr<OutputStream>*)>
> StreamCreator;
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)