You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Ahmet Altay (JIRA)" <ji...@apache.org> on 2017/04/24 17:12:04 UTC
[jira] [Commented] (BEAM-1171) Source.getDefaultOutputCoder() - add
a version that allows access to a CoderRegistry
[ https://issues.apache.org/jira/browse/BEAM-1171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15981525#comment-15981525 ]
Ahmet Altay commented on BEAM-1171:
-----------------------------------
[~sisk] can we remove this from the first stable release issues?
> 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
> Fix For: First stable release
>
>
> 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
(v6.3.15#6346)