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/24 01:13:47 UTC

[06/11] incubator-tinkerpop git commit: updates

updates


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

Branch: refs/heads/master
Commit: 450a70ca745d325175a60cac9791701e6f3ada02
Parents: b71b733
Author: Kushal <ku...@foodinhood.com>
Authored: Fri Nov 20 22:33:01 2015 -0800
Committer: Kushal <ku...@foodinhood.com>
Committed: Fri Nov 20 22:33:01 2015 -0800

----------------------------------------------------------------------
 CHANGELOG.asciidoc                                             | 1 +
 .../java/org/apache/tinkerpop/gremlin/structure/io/IoCore.java | 6 +++---
 .../gremlin/tinkergraph/structure/TinkerGraphTest.java         | 6 +++++-
 3 files changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/450a70ca/CHANGELOG.asciidoc
----------------------------------------------------------------------
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
old mode 100644
new mode 100755
index 5f3018a..e6fce8e
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -29,6 +29,7 @@ TinkerPop 3.1.1 (NOT OFFICIALLY RELEASED YET)
 * Added `explain()`-step which yields a `TraversalExplanation` with a pretty `toString()` detailing the compilation process.
 * Fixed a traversal strategy ordering bug in `AdjacentToIncidentStrategy` and `IncidentToAdjacentStrategy`.
 * Made a number of changes to improve traversal startup and execution performance.
+* Added support for 'gremlin.tinkergraph.graphLocation' to accept a fully qualified class name that implements Io.Builder interface
 
 [[release-3.1.0-incubating]]
 TinkerPop 3.1.0 (Release Date: November 16, 2015)

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/450a70ca/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoCore.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoCore.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoCore.java
index 9295269..9d9ad60 100755
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoCore.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoCore.java
@@ -53,9 +53,9 @@ public final class IoCore {
         return GryoIo.build();
     }
 
-    public static Io.Builder createIoBuilder(String graphFormat) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
-        Class<Io.Builder> ioBuilderClass = (Class<Io.Builder>) Class.forName(graphFormat);
-        Io.Builder ioBuilder = ioBuilderClass.newInstance();
+    public static Io.Builder createIoBuilder(final String graphFormat) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
+        final Class<Io.Builder> ioBuilderClass = (Class<Io.Builder>) Class.forName(graphFormat);
+        final Io.Builder ioBuilder = ioBuilderClass.newInstance();
         return ioBuilder;
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/450a70ca/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphTest.java
----------------------------------------------------------------------
diff --git a/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphTest.java b/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphTest.java
index 1f627fc..7ff797b 100755
--- a/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphTest.java
+++ b/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphTest.java
@@ -32,7 +32,11 @@ import org.apache.tinkerpop.gremlin.structure.io.IoTest;
 import org.junit.Ignore;
 import org.junit.Test;
 
-import java.io.*;
+import java.io.BufferedOutputStream;
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileOutputStream;
 import java.util.Set;
 
 import static org.junit.Assert.assertEquals;