[ https://issues.apache.org/jira/browse/BEAM-1786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15977572#comment-15977572 ]
Luke Cwik commented on BEAM-1786: --------------------------------- Users should look at https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/coders/CoderRegistrar.java > AutoService registration of coders, like we do with PipelineRunners > ------------------------------------------------------------------- > > Key: BEAM-1786 > URL: https://issues.apache.org/jira/browse/BEAM-1786 > Project: Beam > Issue Type: Improvement > Components: sdk-java-core > Reporter: Kenneth Knowles > Assignee: Luke Cwik > Fix For: First stable release > > > Today, registering coders for auxiliary data types for a library transform is > not very convenient. It the appears in an output/covariant position then it > might be possible to use {{getDefaultOutputCoder}} to solve things. But for > writes/contravariant positions this is not applicable and the library > transform must contort itself to avoid requiring the user to come up with a > coder for a type they don't own. > Probably the best case today is an explicit call to > {{LibraryTransform.registerCoders(Pipeline)}} which is far too manual. > This could likely be solved quite easily with {{@AutoService}} and a static > global coder registry, as we do with pipeline runners. -- This message was sent by Atlassian JIRA (v6.3.15#6346)