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/18 17:54:57 UTC
[1/3] incubator-tinkerpop git commit: Fix incorrect logging message.
Repository: incubator-tinkerpop
Updated Branches:
refs/heads/master 789ce4f03 -> 0aa43a100
Fix incorrect logging message.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/2e47697e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/2e47697e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/2e47697e
Branch: refs/heads/master
Commit: 2e47697e7f27e449418869ff4a3420b57d515935
Parents: ea1d0dd
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon May 18 10:49:30 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon May 18 10:49:30 2015 -0400
----------------------------------------------------------------------
.../tinkerpop/gremlin/driver/ser/GryoMessageSerializerV1d0.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/2e47697e/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/ser/GryoMessageSerializerV1d0.java
----------------------------------------------------------------------
diff --git a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/ser/GryoMessageSerializerV1d0.java b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/ser/GryoMessageSerializerV1d0.java
index 71e7a44..e71dad0 100644
--- a/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/ser/GryoMessageSerializerV1d0.java
+++ b/gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/ser/GryoMessageSerializerV1d0.java
@@ -124,7 +124,7 @@ public class GryoMessageSerializerV1d0 implements MessageSerializer {
if (serializerDefinition.contains(";")) {
final String[] split = serializerDefinition.split(";");
if (split.length != 2)
- throw new IllegalStateException(String.format("Invalid format for serializer definition [%s] - expected <class>:<serializer-class>", serializerDefinition));
+ throw new IllegalStateException(String.format("Invalid format for serializer definition [%s] - expected <class>;<serializer-class>", serializerDefinition));
className = split[0];
serializerName = Optional.of(split[1]);
[3/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/0aa43a10
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/0aa43a10
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/0aa43a10
Branch: refs/heads/master
Commit: 0aa43a1007f91d634343df03060d8cefd4a93e5b
Parents: ed3e4a1 789ce4f
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon May 18 11:54:49 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon May 18 11:54:49 2015 -0400
----------------------------------------------------------------------
CHANGELOG.asciidoc | 1 +
docs/src/the-traversal.asciidoc | 5 +-
docs/static/images/tail-step.png | Bin 0 -> 53242 bytes
docs/static/images/tinkerpop3.graffle | 1146 +++++++++++++++++-
.../traversal/step/map/ComputerResultStep.java | 4 +-
.../traversal/lambda/TraversalBiPredicate.java | 74 --
.../traversal/step/branch/BranchStep.java | 4 +-
.../traversal/step/branch/LocalStep.java | 4 +-
.../traversal/step/branch/RepeatStep.java | 10 +-
.../traversal/step/branch/UnionStep.java | 4 +-
.../process/traversal/step/filter/CoinStep.java | 4 +-
.../traversal/step/filter/ConjunctionStep.java | 4 +-
.../traversal/step/filter/DedupGlobalStep.java | 4 +-
.../process/traversal/step/filter/HasStep.java | 18 +-
.../process/traversal/step/filter/IsStep.java | 36 +-
.../traversal/step/filter/LambdaFilterStep.java | 4 +-
.../traversal/step/filter/RangeGlobalStep.java | 4 +-
.../traversal/step/filter/SampleGlobalStep.java | 4 +-
.../traversal/step/filter/TailGlobalStep.java | 4 +-
.../traversal/step/filter/TimeLimitStep.java | 4 +-
.../traversal/step/filter/WhereStep.java | 6 +-
.../traversal/step/map/AddEdgeByPathStep.java | 4 +-
.../traversal/step/map/CoalesceStep.java | 4 +-
.../traversal/step/map/EdgeVertexStep.java | 4 +-
.../traversal/step/map/GroupCountStep.java | 4 +-
.../process/traversal/step/map/GroupStep.java | 2 +-
.../traversal/step/map/LambdaFlatMapStep.java | 4 +-
.../traversal/step/map/LambdaMapStep.java | 4 +-
.../traversal/step/map/OrderGlobalStep.java | 4 +-
.../traversal/step/map/OrderLocalStep.java | 5 +-
.../process/traversal/step/map/PathStep.java | 4 +-
.../traversal/step/map/PropertiesStep.java | 4 +-
.../traversal/step/map/PropertyMapStep.java | 4 +-
.../traversal/step/map/RangeLocalStep.java | 4 +-
.../traversal/step/map/SelectOneStep.java | 4 +-
.../process/traversal/step/map/SelectStep.java | 4 +-
.../traversal/step/map/TailLocalStep.java | 4 +-
.../process/traversal/step/map/TreeStep.java | 4 +-
.../process/traversal/step/map/VertexStep.java | 4 +-
.../traversal/step/map/match/MatchStep.java | 4 +-
.../step/sideEffect/AggregateStep.java | 3 +-
.../traversal/step/sideEffect/GraphStep.java | 7 +-
.../sideEffect/GroupCountSideEffectStep.java | 4 +-
.../step/sideEffect/GroupSideEffectStep.java | 2 +-
.../step/sideEffect/LambdaSideEffectStep.java | 4 +-
.../step/sideEffect/SackElementValueStep.java | 4 +-
.../step/sideEffect/SideEffectCapStep.java | 4 +-
.../traversal/step/sideEffect/StartStep.java | 4 +-
.../traversal/step/sideEffect/StoreStep.java | 3 +-
.../traversal/step/sideEffect/SubgraphStep.java | 4 +-
.../step/sideEffect/TreeSideEffectStep.java | 4 +-
.../traversal/step/util/AbstractStep.java | 4 +-
.../traversal/step/util/ComputerAwareStep.java | 5 +-
.../step/util/TraversalBiPredicate.java | 74 ++
.../step/util/TraversalComparator.java | 4 +-
.../strategy/decoration/SubgraphStrategy.java | 10 +-
.../traversal/util/DefaultTraversal.java | 3 +-
.../process/traversal/util/TraversalHelper.java | 73 --
.../apache/tinkerpop/gremlin/structure/P.java | 2 +-
.../gremlin/structure/util/StringFactory.java | 40 +
.../groovy/loaders/SugarLoaderTest.groovy | 5 +-
.../gremlin/groovy/loaders/SugarLoader.groovy | 18 +-
.../step/sideEffect/TinkerGraphStep.java | 6 +-
63 files changed, 1366 insertions(+), 340 deletions(-)
----------------------------------------------------------------------
[2/3] incubator-tinkerpop git commit: Add a serialization section to
Gremlin Server configuration section.
Posted by sp...@apache.org.
Add a serialization section to Gremlin Server configuration section.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/ed3e4a13
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/ed3e4a13
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/ed3e4a13
Branch: refs/heads/master
Commit: ed3e4a13dd71fde59331de4f988726565a546576
Parents: 2e47697
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon May 18 11:54:23 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon May 18 11:54:23 2015 -0400
----------------------------------------------------------------------
docs/src/gremlin-applications.asciidoc | 50 +++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/ed3e4a13/docs/src/gremlin-applications.asciidoc
----------------------------------------------------------------------
diff --git a/docs/src/gremlin-applications.asciidoc b/docs/src/gremlin-applications.asciidoc
index e876869..709c30d 100644
--- a/docs/src/gremlin-applications.asciidoc
+++ b/docs/src/gremlin-applications.asciidoc
@@ -514,6 +514,56 @@ The following table describes the various configuration options that Gremlin Ser
NOTE: Configuration of link:http://ganglia.sourceforge.net/[Ganglia] requires an additional library that is not packaged with Gremlin Server due to its LGPL licensing that conflicts with the TinkerPop's Apache 2.0 License. To run Gremlin Server with Ganglia monitoring, download the `org.acplt:oncrpc` jar from link:http://repo1.maven.org/maven2/org/acplt/oncrpc/1.0.7/[here] and copy it to the Gremlin Server `/lib` directory before starting the server.
+Serialization
+^^^^^^^^^^^^^
+
+Gremlin Server can accept requests and return results using different serialization formats. The format of the serialization is configured by the `serializers` setting described in the table above. Note that some serializers have additional configuration options as defined by the `serializers[X].config` setting. The `config` setting is a `Map` where the keys and values get passed to the serializer at its initialization. The available and/or expected keys are dependent on the serializer being used. Gremlin Server comes packaged with two different serializers: GraphSON and Gryo.
+
+GraphSON
+++++++++
+
+The GraphSON serializer produces human readable output in JSON format and is a good configuration choice for those trying to use TinkerPop from non-JVM languages. JSON obviously has wide support across virtually all major programming languages and can be consumed by a wide variety of tools.
+
+[source,yaml]
+ - { className: org.apache.tinkerpop.gremlin.driver.ser.JsonMessageSerializerV1d0 }
+
+The above configuration represents the default serialization under the `application/json` MIME type and produces JSON consistent with standard JSON data types. It has the following configuration option:
+
+[width="100%",cols="3,10,^2",options="header"]
+|=========================================================
+|Key |Description |Default
+|useMapperFromGraph |Specifies the name of the `Graph` (from the `graphs` `Map` in the configuration file) from which to plugin any custom serializers that are tied to it. |_none_
+|=========================================================
+
+[source,yaml]
+ - { className: org.apache.tinkerpop.gremlin.driver.ser.JsonMessageSerializerGremlinV1d0 }
+
+When the standard JSON data types are not enough (e.g. need to identify the difference between `double` and `float` data types), the above configuration will embed types into the JSON itself. The type embedding uses standard Java type names, so interpretation from non-JVM languages will be required. It has the MIME type of `application/vnd.gremlin-v1.0+json` and the following configuration options:
+
+[width="100%",cols="3,10,^2",options="header"]
+|=========================================================
+|Key |Description |Default
+|useMapperFromGraph |Specifies the name of the `Graph` (from the `graphs` `Map` in the configuration file) from which to plugin any custom serializers that are tied to it. |_none_
+|=========================================================
+
+Gryo
+++++
+
+The Gryo serializer utilizes Kryo-based serialization which produces a binary output. This format is best consumed by JVM-based languages.
+
+[source,yaml]
+ - { className: org.apache.tinkerpop.gremlin.driver.ser.JsonMessageSerializerGremlinV1d0 }
+
+It has the MIME type of `application/vnd.gremlin-v1.0+gryo` and the following configuration options:
+
+[width="100%",cols="3,10,^2",options="header"]
+|=========================================================
+|Key |Description |Default
+|serializeResultToString |When set to `true`, results are serialized by first calling `toString()` on each object in the result list resulting in an extended MIME Type of `application/vnd.gremlin-v1.0+gryo-stringd`. When set to `false` Kryo-based serialization is applied. |_false_
+|useMapperFromGraph |Specifies the name of the `Graph` (from the `graphs` `Map` in the configuration file) from which to plugin any custom serializers that are tied to it. |_none_
+|custom |A list of classes with custom kryo `Serializer` implementations related to them in the form of `<class>;<serializer-class>`. |_none_
+|=========================================================
+
Tuning
~~~~~~