You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/11/05 02:56:49 UTC

[31/50] [abbrv] incubator-tinkerpop git commit: Integer.MAX_VALUE should be Long.MAX_VALUE. CTR as its a trivial tweak.

Integer.MAX_VALUE should be Long.MAX_VALUE. CTR as its a trivial tweak.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/06d747f0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/06d747f0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/06d747f0

Branch: refs/heads/TINKERPOP3-923
Commit: 06d747f094eef6d3f42d9b322bb3c2c806b5d3fc
Parents: aadd422
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Tue Nov 3 09:17:27 2015 -0700
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Tue Nov 3 09:17:27 2015 -0700

----------------------------------------------------------------------
 .../gremlin/hadoop/structure/hdfs/HadoopElementIterator.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/06d747f0/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/structure/hdfs/HadoopElementIterator.java
----------------------------------------------------------------------
diff --git a/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/structure/hdfs/HadoopElementIterator.java b/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/structure/hdfs/HadoopElementIterator.java
index 3602f85..a9f287b 100644
--- a/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/structure/hdfs/HadoopElementIterator.java
+++ b/hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/structure/hdfs/HadoopElementIterator.java
@@ -52,7 +52,7 @@ public abstract class HadoopElementIterator<E extends Element> implements Iterat
         this.graph = graph;
         final Configuration configuration = ConfUtil.makeHadoopConfiguration(this.graph.configuration());
         for (final Path path2 : HDFSTools.getAllFilePaths(FileSystem.get(configuration), path, HiddenFileFilter.instance())) {
-            this.readers.add(inputFormat.createRecordReader(new FileSplit(path2, 0, Integer.MAX_VALUE, new String[]{}), new TaskAttemptContextImpl(configuration, new TaskAttemptID())));
+            this.readers.add(inputFormat.createRecordReader(new FileSplit(path2, 0, Long.MAX_VALUE, new String[]{}), new TaskAttemptContextImpl(configuration, new TaskAttemptID())));
         }
     }
 
@@ -63,7 +63,7 @@ public abstract class HadoopElementIterator<E extends Element> implements Iterat
                 final Configuration configuration = ConfUtil.makeHadoopConfiguration(this.graph.configuration());
                 final InputFormat<NullWritable, VertexWritable> inputFormat = this.graph.configuration().getGraphInputFormat().getConstructor().newInstance();
                 for (final Path path : HDFSTools.getAllFilePaths(FileSystem.get(configuration), new Path(graph.configuration().getInputLocation()), HiddenFileFilter.instance())) {
-                    this.readers.add(inputFormat.createRecordReader(new FileSplit(path, 0, Integer.MAX_VALUE, new String[]{}), new TaskAttemptContextImpl(configuration, new TaskAttemptID())));
+                    this.readers.add(inputFormat.createRecordReader(new FileSplit(path, 0, Long.MAX_VALUE, new String[]{}), new TaskAttemptContextImpl(configuration, new TaskAttemptID())));
                 }
             }
         } catch (Exception e) {