[jira] [Commented] (AVRO-2076) Combine already serialized Avro records to an Avro file

2017-09-15 Thread Erik van Oosten (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-2076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16167422#comment-16167422
 ] 

Erik van Oosten commented on AVRO-2076:
---

Awesome! Thanks Doug. Somehow I missed that method.

> Combine already serialized Avro records to an Avro file
> ---
>
> Key: AVRO-2076
> URL: https://issues.apache.org/jira/browse/AVRO-2076
> Project: Avro
>  Issue Type: Wish
>Reporter: Erik van Oosten
>
> In some use cases Avro events arrive already serialized (e.g. when listening 
> to a Kafka topic). It would be great if there would an API that allows 
> writing an Avro file without the need for deserializing and serializing these 
> Avro records.
> Providing such an API allows for very efficient creation of Avro files: given 
> that these Avro records are written with the same schema, an Avro file would 
> write will the exact same bytes anyway (before block compression).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (AVRO-2076) Combine already serialized Avro records to an Avro file

2017-09-14 Thread Doug Cutting (JIRA)

[ 
https://issues.apache.org/jira/browse/AVRO-2076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16166858#comment-16166858
 ] 

Doug Cutting commented on AVRO-2076:


Doesn't DataFileWriter#appendEncoded() already provide this?

https://avro.apache.org/docs/1.8.2/api/java/org/apache/avro/file/DataFileWriter.html#appendEncoded(java.nio.ByteBuffer)


> Combine already serialized Avro records to an Avro file
> ---
>
> Key: AVRO-2076
> URL: https://issues.apache.org/jira/browse/AVRO-2076
> Project: Avro
>  Issue Type: Wish
>Reporter: Erik van Oosten
>
> In some use cases Avro events arrive already serialized (e.g. when listening 
> to a Kafka topic). It would be great if there would an API that allows 
> writing an Avro file without the need for deserializing and serializing these 
> Avro records.
> Providing such an API allows for very efficient creation of Avro files: given 
> that these Avro records are written with the same schema, an Avro file would 
> write will the exact same bytes anyway (before block compression).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)