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 8D235200C14 for ; Tue, 7 Feb 2017 13:47:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8BAAB160B68; Tue, 7 Feb 2017 12:47:49 +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 D5DB3160B3E for ; Tue, 7 Feb 2017 13:47:48 +0100 (CET) Received: (qmail 13514 invoked by uid 500); 7 Feb 2017 12:47:48 -0000 Mailing-List: contact dev-help@gearpump.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@gearpump.incubator.apache.org Delivered-To: mailing list dev@gearpump.incubator.apache.org Received: (qmail 13502 invoked by uid 99); 7 Feb 2017 12:47:48 -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, 07 Feb 2017 12:47:48 +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 8FB2FC0740 for ; Tue, 7 Feb 2017 12:47:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id cEb6XdaOMU6i for ; Tue, 7 Feb 2017 12:47:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 5817E5F24B for ; Tue, 7 Feb 2017 12:47:46 +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 DF284E05C4 for ; Tue, 7 Feb 2017 12:47:42 +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 E05FB25299 for ; Tue, 7 Feb 2017 12:47:41 +0000 (UTC) Date: Tue, 7 Feb 2017 12:47:41 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@gearpump.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEARPUMP-23) Add DSL window (time series) support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 07 Feb 2017 12:47:49 -0000 [ https://issues.apache.org/jira/browse/GEARPUMP-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15855921#comment-15855921 ] ASF GitHub Bot commented on GEARPUMP-23: ---------------------------------------- Github user huafengw commented on a diff in the pull request: https://github.com/apache/incubator-gearpump/pull/140#discussion_r99813902 --- Diff: streaming/src/main/scala/org/apache/gearpump/streaming/dsl/window/api/WindowFunction.scala --- @@ -33,11 +33,19 @@ object WindowFunction { } trait WindowFunction[T] { + def apply(context: WindowFunction.Context[T]): Array[Window] + + def isNonMerging: Boolean +} + +abstract class NonMergingWindowFunction[T] extends WindowFunction[T] { + + override def isNonMerging: Boolean = true --- End diff -- why not use `case match`? > Add DSL window (time series) support > ------------------------------------- > > Key: GEARPUMP-23 > URL: https://issues.apache.org/jira/browse/GEARPUMP-23 > Project: Apache Gearpump > Issue Type: Sub-task > Components: streaming > Affects Versions: 0.8.0 > Reporter: Kam Kasravi > Assignee: Manu Zhang > > Time series support is need for both GEARPUMP-21 and GEARPUMP-22. This was originally github issue [1917|https://github.com/gearpump/gearpump/issues/1917]. Other realtime streaming engines support time windows such as [Flink|https://flink.apache.org/news/2015/12/04/Introducing-windows.html], [Beam|https://www.oreilly.com/ideas/the-world-beyond-batch-streaming-101] and a future release of [Spark|https://issues.apache.org/jira/secure/attachment/12793410/StructuredStreamingProgrammingAbstractionSemanticsandAPIs-ApacheJIRA.pdf]. A comparison matrix is found [here|https://docs.google.com/spreadsheets/d/1OM077lZBARrtUi6g0X0O0PHaIbFKCD6v0djRefQRE1I/edit#gid=995660187] -- This message was sent by Atlassian JIRA (v6.3.15#6346)