You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Aviem Zur (JIRA)" <ji...@apache.org> on 2017/04/01 07:30:41 UTC

[jira] [Resolved] (BEAM-1337) Use our coder infrastructure for coders for state

     [ https://issues.apache.org/jira/browse/BEAM-1337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aviem Zur resolved BEAM-1337.
-----------------------------
       Resolution: Fixed
    Fix Version/s: First stable release

> Use our coder infrastructure for coders for state
> -------------------------------------------------
>
>                 Key: BEAM-1337
>                 URL: https://issues.apache.org/jira/browse/BEAM-1337
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>            Reporter: Kenneth Knowles
>            Assignee: Aviem Zur
>            Priority: Minor
>             Fix For: First stable release
>
>
> Today the user must explicitly provide any coders needed for serializing state data. We'd rather use the coder registry and infer the coder.
> Currently all factory methods in {{StateSpecs}} take a coder argument. For example:
> {code}
> StateSpecs.value(coderForT);
> {code}
> We could leverage the coder registry and provide different overloads:
> TypeDescriptor:
> {code}
> StateSpecs.value(typeDescriptorForT); 
> {code}
> Reflection:
> {code}
> StateSpec.value();
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)