You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2015/03/16 16:29:30 UTC
incubator-tinkerpop git commit: minor tweak to use static finals in
GiraphGraphComputer.
Repository: incubator-tinkerpop
Updated Branches:
refs/heads/master a4d8a41bd -> 1ab7216d4
minor tweak to use static finals in GiraphGraphComputer.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/1ab7216d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/1ab7216d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/1ab7216d
Branch: refs/heads/master
Commit: 1ab7216d477cb3b8f5535626853428c55ceaeb9b
Parents: a4d8a41
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Mon Mar 16 09:29:18 2015 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Mon Mar 16 09:29:28 2015 -0600
----------------------------------------------------------------------
.../hadoop/process/computer/giraph/GiraphGraphComputer.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/1ab7216d/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/giraph/GiraphGraphComputer.java
----------------------------------------------------------------------
diff --git a/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/giraph/GiraphGraphComputer.java b/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/giraph/GiraphGraphComputer.java
index 1d53577..4c4558a 100644
--- a/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/giraph/GiraphGraphComputer.java
+++ b/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/giraph/GiraphGraphComputer.java
@@ -23,6 +23,7 @@ import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.FileConfiguration;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.giraph.conf.GiraphConfiguration;
+import org.apache.giraph.conf.GiraphConstants;
import org.apache.giraph.job.GiraphJob;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.filecache.DistributedCache;
@@ -85,9 +86,9 @@ public class GiraphGraphComputer extends Configured implements GraphComputer, To
this.giraphConfiguration.setVertexClass(GiraphComputeVertex.class);
this.giraphConfiguration.setWorkerContextClass(GiraphWorkerContext.class);
this.giraphConfiguration.setOutEdgesClass(EmptyOutEdges.class);
- this.giraphConfiguration.setClass("giraph.vertexIdClass", LongWritable.class, LongWritable.class);
- this.giraphConfiguration.setClass("giraph.vertexValueClass", VertexWritable.class, VertexWritable.class);
- this.giraphConfiguration.setBoolean("giraph.isStaticGraph", true);
+ this.giraphConfiguration.setClass(GiraphConstants.VERTEX_ID_CLASS.getKey(), LongWritable.class, LongWritable.class);
+ this.giraphConfiguration.setClass(GiraphConstants.VERTEX_VALUE_CLASS.getKey(), VertexWritable.class, VertexWritable.class);
+ //this.giraphConfiguration.setBoolean("giraph.isStaticGraph", true);
this.giraphConfiguration.setVertexInputFormatClass(GiraphVertexInputFormat.class);
this.giraphConfiguration.setVertexOutputFormatClass(GiraphVertexOutputFormat.class);
}