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/05/04 17:32:12 UTC
[1/3] incubator-tinkerpop git commit: Update changelog.
Repository: incubator-tinkerpop
Updated Branches:
refs/heads/master ad3570f8f -> f0cddfa7b
Update changelog.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/408cbee8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/408cbee8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/408cbee8
Branch: refs/heads/master
Commit: 408cbee890e845325acc7c3b51ff9dc0ec855390
Parents: 1f2a6ad
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon May 4 09:54:20 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon May 4 09:54:20 2015 -0400
----------------------------------------------------------------------
CHANGELOG.asciidoc | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/408cbee8/CHANGELOG.asciidoc
----------------------------------------------------------------------
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index 7af5087..b1b554f 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -27,6 +27,7 @@ TinkerPop 3.0.0.M9 (NOT OFFICIALLY RELEASED YET)
* Added `PersistResultGraphAware` interface which is used by `OutputFormats` to specify persistence possibilities for a Hadoop `GraphComputer`.
* `ElementIdStrategy` now allows the identifier property to be set directly (and not only by specifying `T.id`).
+* Added sample configuration files for registring a `TraversalStrategy` in Gremlin Server.
* `Path` and `Step` labels are ordered by the order in which the respective `addLabel()` calls were made.
* A `Step` now has a `Set<String>` of labels. Updated `as()` to take a var args of labels.
* Dropped `BatchGraph` from the code base - it will be replaced by bulk loader functionality over OLAP.
[3/3] incubator-tinkerpop git commit: Update javadoc on
ElementIdStrategy.
Posted by sp...@apache.org.
Update javadoc on ElementIdStrategy.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/f0cddfa7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/f0cddfa7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/f0cddfa7
Branch: refs/heads/master
Commit: f0cddfa7b0606fff9de47b6ce0dfa5e15072327c
Parents: 4686df7
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon May 4 11:31:57 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon May 4 11:31:57 2015 -0400
----------------------------------------------------------------------
.../strategy/decoration/ElementIdStrategy.java | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/f0cddfa7/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/ElementIdStrategy.java
----------------------------------------------------------------------
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/ElementIdStrategy.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/ElementIdStrategy.java
index 9128b46..f7b0d5e 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/ElementIdStrategy.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/decoration/ElementIdStrategy.java
@@ -43,7 +43,18 @@ import java.util.UUID;
import java.util.function.Supplier;
/**
+ * Provides a degree of control over element identifier assignment as some graphs don't provide that feature. This
+ * strategy provides for identifier assignment by enabling users to utilize vertex and edge indices under the hood,
+ * thus simulating that capability.
+ * <p/>
+ * By default, when an identifier is not supplied by the user, newly generated identifiers are {@link UUID} objects.
+ * This behavior can be overriden by setting the {@link Builder#idMaker(Supplier)}.
+ * <p/>
+ * Unless otherwise specified the identifier is stored in the {@code __id} property. This can be changed by setting
+ * the {@link Builder#idPropertyKey(String}
+ *
* @author Marko A. Rodriguez (http://markorodriguez.com)
+ * @author Stephen Mallette (http://stephen.genoprime.com)
*/
public final class ElementIdStrategy extends AbstractTraversalStrategy {
@@ -147,11 +158,18 @@ public final class ElementIdStrategy extends AbstractTraversalStrategy {
private Builder() {}
+ /**
+ * Creates a new unique identifier for the next created {@link Element}.
+ */
public Builder idMaker(final Supplier<Object> idMaker) {
this.idMaker = idMaker;
return this;
}
+ /**
+ * This key within which to hold the user-specified identifier. This field should be indexed by the
+ * underlying graph.
+ */
public Builder idPropertyKey(final String idPropertyKey) {
this.idPropertyKey = idPropertyKey;
return this;
[2/3] incubator-tinkerpop git commit: Merge remote-tracking branch
'origin/master'
Posted by sp...@apache.org.
Merge remote-tracking branch 'origin/master'
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/4686df7c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/4686df7c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/4686df7c
Branch: refs/heads/master
Commit: 4686df7c158fdc443d8ae76795ae0f96732e2fde
Parents: 408cbee ad3570f
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon May 4 11:16:21 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon May 4 11:16:21 2015 -0400
----------------------------------------------------------------------
CHANGELOG.asciidoc | 1 +
.../process/traversal/step/Profileable.java | 31 ++++++
.../traversal/step/sideEffect/ProfileStep.java | 8 +-
.../traversal/util/ImmutableMetrics.java | 9 +-
.../gremlin/process/traversal/util/Metrics.java | 4 +-
.../util/StandardTraversalMetrics.java | 37 +++++--
.../gremlin/structure/util/star/StarGraph.java | 2 +
.../traversal/step/sideEffect/ProfileTest.java | 101 ++++++++++++++-----
.../hadoop/structure/io/VertexWritable.java | 10 +-
.../io/graphson/GraphSONRecordReader.java | 13 +--
.../structure/io/gryo/GryoRecordReader.java | 15 +--
.../gremlin/hadoop/HadoopGraphProvider.java | 10 +-
12 files changed, 167 insertions(+), 74 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/4686df7c/CHANGELOG.asciidoc
----------------------------------------------------------------------