You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2014/08/28 21:45:10 UTC

[jira] [Commented] (AVRO-1502) Avro objects should implement Serializable

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

Doug Cutting commented on AVRO-1502:
------------------------------------

It's tempting to add 'extends Serializable' to GenericContainer.  But this would serialize the schema along with every instance which is probably too expensive.

So we might we limit this to specific-compiler-generated classes, which hold their schema in a static field.  To be safe, we should probably set the serialVersionUID to the schema fingerprint.  Also, SpecificFixed currently inherits from GenericData.Fixed which includes the schema as a field, so that needs to be changed so that it instead directly implements GenericFixed and uses the statically generated schema.

> Avro objects should implement Serializable
> ------------------------------------------
>
>                 Key: AVRO-1502
>                 URL: https://issues.apache.org/jira/browse/AVRO-1502
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>            Reporter: Jeff Hammerbacher
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)