tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject svn commit: r1873418 [7/7] - in /tinkerpop/site: docs/3.4.5-SNAPSHOT/dev/developer/ docs/3.4.5-SNAPSHOT/dev/provider/ docs/3.4.5-SNAPSHOT/recipes/ docs/3.4.5-SNAPSHOT/reference/ docs/3.4.5-SNAPSHOT/tutorials/getting-started/ docs/3.4.5-SNAPSHOT/tutoria...
Date Fri, 31 Jan 2020 14:42:26 GMT
Modified: tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/process_translator.js.html
URL: http://svn.apache.org/viewvc/tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/process_translator.js.html?rev=1873418&r1=1873417&r2=1873418&view=diff
==============================================================================
--- tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/process_translator.js.html (original)
+++ tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/process_translator.js.html Fri Jan 31 14:42:25 2020
@@ -128,13 +128,13 @@ module.exports = Translator;</code></pre
 </div>
 
 <nav>
-    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a
href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a
href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a
href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a
href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a
href="GraphSONReader.html">GraphSONReader</a></li><li><a href="GraphSONWriter.html">GraphSONWriter</a></li><li><a
href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a
href="P.html">P</a></li><li><a href="Path.html">Path</a></li><li><a
href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a
href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStrategy.html">RemoteStrategy</a></li><li><a
href="RemoteTraversal.html">RemoteTraversal</a></li><li><a href="ResponseError.ht
 ml">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a
href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a
href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="TextP.html">TextP</a></li><li><a
href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a
href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a
href="global.html#statics">statics</a></li></ul>
+    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a
href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a
href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a
href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a
href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a
href="GraphSON2Reader.html">GraphSON2Reader</a></li><li><a href="GraphSON2Writer.html">GraphSON2Writer</a></li><li><a
href="GraphSON3Reader.html">GraphSON3Reader</a></li><li><a href="GraphSON3Writer.html">GraphSON3Writer</a></li><li><a
href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a
href="P.html">P</a></li><li><a href="Path.html">Path</a></li><li><a
href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a
href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStra
 tegy.html">RemoteStrategy</a></li><li><a href="RemoteTraversal.html">RemoteTraversal</a></li><li><a
href="ResponseError.html">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a
href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a
href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="TextP.html">TextP</a></li><li><a
href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a
href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a
href="global.html#statics">statics</a></li></ul>
 </nav>
 
 <br class="clear">
 
 <footer>
-    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
on Thu Jan 09 2020 08:26:23 GMT-0500 (EST)
+    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
on Fri Jan 31 2020 09:41:00 GMT-0500 (EST)
 </footer>
 
 <script> prettyPrint(); </script>

