added InjectStep.getInjections() for strategy access. Simple nothing. CTR.
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/3c75dd01 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/3c75dd01 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/3c75dd01 Branch: refs/heads/master Commit: 3c75dd010f0cb2dee4190ab9e8a209320a454f32 Parents: f02fab9 Author: Marko A. Rodriguez <okramma...@gmail.com> Authored: Sun Aug 6 19:42:59 2017 -0600 Committer: Marko A. Rodriguez <okramma...@gmail.com> Committed: Sun Aug 6 19:42:59 2017 -0600 ---------------------------------------------------------------------- CHANGELOG.asciidoc | 1 + .../gremlin/process/traversal/step/sideEffect/InjectStep.java | 4 ++++ 2 files changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/3c75dd01/CHANGELOG.asciidoc ---------------------------------------------------------------------- diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 9eddf21..803f3b2 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -28,6 +28,7 @@ TinkerPop 3.2.6 (Release Date: NOT OFFICIALLY RELEASED YET) This release also includes changes from <<release-3-1-8, 3.1.8>>. +* Allowed access to `InjectStep.injections` for `TraversalStrategy` analysis. * Exceptions that occur during result iteration in Gremlin Server will now return `SCRIPT_EVALUATION_EXCEPTION` rather than `SERVER_ERROR`. * `AddEdgeStep` attaches detached vertices prior to edge creation. * Added graph element GraphSON serializers in Gremlin-Python. http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/3c75dd01/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/sideEffect/InjectStep.java ---------------------------------------------------------------------- diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/sideEffect/InjectStep.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/sideEffect/InjectStep.java index 34b5eab..0502f18 100644 --- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/sideEffect/InjectStep.java +++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/sideEffect/InjectStep.java @@ -47,4 +47,8 @@ public final class InjectStep<S> extends StartStep<S> { super.reset(); this.start = new ArrayIterator<>(this.injections); } + + public S[] getInjections() { + return this.injections; + } }