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 5A0FD200B67 for ; Tue, 16 Aug 2016 23:13:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 588FE160AA8; Tue, 16 Aug 2016 21:13: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 A1873160A74 for ; Tue, 16 Aug 2016 23:13:54 +0200 (CEST) Received: (qmail 62900 invoked by uid 500); 16 Aug 2016 21:13:53 -0000 Mailing-List: contact dev-help@apex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.apache.org Delivered-To: mailing list dev@apex.apache.org Received: (qmail 62882 invoked by uid 99); 16 Aug 2016 21:13:53 -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, 16 Aug 2016 21:13:53 +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 1C615C0439 for ; Tue, 16 Aug 2016 21:13:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 rFEuIgsjmtle for ; Tue, 16 Aug 2016 21:13:50 +0000 (UTC) Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 15B665FACE for ; Tue, 16 Aug 2016 21:13:50 +0000 (UTC) Received: by mail-oi0-f47.google.com with SMTP id l203so115890995oib.1 for ; Tue, 16 Aug 2016 14:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=pF5H+sspbVvXwE2PDHu1p/4bPRn+5JUYzqK9U/5f0g8=; b=r35UybTD3dKI0Ef4CPKrU7z+K7f6Td14IArkO4VPeHxPYlJjiAL5sMnn2V/KovyCNv BARrsZvGLJ/fSKwunmqZigLTlXgbUB4TlpjanZnH1NaBKfirr3xggxzVVX9u8b83MeZG N+f9VRzmfKuvFR3pjje0XcBUodLgj+zjNTI1SurmmFds4qK5vS9ckwJxzKw7vkN9q9hA 5lPVSPg+AMr60G+DmIB07cngpM4OwZ3O0rh4qW6zDrKoyYGVvUJvOR4U1+RdHXX5rOxq 9YK45bKHSwFSS7EvqdXCQEDk34x4i+5ZtBmSkKaBySYw2yddXx4JCeUmm3zQJh949j2d gr8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=pF5H+sspbVvXwE2PDHu1p/4bPRn+5JUYzqK9U/5f0g8=; b=AjiWwBOp8Y0wmixYrWmHwSTyjB443hUnOtfSyEUkHiSUb9CsNFzbVkIgxGMmFJ8kfZ JWZu16XbyqUlepDw+UcQ8LMDDnWcivCeqeCHDvcAc5dAEs5GFA/x91Ft87eyZwR96rVM 490Sb5Bk1V8dxruh+X3lKl42/PB8u+8Gh+WbBo86yljveyIwLlREsiulBrVjl6ASRlBf 4PMPK53Ct6frwayn+FNb9jm6aaiCE/AjgyyzOKpMAGhlLqc1WA6EPhaq7L2vUc1M+5ux MDi3e9Geg3V7eBVcTSwH17nsiDMoVnHVgQr0qAfDbRHH9PQIFl/3J0MJ70eELBf+Fjpn osvg== X-Gm-Message-State: AEkooutpo71clxg9xQHJhxWKFGiF1qSw1vsVhSetVtbctsJxdWG8xZUrpawrGNdgEXt4Dri7kni030qafGTTDA== X-Received: by 10.202.205.77 with SMTP id d74mr16945727oig.63.1471382022745; Tue, 16 Aug 2016 14:13:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.240.105 with HTTP; Tue, 16 Aug 2016 14:13:42 -0700 (PDT) In-Reply-To: References: From: Shunxin Lu Date: Tue, 16 Aug 2016 14:13:42 -0700 Message-ID: Subject: Re: Join Support To: dev@apex.apache.org Content-Type: multipart/alternative; boundary=001a11476faccb7481053a36d216 archived-at: Tue, 16 Aug 2016 21:13:55 -0000 --001a11476faccb7481053a36d216 Content-Type: text/plain; charset=UTF-8 Thanks David. That's very helpful! I will continue to work on that and let you know once I encounter more problems. On Tue, Aug 16, 2016 at 2:02 PM, David Yan wrote: > Hi Shunxin, > > How about declaring the JoinWindowedOperator interface something like this: > > public interface JoinWindowedOperator InputT5> > extends WindowedOperator > { > void accumulateTuple2(Tuple.WindowedTuple tuple); > void accumulateTuple3(Tuple.WindowedTuple tuple); > void accumulateTuple4(Tuple.WindowedTuple tuple); > void accumulateTuple5(Tuple.WindowedTuple tuple); > > void processWatermark2(ControlTuple.Watermark watermark); > > void processWatermark3(ControlTuple.Watermark watermark); > > void processWatermark4(ControlTuple.Watermark watermark); > > void processWatermark5(ControlTuple.Watermark watermark); > > } > > then have the AbstractJoinWindowedOperator clared like this: > > public abstract class AbstractJoinWindowedOperator InputT3, InputT4, InputT5, OutputT, DataStorageT extends WindowedStorage, > RetractionStorageT extends WindowedStorage, AccumulationT extends > JoinAccumulation> > extends AbstractWindowedOperator RetractionStorageT, AccumulationT> > implements JoinWindowedOperator InputT5> > { > ... > } > > David > > On Tue, Aug 16, 2016 at 1:19 PM, Shunxin Lu wrote: > > > Hi David, > > > > Thanks for the reply. I think I will need to reconsider the whole > situation > > again base on your input. > > The main problem that I had was, every input port has its own type, how > can > > I write methods that can handle all of them? > > > > Thanks, > > Shunxin > > > > On Tue, Aug 16, 2016 at 12:49 PM, David Yan > wrote: > > > > > Also, regarding the difficulties you mentioned about a new subclass > > > inheriting AbstractWindowedOperator, what specifically are they? > > > > > > David > > > > > > On Tue, Aug 16, 2016 at 12:31 PM, David Yan > > wrote: > > > > > > > Hi Shunxin, > > > > > > > > One problem with join support using WindowedOperator is that Apex > > > operator > > > > does not support variable number of ports so we might have to limit > the > > > > join operator to, say, 5 input ports. Implementing join support for > > > > WindowedOperator should not be difficult, but might be a little messy > > > > because we will need to have a watermark control port for each > regular > > > > input port, making it 10 total input ports if we support a maximum > of 5 > > > > join inputs. > > > > > > > > Please take a look at the JoinAccumulation template interface. That > was > > > > there for the future join support I planned to add. > > > > > > > > Also, pay a bit of attention on how you process watermarks from each > > > > input, and let me know if you need help. > > > > > > > > David > > > > > > > > On Fri, Aug 12, 2016 at 11:03 AM, Shunxin Lu > > > wrote: > > > > > > > >> Hello there, > > > >> > > > >> I am planning to add join support in Windowed Operator, but need > some > > > >> advice on how to start. > > > >> Currently I am thinking to add a new subclass inheriting > > > >> AbstractWindowedOperator and do all the work we need in that class > > (add > > > >> more input ports, do join accumulation, etc.), but I am experiencing > > > some > > > >> difficulties doing so. Or should I directly change the codes in > > > >> AbstractWindowedOperator? > > > >> > > > >> Thanks, > > > >> Shunxin > > > >> > > > > > > > > > > > > > > --001a11476faccb7481053a36d216--