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 0A810200B76 for ; Tue, 30 Aug 2016 21:28:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 08E88160ABA; Tue, 30 Aug 2016 19:28:43 +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 255CD160AAF for ; Tue, 30 Aug 2016 21:28:41 +0200 (CEST) Received: (qmail 82118 invoked by uid 500); 30 Aug 2016 19:28:41 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 82108 invoked by uid 99); 30 Aug 2016 19:28:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2016 19:28:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C8312C74BF for ; Tue, 30 Aug 2016 19:28:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.998 X-Spam-Level: * X-Spam-Status: No, score=1.998 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=vgbio360.onmicrosoft.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Nlxta1H6p1Ue for ; Tue, 30 Aug 2016 19:28:39 +0000 (UTC) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0126.outbound.protection.outlook.com [104.47.37.126]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 025AC5F4E3 for ; Tue, 30 Aug 2016 19:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vgbio360.onmicrosoft.com; s=selector1-physiq-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=MkSlqIoL6W9lRDEZOyyVREd/ysHw9FIBdRrVLzRem/U=; b=OCY3sGZtdSzPQ+uGtDpVrNvOBu1dFDMbNyUMVLLYsq7evng7VHUq180HQpFDOG6n8dImZqIYfBYs1rtNMt3do91/SprEfA+X6tl9a3TLAFrKlIipxTsgIYlPITFvlTZP9HJGbtoSVN9Izt9NDUXvblAACozRRYeLD1XBlZDKTTs= Received: from CY1PR02MB1995.namprd02.prod.outlook.com (10.166.189.153) by CY1PR02MB1993.namprd02.prod.outlook.com (10.166.189.151) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.9; Tue, 30 Aug 2016 19:28:29 +0000 Received: from CY1PR02MB1995.namprd02.prod.outlook.com ([10.166.189.153]) by CY1PR02MB1995.namprd02.prod.outlook.com ([10.166.189.153]) with mapi id 15.01.0557.030; Tue, 30 Aug 2016 19:28:29 +0000 From: Paul Joireman To: "user@flink.apache.org" CC: Chad Conkright Subject: Setting EventTime window width using stream data Thread-Topic: Setting EventTime window width using stream data Thread-Index: AQHSAvJvTMCwGAAl6UCdg5wcejRUCQ== Date: Tue, 30 Aug 2016 19:28:29 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=paul.joireman@physiq.com; x-originating-ip: [96.27.106.194] x-ms-office365-filtering-correlation-id: 16736f58-0f1b-490a-a17c-08d3d10bd255 x-microsoft-exchange-diagnostics: 1;CY1PR02MB1993;6:46qD4MhR8SJUGy3vIO1aSp7jv655OxW7bdVaJzW3GR80Mk6xFPTLxZLLkpi5Cg0ey0FGl6386/0ogUtQZzaPn4xEhm7WjSpAF76/micWNe5jo4mHXkjbv1QexXavqRe+vLxkkDIlO5qdpiixf6UkpIGQFKf18iDi0sVhP9AG2kFJEvY8Zg1KbJt7P85Ttetox3/P2psAf9XTrX5to0fEx94C9aVTqfP0oqRrRR4k6ukCU8yc5ysGJ4brmHcsYitTg3qwJr91Bf9upPkB6tpN53BGthqn05fAte91vEsf24PxxAMF6C2E6X361YTHfNS6;5:y9tSooelvpg3JXndHu7Q/vzMDwsMXU32NBe+023L3yPZRFy5Bqtv2sn2VxrTMlK7rC7pqLdxtfFwLVbrhBQRR0f59/9+EVzGeyY4Zd7bhCqcEtXH4z+fwxUxqLRo82HLA0lreLulVAoMqQoSnB9zew==;24:+YuSoV2/IY6+mmcQrE9CodIMQcva6MDtNR0gocBv5TLkdH5M+y11utQxCUSdIofIkBzMosjVqvf+AJkg+Df7Id0q8nbNwJtkUbX2hLUbg6Y=;7:YPUGtLDA317WsXaSsD/OgWIY1AJENI7AXOM1zImtq1ANdFJBiU0+Z7yxJPZ+2+YtCbE0crbAstTzbmdD8JYo7OYtkOANWvz8Q/9OTUVH2qJmFqI2M+ckVXrrXwy+t21cJYezwuYQ29byBPmkQ0Gz6eSKy1vbM/9NWhEU7+uq8cn23ds+5K8ozoTAErxjhr62exWClsP7K2vYjRwtTXFRTmIXGodk8limupb5ZM8MCbmtudqiLalSi/ATiLf7Va6m x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR02MB1993; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6043046)(6042046);SRVR:CY1PR02MB1993;BCL:0;PCL:0;RULEID:;SRVR:CY1PR02MB1993; x-forefront-prvs: 0050CEFE70 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(53754006)(189002)(199003)(9686002)(2900100001)(101416001)(10400500002)(92566002)(77096005)(87936001)(19625215002)(11100500001)(2501003)(1730700003)(4001430100002)(7846002)(229853001)(74316002)(81166006)(81156014)(2351001)(7736002)(450100001)(54356999)(66066001)(8936002)(7696003)(106356001)(586003)(6116002)(19627405001)(50986999)(97736004)(189998001)(76576001)(5002640100001)(33656002)(4326007)(8676002)(102836003)(3846002)(5660300001)(107886002)(110136002)(2906002)(68736007)(3660700001)(3280700002)(106116001)(105586002)(122556002)(16236675004)(99286002)(86362001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR02MB1993;H:CY1PR02MB1995.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: physiq.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_CY1PR02MB1995DF3913ECEF5A85ED34FC80E00CY1PR02MB1995namp_" MIME-Version: 1.0 X-OriginatorOrg: physiq.com X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2016 19:28:29.0872 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ecbda8f3-3c3b-43e4-9663-6beab1acd10b X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB1993 archived-at: Tue, 30 Aug 2016 19:28:43 -0000 --_000_CY1PR02MB1995DF3913ECEF5A85ED34FC80E00CY1PR02MB1995namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, Is it possible to dynamically set the size/width of a SlidingEventTimeWindo= w based on a data coming from the stream? Our use case is as follows. W= e create a stream sourced from external system and coming in as a JSON string which is= deserialized to a stream of POJO. The deserialized object contains an e= vent timestamp, data and details about how to analyze the contained data as well as the len= gth of a time window to analyze. It would be ideal if we could leverage = the functionality of the SlidingEventTimeWindows but instead of hard coding the window times, use da= ta from the message to configure this on the fly. Is this possible? Note: the stream is keyed and timestamped with event time and the window si= ze will not change for the same key. Ultimately we need a way to dynamically change the window sizes in order to= adjust to different timing specifications not directly controlled or even = known before-hand by the person writing the flink analysis program. Paul --_000_CY1PR02MB1995DF3913ECEF5A85ED34FC80E00CY1PR02MB1995namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi all,


Is it possible to dynamically set the size/width of a SlidingEventTimeWi= ndow based on a data coming from the stream?   Our use case is as foll= ows.   We create a 

stream sourced from external system and coming in as a JSON string which= is deserialized to a stream of POJO.    The deserialized object = contains an event timestamp,

data and details about how to analyze the contained data as well as the length of a time window to analyze. &= nbsp;  It would be ideal if we could leverage the functionality of the=  

SlidingEventTimeWindows but instead of = hard coding the window times, use data from the message to configure this o= n the fly.   Is this possible?   


Note: the stream is keyed and timestamped with event time and the win= dow size will not change for the same key.


Ultimately we need a way to dynamically= change the window sizes in order to adjust to different timing specificati= ons not directly controlled or even known before-hand by

the person writing the flink analy= sis program.  


Paul


--_000_CY1PR02MB1995DF3913ECEF5A85ED34FC80E00CY1PR02MB1995namp_--