GoogleCloudPlatform / DataflowJavaSDK

Google Cloud Dataflow provides a simple, powerful model for building both batch and streaming parallel data processing pipelines.
http://cloud.google.com/dataflow
855 stars 324 forks source link

Makes UnionCoder public #477

Closed jkff closed 7 years ago

jkff commented 7 years ago

This is useful because users may need to construct a CoGbkResultCoder, and to construct a CoGbkResult Coder you need to construct a UnionCoder. E.g. see http://stackoverflow.com/questions/40367387/how-do-i-setcoders-when-doing-an-end-to-end-test-when-my-coder-requires-a-kvcode

UnionCoder is already public in Apache Beam.

R: @lukecwik

lukecwik commented 7 years ago

LGTM, merging

This mirrors the change to UnionCoder.java within https://github.com/apache/incubator-beam/commit/24bfca230d5db3cb75dd0e30093a10f7523c1238