[ https://issues.apache.org/jira/browse/BEAM-1891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16681626#comment-16681626 ]
Jeff Klukas commented on BEAM-1891: ----------------------------------- Looks like the AutoValueExtension path won't work due to the fact that extensions are only able to add an additional layer to the class hierarchy. A default constructor for a new subclass needs to call a constructor for the already-generated superclass, which itself doesn't have a default constructor. So we'd need to pass in values for all the arguments in the constructor, which may be subject to validation constraints. > Java @Autovalue: currently doesn't have a good coder > ---------------------------------------------------- > > Key: BEAM-1891 > URL: https://issues.apache.org/jira/browse/BEAM-1891 > Project: Beam > Issue Type: Improvement > Components: sdk-java-core > Reporter: Stephen Sisk > Priority: Minor > Labels: newbie, starter > > In Java, @AutoValue classes are something that we would like developers to be > able to use in PCollections in Beam. > However, there doesn't appear to be a good existing Beam Coder for Autovalue > generated classes: > * Avrocoder doesn't work > * Serializable Coder works, but has other problems (larger/less efficient) > This is discussed fully at > https://lists.apache.org/thread.html/29617096819824d5c12247a246d316b763d9e583a21fff2f1c430077@%3Cdev.beam.apache.org%3E > > We may need to implement an AutoValueCoder. > cc [~pabloem] [~bchambers] -- This message was sent by Atlassian JIRA (v7.6.3#76005)