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 51C79200AE2 for ; Fri, 27 May 2016 23:07:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 50AD9160A12; Fri, 27 May 2016 21:07:18 +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 9A71B160A10 for ; Fri, 27 May 2016 23:07:17 +0200 (CEST) Received: (qmail 87900 invoked by uid 500); 27 May 2016 21:07:16 -0000 Mailing-List: contact dev-help@quarks.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@quarks.incubator.apache.org Delivered-To: mailing list dev@quarks.incubator.apache.org Received: (qmail 87889 invoked by uid 99); 27 May 2016 21:07:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2016 21:07:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3D71B1A5602 for ; Fri, 27 May 2016 21:07:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.021 X-Spam-Level: X-Spam-Status: No, score=-4.021 tagged_above=-999 required=6.31 tests=[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=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id S5a7VIkEZMgT for ; Fri, 27 May 2016 21:07:15 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 4AD4D5F368 for ; Fri, 27 May 2016 21:07:14 +0000 (UTC) Received: (qmail 87332 invoked by uid 99); 27 May 2016 21:07:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2016 21:07:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DF1BC2C1F56 for ; Fri, 27 May 2016 21:07:12 +0000 (UTC) Date: Fri, 27 May 2016 21:07:12 +0000 (UTC) From: "Dale LaBossiere (JIRA)" To: dev@quarks.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (QUARKS-120) bad graph generation with certain API / oplet sequence MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 27 May 2016 21:07:18 -0000 [ https://issues.apache.org/jira/browse/QUARKS-120?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Dale LaBossiere updated QUARKS-120: ----------------------------------- Summary: bad graph generation with certain API / oplet sequence (was: = Counter oplet looks like a source for complex tuple type) > bad graph generation with certain API / oplet sequence > ------------------------------------------------------ > > Key: QUARKS-120 > URL: https://issues.apache.org/jira/browse/QUARKS-120 > Project: Quarks > Issue Type: Bug > Components: Console, Runtime > Reporter: May Wone > Assignee: Dale LaBossiere > Priority: Minor > Attachments: CounterAsSourceComplexTupleType.doc, CounterSource.d= oc > > > In the graph for TopologyTestBasic, a counter oplet appears to be a sourc= e (i.e. there's no other oplet pointing to the counter oplet). This looks = odd to me - is this expected? > Note this source uses a complex tuple type, i.e. a tuple is a Java object= . > The oplets 130, 77, 76 look odd - is this graph starting at oplet 130 exp= ected? > 130 is a counter oplet that looks like a source. > 77 is a fanout=C2=AC (see View all oplet properties table below). > There is tag "mcs1".=20 > See attachment for screen shots. > {code} > //**************************************************************=09 =20 > //Source 2 using complex tuple type > //************************************************************** > Random r2 =3D new Random(); > TStream mc1 =3D t.poll( > () -> new MyClass1(Double.toString(r2.nextGaussian()), = =09=09=09=09=09 =20 > Double.toString(r2.nextGaussian()),r1.nextGaussia= n() > ),100, TimeUnit.MILLISECONDS).tag("mc1"); > mc1.peek(g -> System.out.print(g.toString())); > mc1.modify(tuple -> new MyClass1(tuple.getS1() + "a1 b1 c1 d1 ", = tuple.getS2() +" e1 f1 g1 h1 ", tuple.getD1() +1) ); > mc1.peek(tuple -> System.out.println("MyClass1: " + tuple.toStrin= g())); > mc1.flatMap(tuple -> Arrays.asList(tuple.toString().split(" "))); > //An asString > TStream mcs1 =3D mc1.asString().tag("mcs1"); > mcs1.peek(tuple -> System.out.println(" mcs1_source2: " + tuple.t= oString())); > List> splits2 =3D mcs1.split(2, tuple -> { > switch (tuple.toString().charAt(0)) { > case '-': //negative numbers > return 0; > default: //everything else > return 1; > } > }); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)