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

[jira] [Created] (BEAM-2640) Introduce Create.ofProvider(ValueProvider)

Eugene Kirpichov created BEAM-2640:
--------------------------------------

             Summary: Introduce Create.ofProvider(ValueProvider)
                 Key: BEAM-2640
                 URL: https://issues.apache.org/jira/browse/BEAM-2640
             Project: Beam
          Issue Type: Bug
          Components: sdk-java-core
            Reporter: Eugene Kirpichov
            Assignee: Eugene Kirpichov


When you have a ValueProvider<T> that may or may not be accessible at construction time, a common task is to wrap it into a single-element PCollection<T>. This is especially common when migrating an IO connector that used something like Create.of(query) followed by a ParDo, to having query be a ValueProvider.

Currently this is done in an icky way (e.g. https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/datastore/DatastoreV1.java#L615)

We should have a convenience helper for that.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)