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 2017/03/24 14:41:56 UTC
[12/19] tinkerpop git commit: added @spmallette updates.
added @spmallette updates.
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/28a05d74
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/28a05d74
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/28a05d74
Branch: refs/heads/master
Commit: 28a05d74d1bee82264d302bf77198ed10165605f
Parents: a9c2f65
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Thu Mar 16 10:53:49 2017 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Thu Mar 16 10:53:49 2017 -0600
----------------------------------------------------------------------
docs/src/upgrade/release-3.2.x-incubating.asciidoc | 7 +++++++
.../org/apache/tinkerpop/gremlin/process/traversal/Path.java | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/28a05d74/docs/src/upgrade/release-3.2.x-incubating.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/upgrade/release-3.2.x-incubating.asciidoc b/docs/src/upgrade/release-3.2.x-incubating.asciidoc
index a770ed8..7fe1d84 100644
--- a/docs/src/upgrade/release-3.2.x-incubating.asciidoc
+++ b/docs/src/upgrade/release-3.2.x-incubating.asciidoc
@@ -32,6 +32,13 @@ Please see the link:https://github.com/apache/tinkerpop/blob/3.2.5/CHANGELOG.asc
Upgrading for Users
~~~~~~~~~~~~~~~~~~~
+simplePath(), cyclicPath(), and path() support by()-, from()-, to()-modulation
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+It is now possible to extract analyze sub-paths using `from()` and `to()` modulations with respective, path-based steps.
+Likewise, `simplePath()` and `cyclicPath()` now support, along with `from()` and `to()`, `by()`-modulation so the cyclicity
+is determined by projections of the path data. This extension is fully backwards compatible.
+
Gremlin-Python Driver
^^^^^^^^^^^^^^^^^^^^^
Gremlin-Python now offers a more complete driver implementation that uses connection pooling and
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/28a05d74/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Path.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Path.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Path.java
index 3ad2613..91e0c05 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Path.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Path.java
@@ -252,7 +252,7 @@ public interface Path extends Cloneable, Iterable<Object> {
return this;
else {
Path subPath = MutablePath.make();
- int size = this.size();
+ final int size = this.size();
boolean record = false;
for (int i = 0; i < size; i++) {
final Set<String> labels = this.labels().get(i);