Modified: tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/process_traversal-strategy.js.html
URL: http://svn.apache.org/viewvc/tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/process_traversal-strategy.js.html?rev=1873418&r1=1873417&r2=1873418&view=diff
==============================================================================
--- tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/process_traversal-strategy.js.html (original)
+++ tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/process_traversal-strategy.js.html Fri Jan 31 14:42:25
2020
@@ -136,13 +136,13 @@ module.exports = {
 </div>
 
 <nav>
-    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a
href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a
href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a
href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a
href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a
href="GraphSONReader.html">GraphSONReader</a></li><li><a href="GraphSONWriter.html">GraphSONWriter</a></li><li><a
href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a
href="P.html">P</a></li><li><a href="Path.html">Path</a></li><li><a
href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a
href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStrategy.html">RemoteStrategy</a></li><li><a
href="RemoteTraversal.html">RemoteTraversal</a></li><li><a href="ResponseError.ht
 ml">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a
href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a
href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="TextP.html">TextP</a></li><li><a
href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a
href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a
href="global.html#statics">statics</a></li></ul>
+    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a
href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a
href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a
href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a
href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a
href="GraphSON2Reader.html">GraphSON2Reader</a></li><li><a href="GraphSON2Writer.html">GraphSON2Writer</a></li><li><a
href="GraphSON3Reader.html">GraphSON3Reader</a></li><li><a href="GraphSON3Writer.html">GraphSON3Writer</a></li><li><a
href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a
href="P.html">P</a></li><li><a href="Path.html">Path</a></li><li><a
href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a
href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStra
 tegy.html">RemoteStrategy</a></li><li><a href="RemoteTraversal.html">RemoteTraversal</a></li><li><a
href="ResponseError.html">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a
href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a
href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="TextP.html">TextP</a></li><li><a
href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a
href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a
href="global.html#statics">statics</a></li></ul>
 </nav>
 
 <br class="clear">
 
 <footer>
-    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
on Thu Jan 09 2020 08:26:23 GMT-0500 (EST)
+    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
on Fri Jan 31 2020 09:41:00 GMT-0500 (EST)
 </footer>
 
 <script> prettyPrint(); </script>

Modified: tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/process_traversal.js.html
URL: http://svn.apache.org/viewvc/tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/process_traversal.js.html?rev=1873418&r1=1873417&r2=1873418&view=diff
==============================================================================
--- tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/process_traversal.js.html (original)
+++ tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/process_traversal.js.html Fri Jan 31 14:42:25 2020
@@ -512,13 +512,13 @@ module.exports = {
 </div>
 
 <nav>
-    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a
href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a
href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a
href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a
href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a
href="GraphSONReader.html">GraphSONReader</a></li><li><a href="GraphSONWriter.html">GraphSONWriter</a></li><li><a
href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a
href="P.html">P</a></li><li><a href="Path.html">Path</a></li><li><a
href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a
href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStrategy.html">RemoteStrategy</a></li><li><a
href="RemoteTraversal.html">RemoteTraversal</a></li><li><a href="ResponseError.ht
 ml">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a
href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a
href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="TextP.html">TextP</a></li><li><a
href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a
href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a
href="global.html#statics">statics</a></li></ul>
+    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a
href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a
href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a
href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a
href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a
href="GraphSON2Reader.html">GraphSON2Reader</a></li><li><a href="GraphSON2Writer.html">GraphSON2Writer</a></li><li><a
href="GraphSON3Reader.html">GraphSON3Reader</a></li><li><a href="GraphSON3Writer.html">GraphSON3Writer</a></li><li><a
href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a
href="P.html">P</a></li><li><a href="Path.html">Path</a></li><li><a
href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a
href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStra
 tegy.html">RemoteStrategy</a></li><li><a href="RemoteTraversal.html">RemoteTraversal</a></li><li><a
href="ResponseError.html">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a
href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a
href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="TextP.html">TextP</a></li><li><a
href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a
href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a
href="global.html#statics">statics</a></li></ul>
 </nav>
 
 <br class="clear">
 
 <footer>
-    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
on Thu Jan 09 2020 08:26:23 GMT-0500 (EST)
+    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
on Fri Jan 31 2020 09:41:00 GMT-0500 (EST)
 </footer>
 
 <script> prettyPrint(); </script>

Modified: tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/structure_graph.js.html
URL: http://svn.apache.org/viewvc/tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/structure_graph.js.html?rev=1873418&r1=1873417&r2=1873418&view=diff
==============================================================================
--- tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/structure_graph.js.html (original)
+++ tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/structure_graph.js.html Fri Jan 31 14:42:25 2020
@@ -93,7 +93,7 @@ class Vertex extends Element {
   }
 
   toString() {
-    return 'v[' + this.id + ']';
+    return `v[${this.id}]`;
   }
 }
 
@@ -113,7 +113,10 @@ class Edge extends Element {
   }
 
   toString() {
-    return 'e[' + this.id + '][' + this.outV.id + '-' + this.label + '->' + this.inV.id
+ ']';
+    const outVId = this.outV ? this.outV.id : '?';
+    const inVId = this.inV ? this.inV.id : '?';
+
+    return `e[${this.id}][${outVId}-${this.label}->${inVId}]`;
   }
 }
 
@@ -126,7 +129,7 @@ class VertexProperty extends Element {
   }
 
   toString() {
-    return 'vp[' + this.label + '->' + this.value.substr(0, 20) + ']';
+    return `vp[${this.label}->${summarize(this.value)}]`;
   }
 }
 
