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 DEB51200AE2 for ; Fri, 27 May 2016 17:38:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DDACA160A12; Fri, 27 May 2016 15:38:52 +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 0CBE9160A10 for ; Fri, 27 May 2016 17:38:51 +0200 (CEST) Received: (qmail 16519 invoked by uid 500); 27 May 2016 15:38:51 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 16509 invoked by uid 99); 27 May 2016 15:38:51 -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; Fri, 27 May 2016 15:38:51 +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 A24A6CA3D9 for ; Fri, 27 May 2016 15:38:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-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 Q5jACNhyxhqw for ; Fri, 27 May 2016 15:38:48 +0000 (UTC) Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id E06795F263 for ; Fri, 27 May 2016 15:38:47 +0000 (UTC) Received: by mail-qk0-f172.google.com with SMTP id n63so82102937qkf.0 for ; Fri, 27 May 2016 08:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=JIAsvRB26H2Zetfvr/XQCPslCjtOkRGfaxqLdJiLVMc=; b=ddL3FCmfa1FW6427NFOUc1UZNUbeRU2ADlTqRA1n/EqMJRRXAvsDA+DnAiQSLsY5Vk yXpcUkgGAyZNETLhTv/wxWpRVq0Vc68cZQvsHlabbdLQgH1LFnEcb+gNem/mlk5zoiPk W/FVqlFnZ2y7rJTU9z5/1F659cmIFinh2ktTleYy6k07EKpT9gNqN6DDoYQHOMnbg8hi mQSZA0xIb4+FsPrB1iucFEM80f7Y5VxzWUTvRxTd/Ze0v/E1JKMXAUvSQvZY0j2hbORy VLV4oaTW3zJljDTHeihEE0JyT86xxieuxZ04EoaO4sGrreBOcUnmLZeulb+Z8mqjFR5g KVpw== 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:date :message-id:subject:from:to; bh=JIAsvRB26H2Zetfvr/XQCPslCjtOkRGfaxqLdJiLVMc=; b=DpRNQSHhx2VYvHmgAI/NA6YNjsj3Af5B4kj7aSemYQvhv0pAJNsrShfrK6CLnrCdG0 yd0rTgnGs/2LNrvCftzGi5RtPLxwDxsbQwTjI2mp/xy+1Nw+S4lfci4kRGo395HwHTcz BLo5BfWPHVWt8dsQteXDcHs07/wzxj89OuNWbcyrxeDsfFaEsgWXOfJwWmkUDztz2sYg 7VjbiHX6G8rishdz7Vgz09SjdS+0k4I38lOiOf9cNrGJ2GR3xi9FMF45a+E15jLPfAJ2 zJ2eGFoYVtN9XCcM77KbWD9Qf3Q786Q+KXPoh3fXVngrKQ+dXPsMbRSSDJKmodo1ALMO MjDw== X-Gm-Message-State: ALyK8tIv+Q2F8nwqNauDXq/I8r8Wexh03p0k8lzdYfSbnHrlyCf9/wzRY8vsH4nPwNewOOA6dx420ddyLwny4w== MIME-Version: 1.0 X-Received: by 10.200.42.125 with SMTP id l58mr12576155qtl.45.1464363520915; Fri, 27 May 2016 08:38:40 -0700 (PDT) Received: by 10.140.41.75 with HTTP; Fri, 27 May 2016 08:38:40 -0700 (PDT) In-Reply-To: References: <1464356982655-5282.post@n6.nabble.com> Date: Fri, 27 May 2016 18:38:40 +0300 Message-ID: Subject: Re: Simulating Graph Dependencies With Ignite From: Alexei Scherbakov To: user@ignite.apache.org Content-Type: multipart/alternative; boundary=001a11403c567c7de80533d4b3c7 archived-at: Fri, 27 May 2016 15:38:53 -0000 --001a11403c567c7de80533d4b3c7 Content-Type: text/plain; charset=UTF-8 Of course you can store result of recalculation in the temp variable if it's needed for next recalculation. 2016-05-27 18:34 GMT+03:00 Alexei Scherbakov : > Hi, > > You can store cell dependencies as Ignite's data grid of > > IgniteCache cells = ... > > where relation between key and value is interpreted like: value depends on > key. > > When the cell is updated you do the following: > > Cell cell = updated; > do { > recalculate(cell); > } while( (cell = cells.get(cell)) != null); > > Did it help ? > > > > > > 2016-05-27 16:49 GMT+03:00 pragmaticbigdata : > >> Hello, >> >> I have started exploring apache ignite by following the introductory >> videos. >> It looks quite promising and I wanted to understand if it will be well >> suited for the use case I brief out below. If so, I would be glad to hear >> out on how could I approach it >> >> The use case is >> >> We are trying to implement cell level dependencies within multiple tables. >> It's similar to the functionality excel offers just that in our case it >> could span across multiple tables. Imagine multiple cells in an excel >> worksheet having interdependent formula's where updating a value in one >> cell >> causes another cell value to change and that cell update causes another >> cell >> value to update and so on and so forth. It is kind of graph of >> dependencies >> that determines what is the next row cell that needs to be updated. >> >> With apache ignite, what api's and data structures could I use to >> maintain a >> graph of inter-dependencies between multiple tables? Note that these would >> be metadata dependencies and not data. >> >> I would appreciate to get inputs on this. >> >> Thanks, >> Amit >> >> >> >> -- >> View this message in context: >> http://apache-ignite-users.70518.x6.nabble.com/Simulating-Graph-Dependencies-With-Ignite-tp5282.html >> Sent from the Apache Ignite Users mailing list archive at Nabble.com. >> > > > > -- > > Best regards, > Alexei Scherbakov > -- Best regards, Alexei Scherbakov --001a11403c567c7de80533d4b3c7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Of course you can store result of recalculation in the tem= p variable if it's needed for next recalculation.

<= div class=3D"gmail_extra">
2016-05-27 18:34 G= MT+03:00 Alexei Scherbakov <alexey.scherbakoff@gmail.com>= ;:
Hi,

You can store cell dependencies as Ignite's data grid of
=

IgniteCache<Cell, Cell> cells =3D ...
<= br>
where relation between key and value is interpreted like: val= ue depends on key.

When the cell is updated you do= the following:

Cell cell =3D updated;
d= o {
=C2=A0 =C2=A0 =C2=A0recalculate(cell);
} while( (ce= ll =3D cells.get(cell)) !=3D null);

Did it help ?<= /div>





2016-05-27 16:49 GMT+03:00 pragmaticbigdata <amits.84@gmail.com>= :
Hello,

I have started exploring apache ignite by following the introductory videos= .
It looks quite promising and I wanted to understand if it will be well
suited for the use case I brief out below. If so, I would be glad to hear out on how could I approach it

The use case is

We are trying to implement cell level dependencies within multiple tables.<= br> It's similar to the functionality excel offers just that in our case it=
could span across multiple tables. Imagine multiple cells in an excel
worksheet having interdependent formula's where updating a value in one= cell
causes another cell value to change and that cell update causes another cel= l
value to update and so on and so forth. It is kind of graph of dependencies=
that determines what is the next row cell that needs to be updated.

With apache ignite, what api's and data structures could I use to maint= ain a
graph of inter-dependencies between multiple tables? Note that these would<= br> be metadata dependencies and not data.

I would appreciate to get inputs on this.

Thanks,
Amit



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.co= m/Simulating-Graph-Dependencies-With-Ignite-tp5282.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.



--
<= div>

Best regards,
Alexei Scherbakov
<= /div>



--

Best r= egards,
Alexei Scherbakov
--001a11403c567c7de80533d4b3c7--