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

Kenneth Knowles commented on BEAM-1171:
---------------------------------------

This issue has been migrated to https://github.com/apache/beam/issues/18177

> Source.getDefaultOutputCoder() - add a version that allows access to a 
> CoderRegistry
> ------------------------------------------------------------------------------------
>
>                 Key: BEAM-1171
>                 URL: https://issues.apache.org/jira/browse/BEAM-1171
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>            Reporter: Stephen Sisk
>            Priority: P3
>              Labels: Clarified
>
> The Source API's getDefaultOutputCoder currently takes no parameters. This 
> means that you can't access the coder registry to ask for coders based on the 
> type.
> The PTransform API's version of getDefaultOutputCoder has 3 different form, 
> which do allow access to the coder registry if necessary.
> However, while working on BEAM-1040 (Hadoop IO connector), we realized that a 
> source does not always know it's output type, and thus will need to calculate 
> the coder at run time. To do this, it would be helpful to have a reference to 
> the CoderRegistry - we should look at what we're doing on PTransform and 
> decide if we should port that over onto Source.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to