Return-Path: X-Original-To: apmail-flink-dev-archive@www.apache.org Delivered-To: apmail-flink-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14534116EB for ; Fri, 11 Jul 2014 14:56:22 +0000 (UTC) Received: (qmail 26339 invoked by uid 500); 11 Jul 2014 14:56:22 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 26289 invoked by uid 500); 11 Jul 2014 14:56:21 -0000 Mailing-List: contact dev-help@flink.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.incubator.apache.org Delivered-To: mailing list dev@flink.incubator.apache.org Received: (qmail 26277 invoked by uid 99); 11 Jul 2014 14:56:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2014 14:56:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vasilikikalavri@gmail.com designates 209.85.217.171 as permitted sender) Received: from [209.85.217.171] (HELO mail-lb0-f171.google.com) (209.85.217.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2014 14:56:18 +0000 Received: by mail-lb0-f171.google.com with SMTP id v6so723322lbi.16 for ; Fri, 11 Jul 2014 07:55:54 -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 :content-type; bh=ZOdpUwVLVM1dNMfVXrTyE1LsPDPshG9Zb2PGJcdazCc=; b=LxeAeaTpwKY0Z6iWbHugLiUu6Syw6eHCyA51yxJf7BTr0fZLxu73Jj9BkneDf6UY2I GymL7MnWKCZss3FLQEfy6xSLZGa4Pwu8qG3UgTrLerBpKb4TeD5XVbMp2TayCwiKQn6l tgJAxgFWZ2MpmLSt4Uuq869sK8k2QPu3Snv9/aLQBagJvPqjTIWFKgmDYtmhHODzLjz/ KxFG8tIWpTkz5Vlj9BEzBXjQM9MxBzZ1NiUkaJJfxaDU8EBwJgZr0RzCd2ZzkMaMkbMI azCeqDfmZXeaWo3gypNKmA/UQOVyaHeL6CVNHdcwNcgSZke53XZ8r51F24VbehT9npIV /2oQ== MIME-Version: 1.0 X-Received: by 10.112.161.71 with SMTP id xq7mr4099774lbb.57.1405090553306; Fri, 11 Jul 2014 07:55:53 -0700 (PDT) Received: by 10.114.190.6 with HTTP; Fri, 11 Jul 2014 07:55:53 -0700 (PDT) In-Reply-To: References: Date: Fri, 11 Jul 2014 16:55:53 +0200 Message-ID: Subject: Re: Fixpoint api From: Vasiliki Kalavri To: dev@flink.incubator.apache.org Content-Type: multipart/alternative; boundary=001a11c260d04ea7d204fdec23d0 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c260d04ea7d204fdec23d0 Content-Type: text/plain; charset=UTF-8 Hey, thanks for the reply! My delta iteration doesn't have a convergence criterion (other than the default empty workset that is). If I'm not mistaken, one can't define a custom convergence criterion in a delta iteration. I think I had opened an issue for this at some point, but it was low priority and we didn't decide on it. Even if I do define a custom convergence criterion though, that would mean that I will need to run at least one delta iteration, even if the maximum number of iterations has already been reached. What I am looking for is more something like the following: int iterationsLeft; bulkResult = doBulkIterations(parameters, dependencies, stepFunction, maxIterations); //somehow sets iterationsLeft if (iterationsLeft > 0 ) { doDeltaIterations(bulkResult, dependencies, stepFunction, iterationsLeft); } Cheers, V. On 11 July 2014 14:25, Stephan Ewen wrote: > Hey Vasia! > > Nice work, it looks really cool! > > > Concerning the problem of figuring out the number of iterations: > > - In the long run we can save this with the incremental rollout that we > are working on > > - As a temporary workaround, you could store the number of elapsed > iterations in a static variable somewhere. You set it from the "open()" or > "close()" function of one of the UDFs. The convergence criterion for the > delta iterations can pick it up from there (access the static variable). > > > Concerning the edges with / without weights: Can you use a custom data type > and have the weight "null" when they are not set/used? > > Greetings, > Stephan > --001a11c260d04ea7d204fdec23d0--