Return-Path: X-Original-To: apmail-flink-commits-archive@minotaur.apache.org Delivered-To: apmail-flink-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD555107F1 for ; Wed, 4 Mar 2015 20:33:03 +0000 (UTC) Received: (qmail 67640 invoked by uid 500); 4 Mar 2015 20:33:03 -0000 Delivered-To: apmail-flink-commits-archive@flink.apache.org Received: (qmail 67559 invoked by uid 500); 4 Mar 2015 20:33:03 -0000 Mailing-List: contact commits-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list commits@flink.apache.org Received: (qmail 67454 invoked by uid 99); 4 Mar 2015 20:33:03 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2015 20:33:03 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 523BAE1034; Wed, 4 Mar 2015 20:33:03 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vasia@apache.org To: commits@flink.apache.org Date: Wed, 04 Mar 2015 20:33:04 -0000 Message-Id: <8e9ea608f7aa48e7a776d34c9e7be3d3@git.apache.org> In-Reply-To: <66f43b15b7204cbc9fc9a2e55f038278@git.apache.org> References: <66f43b15b7204cbc9fc9a2e55f038278@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/7] flink git commit: [FLINK-1522][gelly] Fixed faulty split into create/runVertexCentricIteration [FLINK-1522][gelly] Fixed faulty split into create/runVertexCentricIteration This closes #429 Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/8961bd19 Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/8961bd19 Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/8961bd19 Branch: refs/heads/master Commit: 8961bd19a82e44eb8655232f37a5baadb59a964b Parents: f329e4e Author: andralungu Authored: Wed Mar 4 00:13:08 2015 +0100 Committer: Vasia Kalavri Committed: Wed Mar 4 21:03:47 2015 +0100 ---------------------------------------------------------------------- flink-staging/flink-gelly/pom.xml | 31 ++++++++++++++++++++ .../library/SingleSourceShortestPaths.java | 9 +++--- 2 files changed, 36 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/8961bd19/flink-staging/flink-gelly/pom.xml ---------------------------------------------------------------------- diff --git a/flink-staging/flink-gelly/pom.xml b/flink-staging/flink-gelly/pom.xml index af1fcb4..8e00f98 100644 --- a/flink-staging/flink-gelly/pom.xml +++ b/flink-staging/flink-gelly/pom.xml @@ -52,4 +52,35 @@ under the License. test + + + + + hadoop-1 + + + + hadoop.profile1 + + + + + + com.google.guava + guava + ${guava.version} + provided + + + + + hadoop-2 + + + + !hadoop.profile + + + + http://git-wip-us.apache.org/repos/asf/flink/blob/8961bd19/flink-staging/flink-gelly/src/main/java/org/apache/flink/graph/library/SingleSourceShortestPaths.java ---------------------------------------------------------------------- diff --git a/flink-staging/flink-gelly/src/main/java/org/apache/flink/graph/library/SingleSourceShortestPaths.java b/flink-staging/flink-gelly/src/main/java/org/apache/flink/graph/library/SingleSourceShortestPaths.java index f069000..3e9a29d 100644 --- a/flink-staging/flink-gelly/src/main/java/org/apache/flink/graph/library/SingleSourceShortestPaths.java +++ b/flink-staging/flink-gelly/src/main/java/org/apache/flink/graph/library/SingleSourceShortestPaths.java @@ -45,11 +45,12 @@ public class SingleSourceShortestPaths & Serializable> @Override public Graph run(Graph input) { - VertexCentricIteration iteration = input.mapVertices( - new InitVerticesMapper(srcVertexId)).createVertexCentricIteration(new VertexDistanceUpdater(), - new MinDistanceMessenger(), maxIterations); + Graph mappedInput = input.mapVertices(new InitVerticesMapper(srcVertexId)); - return input.runVertexCentricIteration(iteration); + VertexCentricIteration iteration = mappedInput.createVertexCentricIteration( + new VertexDistanceUpdater(), new MinDistanceMessenger(), maxIterations); + + return mappedInput.runVertexCentricIteration(iteration); } public static final class InitVerticesMapper & Serializable>