Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7CB77200CD0 for ; Tue, 25 Jul 2017 20:48:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7B2391615CF; Tue, 25 Jul 2017 18:48:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C2313160D16 for ; Tue, 25 Jul 2017 20:48:03 +0200 (CEST) Received: (qmail 4454 invoked by uid 500); 25 Jul 2017 18:48:03 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 4444 invoked by uid 99); 25 Jul 2017 18:48:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2017 18:48:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 258B0C030E for ; Tue, 25 Jul 2017 18:48:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id X3Ze92H_kSY8 for ; Tue, 25 Jul 2017 18:48:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E69EB5F29A for ; Tue, 25 Jul 2017 18:48:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 737D0E044C for ; Tue, 25 Jul 2017 18:48:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1737D21EE3 for ; Tue, 25 Jul 2017 18:48:00 +0000 (UTC) Date: Tue, 25 Jul 2017 18:48:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-2640) Introduce Create.ofProvider(ValueProvider) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 25 Jul 2017 18:48:04 -0000 [ https://issues.apache.org/jira/browse/BEAM-2640?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16100= 547#comment-16100547 ]=20 ASF GitHub Bot commented on BEAM-2640: -------------------------------------- GitHub user jkff opened a pull request: https://github.com/apache/beam/pull/3639 [BEAM-2640, BEAM-2641] Introduces TextIO.read().withHintMatchesManyFile= s() Reincarnation of https://github.com/apache/beam/pull/3598 which got clo= sed by accident =20 In that case it expands to TextIO.readAll(). Implementing this when the= filepattern is a ValueProvider nudged me to also implement BEAM-2640 - Cre= ate.ofProvider(ValueProvider). =20 Links: https://issues.apache.org/jira/browse/BEAM-2640 https://issues.apache.org/jira/browse/BEAM-2641 =20 R:=C2=A0@reuvenlaxCC:=C2=A0@sammcveety You can merge this pull request into a Git repository by running: $ git pull https://github.com/jkff/incubator-beam textio-readall Alternatively you can review and apply these changes as the patch at: https://github.com/apache/beam/pull/3639.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3639 =20 ---- commit 8f594b2726bd85b60df5d8e93a2055586137cd60 Author: Eugene Kirpichov Date: 2017-07-19T18:50:58Z [BEAM-2640] Introduces Create.ofProvider(ValueProvider) =20 I also converted DatastoreV1 to use this overload, and, as an exercise, added a withQuery(ValueProvider) overload to JdbcIO. commit a3a4e861db8936bf0ba169b6b089a4a1fcfd6557 Author: Eugene Kirpichov Date: 2017-07-19T18:51:33Z [BEAM-2641] Introduces TextIO.read().withHintMatchesManyFiles() =20 In that case it expands to TextIO.readAll(). ---- > Introduce Create.ofProvider(ValueProvider) > ------------------------------------------ > > Key: BEAM-2640 > URL: https://issues.apache.org/jira/browse/BEAM-2640 > Project: Beam > Issue Type: New Feature > Components: sdk-java-core > Reporter: Eugene Kirpichov > Assignee: Eugene Kirpichov > > When you have a ValueProvider that may or may not be accessible at con= struction time, a common task is to wrap it into a single-element PCollecti= on. This is especially common when migrating an IO connector that used s= omething like Create.of(query) followed by a ParDo, to having query be a Va= lueProvider. > Currently this is done in an icky way (e.g. https://github.com/apache/bea= m/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/b= eam/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)