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/06/08 20:57:51 UTC

incubator-tinkerpop git commit: fixed a bug in Neo4j docs.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master bc4de5e48 -> 0f4b2ed1c


fixed a bug in Neo4j docs.


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

Branch: refs/heads/master
Commit: 0f4b2ed1cd32b7c71101db8f4dcb599905a5870c
Parents: bc4de5e
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Mon Jun 8 12:57:47 2015 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Mon Jun 8 12:57:47 2015 -0600

----------------------------------------------------------------------
 docs/src/implementations.asciidoc                         | 10 +++++-----
 .../gremlin/process/traversal/TraversalStrategies.java    |  2 ++
 2 files changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/0f4b2ed1/docs/src/implementations.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/implementations.asciidoc b/docs/src/implementations.asciidoc
index 3d2ce63..9cc9709 100644
--- a/docs/src/implementations.asciidoc
+++ b/docs/src/implementations.asciidoc
@@ -475,11 +475,11 @@ The execution times for a vertex lookup by property is provided below for both n
 [gremlin-groovy]
 ----
 graph = TinkerGraph.open()
-g = graph.traversal(standard())
+g = graph.traversal()
 graph.io(graphml()).readGraph('data/grateful-dead.xml')
 clock(1000) {g.V().has('name','Garcia').next()} <1>
 graph = TinkerGraph.open()
-g = graph.traversal(standard())
+g = graph.traversal()
 graph.createIndex('name',Vertex.class)
 graph.io(graphml()).readGraph('data/grateful-dead.xml')
 clock(1000){g.V().has('name','Garcia').next()} <2>
@@ -590,12 +590,12 @@ Below demonstrates the runtime benefits of indices and demonstrates how if there
 ----
 graph = Neo4jGraph.open('/tmp/neo4j')
 graph.io(graphml()).readGraph('data/grateful-dead.xml')
+g = graph.traversal()
 g.tx().commit()
-g = graph.traversal(standard())
 clock(1000) {g.V().hasLabel('artist').has('name','Garcia').iterate()}  <1>
 clock(1000) {g.V().has('name','Garcia').iterate()} <2>
 graph.cypher("CREATE INDEX ON :artist(name)") <3>
-graph.tx().commit()
+g.tx().commit()
 Thread.sleep(5000) <4>
 clock(1000) {g.V().hasLabel('artist').has('name','Garcia').iterate()} <5>
 clock(1000) {g.V().has('name','Garcia').iterate()} <6>
@@ -817,7 +817,7 @@ CAUTION: OLTP operations on `HadoopGraph` are not efficient. They require linear
 hdfs.copyFromLocal('data/tinkerpop-modern.kryo', 'tinkerpop-modern.kryo')
 hdfs.ls()
 graph = GraphFactory.open('conf/hadoop/hadoop-gryo.properties')
-g = graph.traversal(standard())
+g = graph.traversal()
 g.V().count()
 g.V().out().out().values('name')
 g.V().group().by{it.value('name')[1]}.by('name').next()

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/0f4b2ed1/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategies.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategies.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategies.java
index 9687049..aaac959 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategies.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/TraversalStrategies.java
@@ -20,6 +20,7 @@ package org.apache.tinkerpop.gremlin.process.traversal;
 
 import org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.ConjunctionStrategy;
 import org.apache.tinkerpop.gremlin.process.traversal.strategy.finalization.EngineDependentStrategy;
+import org.apache.tinkerpop.gremlin.process.traversal.strategy.finalization.LazyBarrierStrategy;
 import org.apache.tinkerpop.gremlin.process.traversal.strategy.finalization.ProfileStrategy;
 import org.apache.tinkerpop.gremlin.process.traversal.strategy.finalization.ScopingStrategy;
 import org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.AdjacentToIncidentStrategy;
@@ -208,6 +209,7 @@ public interface TraversalStrategies extends Serializable, Cloneable {
                     RangeByIsCountStrategy.instance(),
                     ComputerVerificationStrategy.instance());
             //LambdaRestrictionStrategy.instance(),
+            //LazyBarrierStrategy.instance(),
 
             CACHE.put(Graph.class, coreStrategies.clone());
             CACHE.put(EmptyGraph.class, new DefaultTraversalStrategies());