avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Upthegrove <tim.upthegr...@gmail.com>
Subject Re: correct way of saving data to file in C++, 1.8.2 api
Date Mon, 20 Nov 2017 20:49:56 GMT
I have not tested this, but it is possible that you all want the
avro::DataFileWriter<T> templated class.  I believe that class will ensure
the appropriate header information is in the Avro data file, and it has a
write method that takes in data of type T and serializes it, appending that
to the end of the file.  I am not sure what the avro::fileOutputStream
does, but perhaps it does not include the header information that is
expected in the Avro data file format.  The python class referenced in the
original email definitely does expect the header to be in place.  As I
mentioned before, I have not tested this, but I figured I'd throw this out
as a thread to pull on in case anyone was still stick.

Good luck,
Tim Upthegrove

On Tue, Oct 31, 2017 at 5:33 PM, iampete <peter.inskeep@excite.com> wrote:

> Did you ever work this out?  I am having the same problem.
> Thanks
>
>
>
>
> --
> Sent from: http://apache-avro.679487.n3.nabble.com/Avro-Users-f679479.html
>

Mime
View raw message