avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1502) Avro objects should implement Serializable
Date Thu, 28 Aug 2014 19:45:10 GMT

    [ 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)

Mime
View raw message