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 37ADB200BF3 for ; Wed, 21 Dec 2016 22:59:55 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 36819160B3A; Wed, 21 Dec 2016 21:59:55 +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 8661E160B26 for ; Wed, 21 Dec 2016 22:59:54 +0100 (CET) Received: (qmail 49870 invoked by uid 500); 21 Dec 2016 21:59:53 -0000 Mailing-List: contact commits-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.incubator.apache.org Delivered-To: mailing list commits@beam.incubator.apache.org Received: (qmail 49861 invoked by uid 99); 21 Dec 2016 21:59:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2016 21:59:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5D74618C4B4 for ; Wed, 21 Dec 2016 21:59:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id fSYnSXS9wawM for ; Wed, 21 Dec 2016 21:59:52 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 937895FC16 for ; Wed, 21 Dec 2016 21:59:51 +0000 (UTC) Received: (qmail 49718 invoked by uid 99); 21 Dec 2016 21:59:50 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2016 21:59:50 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8E195F1777; Wed, 21 Dec 2016 21:59:50 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kenn@apache.org To: commits@beam.incubator.apache.org Date: Wed, 21 Dec 2016 21:59:54 -0000 Message-Id: <744508facac64633a9f8812290becc77@git.apache.org> In-Reply-To: <33fab2ec055e4dba8734a78c1a8c2731@git.apache.org> References: <33fab2ec055e4dba8734a78c1a8c2731@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [5/7] incubator-beam git commit: Add static Window.withOutputTimeFn to match build method archived-at: Wed, 21 Dec 2016 21:59:55 -0000 Add static Window.withOutputTimeFn to match build method Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/8188040d Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/8188040d Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/8188040d Branch: refs/heads/master Commit: 8188040d930b1fa49efd4ed7d5f821d05d6f28ef Parents: fa4958a Author: Kenneth Knowles Authored: Tue Dec 20 13:57:55 2016 -0800 Committer: Kenneth Knowles Committed: Wed Dec 21 13:45:37 2016 -0800 ---------------------------------------------------------------------- .../org/apache/beam/sdk/transforms/windowing/Window.java | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/8188040d/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/windowing/Window.java ---------------------------------------------------------------------- diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/windowing/Window.java b/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/windowing/Window.java index 0c430d0..1241abe 100644 --- a/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/windowing/Window.java +++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/windowing/Window.java @@ -223,6 +223,15 @@ public class Window { } /** + * (Experimental) Override the default {@link OutputTimeFn}, to control + * the output timestamp of values output from a {@link GroupByKey} operation. + */ + @Experimental(Kind.OUTPUT_TIME) + public static Bound withOutputTimeFn(OutputTimeFn outputTimeFn) { + return new Bound(null).withOutputTimeFn(outputTimeFn); + } + + /** * A {@code PTransform} that windows the elements of a {@code PCollection}, * into finite windows according to a user-specified {@code WindowFn}. *