[
https://issues.apache.org/jira/browse/BEAM-1337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aviem Zur updated BEAM-1337:
----------------------------
Description:
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}
was:Today the user must explicitly provide any coders needed for serializing
state data. We'd rather use the coder registry and infer the coder.
> 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
>
> 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)