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 48C16200B5E for ; Wed, 27 Jul 2016 03:21:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 476A3160AA5; Wed, 27 Jul 2016 01:21:31 +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 8DAED160AA4 for ; Wed, 27 Jul 2016 03:21:30 +0200 (CEST) Received: (qmail 20762 invoked by uid 500); 27 Jul 2016 01:21:29 -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 20752 invoked by uid 99); 27 Jul 2016 01:21:29 -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; Wed, 27 Jul 2016 01:21:29 +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 178BEC0B9A for ; Wed, 27 Jul 2016 01:21:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.981 X-Spam-Level: * X-Spam-Status: No, score=1.981 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=axiomine-com.20150623.gappssmtp.com 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 NPsBi7xW6EfD for ; Wed, 27 Jul 2016 01:21:27 +0000 (UTC) Received: from mail-yw0-f180.google.com (mail-yw0-f180.google.com [209.85.161.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C53795FAC4 for ; Wed, 27 Jul 2016 01:21:26 +0000 (UTC) Received: by mail-yw0-f180.google.com with SMTP id z8so42406670ywa.1 for ; Tue, 26 Jul 2016 18:21:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axiomine-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=GAvHquum5CHiDh1f8wgAK4fpEp08SXnTHMiIk9Nt9+M=; b=IJV2mGZkClljjzq3YnlWbxJnZM7kanNwbIoHgzm6b1/uotxJDHShQi+LxzrN/Bgu5e 40FFry3MJ0TWtyrIB1+For9ZMoJzoXB15rpv88NNSgXcwgBFmB7eTgBYMhWAUIY7Z4J5 eLJKSW+bBowgHd+95guLMUQxQrNpvSnW8QQq4RxegUrbfHVZouOuWb8qmZanyFrR6/0o in9vVO3NI9fGwK1nbeSwoZ9etVk8yo/cJ/sysqDb+DIf+6baafGIeU7AscKkqgaUIqNz KYp4oG/pz2WV+pWOQnjIiYAWNMgOnxRZxEgzphgOAw4B3uD8qNsTLTVroSNEVPezCB9S h4EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GAvHquum5CHiDh1f8wgAK4fpEp08SXnTHMiIk9Nt9+M=; b=D1Yjtfm8cyjyydTDLDQoJ/aKvxkfhqz25PWnbzVQREB+2MkM9Fa6KV+ys7/D/277US UvBDQPC3nBIVT3Ioeb/f8F+pjGrpyq3oyErEDobmail5IGusMicUP5AMppjEAcgK04Sq VO+hEUqTUpy6mWNl1P//bK/il2rDsHo0mzAO1rQQVDXFbM/2xHJnlK6RnpGVr+QxrcL9 mk9gus2xxbqvzn7KMNa0kcmqsXSNBKOSTNc1T7RwLWZsjI+YcGNKaAwiAHBW5ZEXVChs 0CZrS2iv4e0uAUHXELwTG0kbsns7rbpkx8RcE1mkkK5sApm5ASCHorJpu37oM/fLGq8o 7tTg== X-Gm-Message-State: AEkoouu7pDKkoUd7px0IU3oxRNqs1r5fkgoK4Q95xRNAGUVKWWKxROhr9GTZ5RdkKGGeeyg8A99Lqd4I/WCoAA== X-Received: by 10.31.150.10 with SMTP id y10mr9481506vkd.141.1469582485996; Tue, 26 Jul 2016 18:21:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.45.132 with HTTP; Tue, 26 Jul 2016 18:21:25 -0700 (PDT) X-Originating-IP: [96.241.191.10] From: Sameer W Date: Tue, 26 Jul 2016 21:21:25 -0400 Message-ID: Subject: CEP and Within Clause To: user@flink.apache.org Content-Type: multipart/alternative; boundary=001a11425a480be365053893d623 archived-at: Wed, 27 Jul 2016 01:21:31 -0000 --001a11425a480be365053893d623 Content-Type: text/plain; charset=UTF-8 Hi, It looks like the WithIn clause of CEP uses Tumbling Windows. I could get it to use Sliding windows by using an upstream pipeline which uses Sliding Windows and produces repeating elements (in each sliding window) and applying a Watermark assigner on the resulting stream with elements duplicated. I wanted to use the "followedBy" pattern where there is a strong need for sliding windows. Is there a plan to add sliding windows to the within clause at some point? The PatternStream class's "select" and "flatSelect" have overloaded versions which take PatternTimeOut variable. Is there a way to insert some of those elements back to the front of the stream. Say I am trying to find a pattern where two temperature readings >150 within 6 second window should raise an alert. If only one was found, can I insert that one back in the front of the stream on that task node (for that window pane) so that I can find a pattern match in the events occurring in the next 6 seconds. If I can do that, I don't need sliding windows. Else I cannot avoid using them for such scenarios. Thanks, Sameer --001a11425a480be365053893d623 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

It looks like the WithIn clause of = CEP uses Tumbling Windows. I could get it to use Sliding windows by using a= n upstream pipeline which uses Sliding Windows and produces repeating eleme= nts (in each sliding window) and applying a Watermark assigner on the resul= ting stream with elements duplicated. I wanted to use the "followedBy&= quot; pattern where there is a strong need for sliding windows.
<= br>
Is there a plan to add sliding windows to the within clause a= t some point?=C2=A0

The=C2=A0PatternStream class's "select" and &quo= t;flatSelect" have overloaded versions which take PatternTimeOut varia= ble. Is there a way to insert some of those elements back to the front of t= he stream. Say I am trying to find a pattern where two temperature readings= >150 within 6 second window should raise an alert. If only one was foun= d, can I insert that one back in the front of the stream on that task node = (for that window pane) so that I can find a pattern match in the events occ= urring in the next 6 seconds. If I can do that, I don't need sliding wi= ndows. Else I cannot avoid using them for such scenarios.

Thanks,
Sameer
--001a11425a480be365053893d623--