@@ -137,7 +140,7 @@ class Property {
   }
 
   toString() {
-    return 'p[' + this.key + '->' + this.value.substr(0, 20) + ']';
+    return `p[${this.key}->${summarize(this.value)}]`;
   }
 
   equals(other) {
@@ -158,7 +161,7 @@ class Path {
   }
 
   toString() {
-    return 'path[' + this.objects.join(", ") +  ']';
+    return `path[${(this.objects || []).join(", ")}]`;
   }
 
   equals(other) {
@@ -193,13 +196,22 @@ function areEqual(obj1, obj2) {
   return false;
 }
 
+function summarize(value) {
+  if (value === null || value === undefined) {
+    return value;
+  }
+
+  const strValue = value.toString();
+  return strValue.length > 20 ? strValue.substr(0, 20) : strValue;
+}
+
 module.exports = {
-  Edge: Edge,
-  Graph: Graph,
-  Path: Path,
-  Property: Property,
-  Vertex: Vertex,
-  VertexProperty: VertexProperty
+  Edge,
+  Graph,
+  Path,
+  Property,
+  Vertex,
+  VertexProperty
 };
 </code></pre>
         </article>
@@ -211,13 +223,13 @@ module.exports = {
 </div>
 
 <nav>
-    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a
href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a
href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a
href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a
href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a
href="GraphSONReader.html">GraphSONReader</a></li><li><a href="GraphSONWriter.html">GraphSONWriter</a></li><li><a
href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a
href="P.html">P</a></li><li><a href="Path.html">Path</a></li><li><a
href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a
href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStrategy.html">RemoteStrategy</a></li><li><a
href="RemoteTraversal.html">RemoteTraversal</a></li><li><a href="ResponseError.ht
 ml">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a
href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a
href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="TextP.html">TextP</a></li><li><a
href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a
href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a
href="global.html#statics">statics</a></li></ul>
+    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a
href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a
href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a
href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a
href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a
href="GraphSON2Reader.html">GraphSON2Reader</a></li><li><a href="GraphSON2Writer.html">GraphSON2Writer</a></li><li><a
href="GraphSON3Reader.html">GraphSON3Reader</a></li><li><a href="GraphSON3Writer.html">GraphSON3Writer</a></li><li><a
href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a
href="P.html">P</a></li><li><a href="Path.html">Path</a></li><li><a
href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a
href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStra
 tegy.html">RemoteStrategy</a></li><li><a href="RemoteTraversal.html">RemoteTraversal</a></li><li><a
href="ResponseError.html">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a
href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a
href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="TextP.html">TextP</a></li><li><a
href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a
href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a
href="global.html#statics">statics</a></li></ul>
 </nav>
 
 <br class="clear">
 
 <footer>
-    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
on Thu Jan 09 2020 08:26:23 GMT-0500 (EST)
+    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
on Fri Jan 31 2020 09:41:00 GMT-0500 (EST)
 </footer>
 
 <script> prettyPrint(); </script>

Modified: tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/structure_io_graph-serializer.js.html
URL: http://svn.apache.org/viewvc/tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/structure_io_graph-serializer.js.html?rev=1873418&r1=1873417&r2=1873418&view=diff
==============================================================================
--- tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/structure_io_graph-serializer.js.html (original)
+++ tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/structure_io_graph-serializer.js.html Fri Jan 31
14:42:25 2020
@@ -53,24 +53,27 @@
 const typeSerializers = require('./type-serializers');
 
 /**
- * GraphSON Writer
+ * GraphSON2 writer.
  */
-class GraphSONWriter {
+class GraphSON2Writer {
+
   /**
    * @param {Object} [options]
-   * @param {Object} options.serializers An object used as an associative array with GraphSON
2 type name as keys and
+   * @param {Object} [options.serializers] An object used as an associative array with GraphSON
2 type name as keys and
    * serializer instances as values, ie: { 'g:Int64': longSerializer }.
    * @constructor
    */
   constructor(options) {
     this._options = options || {};
     // Create instance of the default serializers
-    this._serializers = serializers.map(serializerConstructor => {
+    this._serializers = this.getDefaultSerializers().map(serializerConstructor => {
       const s = new serializerConstructor();
       s.writer = this;
       return s;
     });
+
     const customSerializers = this._options.serializers || {};
+
     Object.keys(customSerializers).forEach(key => {
       const s = customSerializers[key];
       if (!s.serialize) {
@@ -82,6 +85,14 @@ class GraphSONWriter {
     });
   }
 
+  /**
+   * Gets the default serializers to be used.
+   * @returns {Array}
+   */
+  getDefaultSerializers() {
+    return graphSON2Serializers;
+  }
+
   adaptObject(value) {
     let s;
 
@@ -117,7 +128,19 @@ class GraphSONWriter {
   }
 }
 
-class GraphSONReader {
+/**
+ * GraphSON3 writer.
+ */
+class GraphSON3Writer extends GraphSON2Writer {
+  getDefaultSerializers() {
+    return graphSON3Serializers;
+  }
+}
+
+/**
+ * GraphSON2 reader.
+ */
+class GraphSON2Reader {
   /**
    * GraphSON Reader
    * @param {Object} [options]
@@ -128,12 +151,15 @@ class GraphSONReader {
   constructor(options) {
     this._options = options || {};
     this._deserializers = {};
-    Object.keys(deserializers).forEach(typeName => {
-      const serializerConstructor = deserializers[typeName];
+
+    const defaultDeserializers = this.getDefaultDeserializers();
+    Object.keys(defaultDeserializers).forEach(typeName => {
+      const serializerConstructor = defaultDeserializers[typeName];
       const s = new serializerConstructor();
       s.reader = this;
       this._deserializers[typeName] = s;
     });
+
     if (this._options.serializers) {
       const customSerializers = this._options.serializers || {};
       Object.keys(customSerializers).forEach(key => {
@@ -147,6 +173,14 @@ class GraphSONReader {
     }
   }
 
+  /**
+   * Gets the default deserializers as an associative array.
+   * @returns {Object}
+   */
+  getDefaultDeserializers() {
+    return graphSON2Deserializers;
+  }
+
   read(obj) {
     if (obj === undefined) {
       return undefined;
@@ -183,7 +217,16 @@ class GraphSONReader {
   }
 }
 
-const deserializers = {
+/**
+ * GraphSON3 reader.
+ */
+class GraphSON3Reader extends GraphSON2Reader {
+  getDefaultDeserializers() {
+    return graphSON3Deserializers;
+  }
+}
+
+const graphSON2Deserializers = {
   'g:Traverser': typeSerializers.TraverserSerializer,
   'g:TraversalStrategy': typeSerializers.TraversalStrategySerializer,
   'g:Int32':  typeSerializers.NumberSerializer,
@@ -197,15 +240,18 @@ const deserializers = {
   'g:VertexProperty': typeSerializers.VertexPropertySerializer,
   'g:Property': typeSerializers.PropertySerializer,
   'g:Path': typeSerializers.Path3Serializer,
-  'g:T': typeSerializers.TSerializer,
   'g:TextP': typeSerializers.TextPSerializer,
-  'g:List': typeSerializers.ListSerializer,
-  'g:Set': typeSerializers.SetSerializer,
-  'g:Map': typeSerializers.MapSerializer,
+  'g:T': typeSerializers.TSerializer,
   'g:BulkSet': typeSerializers.BulkSetSerializer
 };
 
-const serializers = [
+const graphSON3Deserializers = Object.assign({}, graphSON2Deserializers, {
+  'g:List': typeSerializers.ListSerializer,
+  'g:Set': typeSerializers.SetSerializer,
+  'g:Map': typeSerializers.MapSerializer
+});
+
+const graphSON2Serializers = [
   typeSerializers.NumberSerializer,
   typeSerializers.DateSerializer,
   typeSerializers.BytecodeSerializer,
@@ -217,14 +263,22 @@ const serializers = [
   typeSerializers.EnumSerializer,
   typeSerializers.VertexSerializer,
   typeSerializers.EdgeSerializer,
-  typeSerializers.LongSerializer,
+  typeSerializers.LongSerializer
+];
+
+const graphSON3Serializers = graphSON2Serializers.concat([
   typeSerializers.ListSerializer,
+  typeSerializers.SetSerializer,
   typeSerializers.MapSerializer
-];
+]);
 
 module.exports = {
-  GraphSONWriter,
-  GraphSONReader
+  GraphSON3Writer,
+  GraphSON3Reader,
+  GraphSON2Writer,
+  GraphSON2Reader,
+  GraphSONWriter: GraphSON3Writer,
+  GraphSONReader: GraphSON3Reader
 };</code></pre>
         </article>
     </section>
@@ -235,13 +289,13 @@ module.exports = {
 </div>
 
 <nav>
-    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a
href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a
href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a
href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a
href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a
href="GraphSONReader.html">GraphSONReader</a></li><li><a href="GraphSONWriter.html">GraphSONWriter</a></li><li><a
href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a
href="P.html">P</a></li><li><a href="Path.html">Path</a></li><li><a
href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a
href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStrategy.html">RemoteStrategy</a></li><li><a
href="RemoteTraversal.html">RemoteTraversal</a></li><li><a href="ResponseError.ht
 ml">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a
href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a
href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="TextP.html">TextP</a></li><li><a
href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a
href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a
href="global.html#statics">statics</a></li></ul>
+    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a
href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a
href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a
href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a
href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a
href="GraphSON2Reader.html">GraphSON2Reader</a></li><li><a href="GraphSON2Writer.html">GraphSON2Writer</a></li><li><a
href="GraphSON3Reader.html">GraphSON3Reader</a></li><li><a href="GraphSON3Writer.html">GraphSON3Writer</a></li><li><a
href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a
href="P.html">P</a></li><li><a href="Path.html">Path</a></li><li><a
href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a
href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStra
 tegy.html">RemoteStrategy</a></li><li><a href="RemoteTraversal.html">RemoteTraversal</a></li><li><a
href="ResponseError.html">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a
href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a
href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="TextP.html">TextP</a></li><li><a
href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a
href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a
href="global.html#statics">statics</a></li></ul>
 </nav>
 
 <br class="clear">
 
 <footer>
-    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
on Thu Jan 09 2020 08:26:23 GMT-0500 (EST)
+    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
on Fri Jan 31 2020 09:41:00 GMT-0500 (EST)
 </footer>
 
 <script> prettyPrint(); </script>

Modified: tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/structure_io_type-serializers.js.html
URL: http://svn.apache.org/viewvc/tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/structure_io_type-serializers.js.html?rev=1873418&r1=1873417&r2=1873418&view=diff
==============================================================================
--- tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/structure_io_type-serializers.js.html (original)
+++ tinkerpop/site/jsdocs/3.4.5-SNAPSHOT/structure_io_type-serializers.js.html Fri Jan 31
14:42:25 2020
@@ -343,9 +343,9 @@ class EdgeSerializer extends TypeSeriali
     const value = obj[valueKey];
     return new g.Edge(
       this.reader.read(value['id']),
-      this.reader.read(value['outV']),
+      new g.Vertex(this.reader.read(value['outV']), this.reader.read(value['outVLabel'])),
       value['label'],
-      this.reader.read(value['inV']),
+      new g.Vertex(this.reader.read(value['inV']), this.reader.read(value['inVLabel'])),
       this.reader.read(value['properties'])
     );
   }
@@ -524,13 +524,13 @@ module.exports = {
 </div>
 
 <nav>
-    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a
href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a
href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a
href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a
href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a
href="GraphSONReader.html">GraphSONReader</a></li><li><a href="GraphSONWriter.html">GraphSONWriter</a></li><li><a
href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a
href="P.html">P</a></li><li><a href="Path.html">Path</a></li><li><a
href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a
href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStrategy.html">RemoteStrategy</a></li><li><a
href="RemoteTraversal.html">RemoteTraversal</a></li><li><a href="ResponseError.ht
 ml">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a
href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a
href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="TextP.html">TextP</a></li><li><a
href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a
href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a
href="global.html#statics">statics</a></li></ul>
+    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a
href="AnonymousTraversalSource.html">AnonymousTraversalSource</a></li><li><a
href="Authenticator.html">Authenticator</a></li><li><a href="Bytecode.html">Bytecode</a></li><li><a
href="Client.html">Client</a></li><li><a href="Connection.html">Connection</a></li><li><a
href="DriverRemoteConnection.html">DriverRemoteConnection</a></li><li><a
href="GraphSON2Reader.html">GraphSON2Reader</a></li><li><a href="GraphSON2Writer.html">GraphSON2Writer</a></li><li><a
href="GraphSON3Reader.html">GraphSON3Reader</a></li><li><a href="GraphSON3Writer.html">GraphSON3Writer</a></li><li><a
href="GraphTraversal.html">GraphTraversal</a></li><li><a href="GraphTraversalSource.html">GraphTraversalSource</a></li><li><a
href="P.html">P</a></li><li><a href="Path.html">Path</a></li><li><a
href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a
href="RemoteConnection.html">RemoteConnection</a></li><li><a href="RemoteStra
 tegy.html">RemoteStrategy</a></li><li><a href="RemoteTraversal.html">RemoteTraversal</a></li><li><a
href="ResponseError.html">ResponseError</a></li><li><a href="ResultSet.html">ResultSet</a></li><li><a
href="SaslAuthenticator.html">SaslAuthenticator</a></li><li><a href="SaslMechanismBase.html">SaslMechanismBase</a></li><li><a
href="SaslMechanismPlain.html">SaslMechanismPlain</a></li><li><a href="TextP.html">TextP</a></li><li><a
href="Translator.html">Translator</a></li><li><a href="TraversalStrategies.html">TraversalStrategies</a></li><li><a
href="TraversalStrategy.html">TraversalStrategy</a></li><li><a href="TypeSerializer.html">TypeSerializer</a></li></ul><h3>Global</h3><ul><li><a
href="global.html#statics">statics</a></li></ul>
 </nav>
 
 <br class="clear">
 
 <footer>
-    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
on Thu Jan 09 2020 08:26:23 GMT-0500 (EST)
+    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
on Fri Jan 31 2020 09:41:00 GMT-0500 (EST)
 </footer>
 
 <script> prettyPrint(); </script>



Mime
View raw message