You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Luke Cwik (JIRA)" <ji...@apache.org> on 2017/04/11 17:06:41 UTC
[jira] [Commented] (BEAM-1930) Abstract Coder translation from
Runner API Protos
[ https://issues.apache.org/jira/browse/BEAM-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15964647#comment-15964647 ]
Luke Cwik commented on BEAM-1930:
---------------------------------
I think with Jackson/ObjectMapper you could do the same thing and have it convert from proto -> json -> Java coder and then we might be able to drop CloudObject usage within Coder.
> Abstract Coder translation from Runner API Protos
> -------------------------------------------------
>
> Key: BEAM-1930
> URL: https://issues.apache.org/jira/browse/BEAM-1930
> Project: Beam
> Issue Type: Bug
> Components: sdk-java-core
> Reporter: Thomas Groh
> Priority: Minor
>
> Instead of having a large switch statement that constructs known coders, have a map from URN to an interface that takes {{(RunnerApi.Coder, RunnerApi.Components)}} and produces a java Coder, and delegate all calls in {{fromProto}} to that map.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)