You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Davor Bonaci (JIRA)" <ji...@apache.org> on 2017/04/24 18:00:05 UTC

[jira] [Updated] (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:all-tabpanel ]

Davor Bonaci updated BEAM-1171:
-------------------------------
    Fix Version/s:     (was: First stable release)

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