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/08/23 03:26:01 UTC

[jira] [Created] (ARROW-1403) [C++] Add variant of SerializeRecordBatch that accepts an writer-allocator callback

Wes McKinney created ARROW-1403:
-----------------------------------

             Summary: [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
             Fix For: 0.7.0


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)