look at org.apache.arrow.vector.stream.MessageSerializer.

There are methods to serialize/deserialize to/from channels.

these could be adapted to byte arrays.

The apis are usually in terms of bytebuffers




On Tue, Apr 25, 2017 at 3:22 PM, Li Jin <ice.xell...@gmail.com> wrote:

> Hello,
>
> I am trying to serialize/deserialize ArrowRecordBatch in Java, but since
> the API has changed quite a bit from 0.2.0, I struggle to find how to do it
> correctly. I checked the test for ArrowFileWriter and ArrowFileReader, but
> it's still not clear to me how to do it. Can some one give an example or a
> pointer please, it would be very helpful.
>
> def serialize(records: ArrowRecordBatch): Array[Byte]
>
> def deserialize(bytes: Array[Byte]): ArrowRecordBatch
>
> Thank you,
> Li
>



-- 
Julien

Reply via email to