gremlin 3.8.0 → 4.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (416) hide show
  1. package/README.md +18 -4
  2. package/build/cjs/driver/auth.cjs +69 -0
  3. package/build/cjs/driver/auth.d.cts +9 -0
  4. package/build/cjs/driver/client.cjs +134 -0
  5. package/build/cjs/driver/client.d.cts +85 -0
  6. package/build/cjs/driver/connection.cjs +250 -0
  7. package/build/cjs/driver/connection.d.cts +63 -0
  8. package/build/cjs/driver/driver-remote-connection.cjs +141 -0
  9. package/build/cjs/driver/driver-remote-connection.d.cts +33 -0
  10. package/build/cjs/driver/remote-connection.cjs +75 -0
  11. package/build/cjs/driver/remote-connection.d.cts +72 -0
  12. package/build/cjs/driver/request-message.cjs +157 -0
  13. package/build/cjs/driver/request-message.d.cts +49 -0
  14. package/build/cjs/driver/response-error.cjs +45 -0
  15. package/build/cjs/driver/response-error.d.cts +13 -0
  16. package/build/cjs/driver/result-set.cjs +111 -0
  17. package/build/cjs/driver/result-set.d.cts +29 -0
  18. package/build/cjs/index.cjs +125 -0
  19. package/build/cjs/index.d.cts +393 -0
  20. package/build/cjs/language/grammar/GremlinLexer.cjs +1851 -0
  21. package/build/cjs/language/grammar/GremlinLexer.d.cts +340 -0
  22. package/build/cjs/language/grammar/GremlinListener.cjs +4490 -0
  23. package/build/cjs/language/grammar/GremlinListener.d.cts +4898 -0
  24. package/build/cjs/language/grammar/GremlinParser.cjs +35244 -0
  25. package/build/cjs/language/grammar/GremlinParser.d.cts +5881 -0
  26. package/build/cjs/language/index.cjs +48 -0
  27. package/build/cjs/language/index.d.cts +12 -0
  28. package/build/cjs/language/translator/AnonymizedTranslateVisitor.cjs +157 -0
  29. package/build/cjs/language/translator/AnonymizedTranslateVisitor.d.cts +36 -0
  30. package/build/cjs/language/translator/DotNetTranslateVisitor.cjs +826 -0
  31. package/build/cjs/language/translator/DotNetTranslateVisitor.d.cts +155 -0
  32. package/build/cjs/language/translator/GoTranslateVisitor.cjs +339 -0
  33. package/build/cjs/language/translator/GoTranslateVisitor.d.cts +31 -0
  34. package/build/cjs/language/translator/GremlinTranslator.cjs +96 -0
  35. package/build/cjs/language/translator/GremlinTranslator.d.cts +18 -0
  36. package/build/cjs/language/translator/GroovyTranslateVisitor.cjs +287 -0
  37. package/build/cjs/language/translator/GroovyTranslateVisitor.d.cts +34 -0
  38. package/build/cjs/language/translator/JavaTranslateVisitor.cjs +247 -0
  39. package/build/cjs/language/translator/JavaTranslateVisitor.d.cts +23 -0
  40. package/build/cjs/language/translator/JavascriptTranslateVisitor.cjs +220 -0
  41. package/build/cjs/language/translator/JavascriptTranslateVisitor.d.cts +25 -0
  42. package/build/cjs/language/translator/PythonTranslateVisitor.cjs +304 -0
  43. package/build/cjs/language/translator/PythonTranslateVisitor.d.cts +28 -0
  44. package/build/cjs/language/translator/TranslateVisitor.cjs +389 -0
  45. package/build/cjs/language/translator/TranslateVisitor.d.cts +91 -0
  46. package/build/cjs/language/translator/Translation.cjs +47 -0
  47. package/build/cjs/language/translator/Translation.d.cts +13 -0
  48. package/build/cjs/language/translator/Translator.cjs +46 -0
  49. package/build/cjs/language/translator/Translator.d.cts +24 -0
  50. package/build/cjs/language/translator/TranslatorException.cjs +31 -0
  51. package/build/cjs/language/translator/TranslatorException.d.cts +6 -0
  52. package/build/cjs/process/anonymous-traversal.cjs +78 -0
  53. package/build/cjs/process/anonymous-traversal.d.cts +40 -0
  54. package/build/cjs/process/graph-traversal.cjs +1702 -0
  55. package/build/cjs/process/graph-traversal.d.cts +1134 -0
  56. package/build/cjs/process/gremlin-lang.cjs +196 -0
  57. package/build/cjs/process/gremlin-lang.d.cts +15 -0
  58. package/build/cjs/process/transaction.cjs +69 -0
  59. package/build/cjs/process/transaction.d.cts +34 -0
  60. package/build/cjs/process/traversal-strategy.cjs +360 -0
  61. package/build/cjs/process/traversal-strategy.d.cts +211 -0
  62. package/build/cjs/process/traversal.cjs +482 -0
  63. package/build/cjs/process/traversal.d.cts +186 -0
  64. package/build/cjs/structure/graph.cjs +157 -0
  65. package/build/cjs/structure/graph.d.cts +57 -0
  66. package/build/cjs/structure/io/binary/GraphBinary.cjs +148 -0
  67. package/build/cjs/structure/io/binary/GraphBinary.d.cts +91 -0
  68. package/build/cjs/structure/io/binary/internals/AnySerializer.cjs +80 -0
  69. package/build/cjs/structure/io/binary/internals/AnySerializer.d.cts +8 -0
  70. package/build/cjs/structure/io/binary/internals/ArraySerializer.cjs +139 -0
  71. package/build/cjs/structure/io/binary/internals/ArraySerializer.d.cts +15 -0
  72. package/build/cjs/structure/io/binary/internals/BigIntegerSerializer.cjs +136 -0
  73. package/build/cjs/structure/io/binary/internals/BigIntegerSerializer.d.cts +14 -0
  74. package/build/cjs/structure/io/binary/internals/BinarySerializer.cjs +112 -0
  75. package/build/cjs/structure/io/binary/internals/BinarySerializer.d.cts +11 -0
  76. package/build/cjs/structure/io/binary/internals/BooleanSerializer.cjs +93 -0
  77. package/build/cjs/structure/io/binary/internals/BooleanSerializer.d.cts +11 -0
  78. package/build/cjs/structure/io/binary/internals/ByteSerializer.cjs +88 -0
  79. package/build/cjs/structure/io/binary/internals/ByteSerializer.d.cts +10 -0
  80. package/build/cjs/structure/io/binary/internals/DataType.cjs +63 -0
  81. package/build/cjs/structure/io/binary/internals/DataType.d.cts +35 -0
  82. package/build/cjs/structure/io/binary/internals/DateTimeSerializer.cjs +139 -0
  83. package/build/cjs/structure/io/binary/internals/DateTimeSerializer.d.cts +15 -0
  84. package/build/cjs/structure/io/binary/internals/DoubleSerializer.cjs +91 -0
  85. package/build/cjs/structure/io/binary/internals/DoubleSerializer.d.cts +11 -0
  86. package/build/cjs/structure/io/binary/internals/EdgeSerializer.cjs +201 -0
  87. package/build/cjs/structure/io/binary/internals/EdgeSerializer.d.cts +20 -0
  88. package/build/cjs/structure/io/binary/internals/EnumSerializer.cjs +127 -0
  89. package/build/cjs/structure/io/binary/internals/EnumSerializer.d.cts +24 -0
  90. package/build/cjs/structure/io/binary/internals/FloatSerializer.cjs +91 -0
  91. package/build/cjs/structure/io/binary/internals/FloatSerializer.d.cts +11 -0
  92. package/build/cjs/structure/io/binary/internals/GraphBinaryReader.cjs +97 -0
  93. package/build/cjs/structure/io/binary/internals/GraphBinaryReader.d.cts +19 -0
  94. package/build/cjs/structure/io/binary/internals/GraphBinaryWriter.cjs +85 -0
  95. package/build/cjs/structure/io/binary/internals/GraphBinaryWriter.d.cts +9 -0
  96. package/build/cjs/structure/io/binary/internals/IntSerializer.cjs +103 -0
  97. package/build/cjs/structure/io/binary/internals/IntSerializer.d.cts +13 -0
  98. package/build/cjs/structure/io/binary/internals/LongSerializer.cjs +95 -0
  99. package/build/cjs/structure/io/binary/internals/LongSerializer.d.cts +11 -0
  100. package/build/cjs/structure/io/binary/internals/MapSerializer.cjs +144 -0
  101. package/build/cjs/structure/io/binary/internals/MapSerializer.d.cts +13 -0
  102. package/build/cjs/structure/io/binary/internals/MarkerSerializer.cjs +63 -0
  103. package/build/cjs/structure/io/binary/internals/MarkerSerializer.d.cts +8 -0
  104. package/build/cjs/structure/io/binary/internals/NumberSerializationStrategy.cjs +66 -0
  105. package/build/cjs/structure/io/binary/internals/NumberSerializationStrategy.d.cts +9 -0
  106. package/build/cjs/structure/io/binary/internals/PathSerializer.cjs +113 -0
  107. package/build/cjs/structure/io/binary/internals/PathSerializer.d.cts +15 -0
  108. package/build/cjs/structure/io/binary/internals/PropertySerializer.cjs +130 -0
  109. package/build/cjs/structure/io/binary/internals/PropertySerializer.d.cts +15 -0
  110. package/build/cjs/structure/io/binary/internals/SetSerializer.cjs +138 -0
  111. package/build/cjs/structure/io/binary/internals/SetSerializer.d.cts +15 -0
  112. package/build/cjs/structure/io/binary/internals/ShortSerializer.cjs +91 -0
  113. package/build/cjs/structure/io/binary/internals/ShortSerializer.d.cts +11 -0
  114. package/build/cjs/structure/io/binary/internals/StringSerializer.cjs +107 -0
  115. package/build/cjs/structure/io/binary/internals/StringSerializer.d.cts +11 -0
  116. package/{lib/driver/auth/authenticator.js → build/cjs/structure/io/binary/internals/StubSerializer.cjs} +14 -20
  117. package/build/cjs/structure/io/binary/internals/StubSerializer.d.cts +7 -0
  118. package/build/cjs/structure/io/binary/internals/UnspecifiedNullSerializer.cjs +70 -0
  119. package/build/cjs/structure/io/binary/internals/UnspecifiedNullSerializer.d.cts +11 -0
  120. package/build/cjs/structure/io/binary/internals/UuidSerializer.cjs +109 -0
  121. package/build/cjs/structure/io/binary/internals/UuidSerializer.d.cts +14 -0
  122. package/build/cjs/structure/io/binary/internals/VertexPropertySerializer.cjs +163 -0
  123. package/build/cjs/structure/io/binary/internals/VertexPropertySerializer.d.cts +15 -0
  124. package/build/cjs/structure/io/binary/internals/VertexSerializer.cjs +128 -0
  125. package/build/cjs/structure/io/binary/internals/VertexSerializer.d.cts +17 -0
  126. package/build/cjs/structure/io/binary/internals/utils.cjs +53 -0
  127. package/build/cjs/structure/io/binary/internals/utils.d.cts +6 -0
  128. package/build/cjs/utils.cjs +142 -0
  129. package/build/cjs/utils.d.cts +20 -0
  130. package/build/esm/driver/auth.d.ts +9 -0
  131. package/build/esm/driver/auth.js +65 -0
  132. package/build/esm/driver/client.d.ts +85 -0
  133. package/build/esm/driver/client.js +128 -0
  134. package/build/esm/driver/connection.d.ts +63 -0
  135. package/build/esm/driver/connection.js +211 -0
  136. package/build/esm/driver/driver-remote-connection.d.ts +33 -0
  137. package/build/esm/driver/driver-remote-connection.js +102 -0
  138. package/build/esm/driver/remote-connection.d.ts +72 -0
  139. package/build/esm/driver/remote-connection.js +69 -0
  140. package/build/esm/driver/request-message.d.ts +49 -0
  141. package/build/esm/driver/request-message.js +152 -0
  142. package/build/esm/driver/response-error.d.ts +13 -0
  143. package/{lib → build/esm}/driver/response-error.js +21 -26
  144. package/build/esm/driver/result-set.d.ts +29 -0
  145. package/build/esm/driver/result-set.js +75 -0
  146. package/build/esm/index.d.ts +393 -0
  147. package/{index.js → build/esm/index.js} +22 -32
  148. package/build/esm/language/grammar/GremlinLexer.d.ts +340 -0
  149. package/build/esm/language/grammar/GremlinLexer.js +1814 -0
  150. package/build/esm/language/grammar/GremlinListener.d.ts +4898 -0
  151. package/build/esm/language/grammar/GremlinListener.js +4486 -0
  152. package/build/esm/language/grammar/GremlinParser.d.ts +5881 -0
  153. package/build/esm/language/grammar/GremlinParser.js +34711 -0
  154. package/build/esm/language/index.d.ts +12 -0
  155. package/build/esm/language/index.js +30 -0
  156. package/build/esm/language/translator/AnonymizedTranslateVisitor.d.ts +36 -0
  157. package/build/esm/language/translator/AnonymizedTranslateVisitor.js +151 -0
  158. package/build/esm/language/translator/DotNetTranslateVisitor.d.ts +155 -0
  159. package/build/esm/language/translator/DotNetTranslateVisitor.js +820 -0
  160. package/build/esm/language/translator/GoTranslateVisitor.d.ts +31 -0
  161. package/build/esm/language/translator/GoTranslateVisitor.js +333 -0
  162. package/build/esm/language/translator/GremlinTranslator.d.ts +18 -0
  163. package/build/esm/language/translator/GremlinTranslator.js +89 -0
  164. package/build/esm/language/translator/GroovyTranslateVisitor.d.ts +34 -0
  165. package/build/esm/language/translator/GroovyTranslateVisitor.js +281 -0
  166. package/build/esm/language/translator/JavaTranslateVisitor.d.ts +23 -0
  167. package/build/esm/language/translator/JavaTranslateVisitor.js +241 -0
  168. package/build/esm/language/translator/JavascriptTranslateVisitor.d.ts +25 -0
  169. package/build/esm/language/translator/JavascriptTranslateVisitor.js +214 -0
  170. package/build/esm/language/translator/PythonTranslateVisitor.d.ts +28 -0
  171. package/build/esm/language/translator/PythonTranslateVisitor.js +298 -0
  172. package/build/esm/language/translator/TranslateVisitor.d.ts +91 -0
  173. package/build/esm/language/translator/TranslateVisitor.js +386 -0
  174. package/build/esm/language/translator/Translation.d.ts +13 -0
  175. package/build/esm/language/translator/Translation.js +43 -0
  176. package/build/esm/language/translator/Translator.d.ts +24 -0
  177. package/build/esm/language/translator/Translator.js +40 -0
  178. package/build/esm/language/translator/TranslatorException.d.ts +6 -0
  179. package/build/esm/language/translator/TranslatorException.js +27 -0
  180. package/build/esm/process/anonymous-traversal.d.ts +40 -0
  181. package/build/esm/process/anonymous-traversal.js +72 -0
  182. package/build/esm/process/graph-traversal.d.ts +1134 -0
  183. package/build/esm/process/graph-traversal.js +1693 -0
  184. package/build/esm/process/gremlin-lang.d.ts +15 -0
  185. package/build/esm/process/gremlin-lang.js +193 -0
  186. package/build/esm/process/transaction.d.ts +34 -0
  187. package/build/esm/process/transaction.js +65 -0
  188. package/build/esm/process/traversal-strategy.d.ts +211 -0
  189. package/build/esm/process/traversal-strategy.js +319 -0
  190. package/build/esm/process/traversal.d.ts +186 -0
  191. package/build/esm/process/traversal.js +469 -0
  192. package/build/esm/structure/graph.d.ts +57 -0
  193. package/build/esm/structure/graph.js +148 -0
  194. package/build/esm/structure/io/binary/GraphBinary.d.ts +91 -0
  195. package/build/esm/structure/io/binary/GraphBinary.js +108 -0
  196. package/build/esm/structure/io/binary/internals/AnySerializer.d.ts +8 -0
  197. package/build/esm/structure/io/binary/internals/AnySerializer.js +77 -0
  198. package/build/esm/structure/io/binary/internals/ArraySerializer.d.ts +15 -0
  199. package/build/esm/structure/io/binary/internals/ArraySerializer.js +136 -0
  200. package/build/esm/structure/io/binary/internals/BigIntegerSerializer.d.ts +14 -0
  201. package/build/esm/structure/io/binary/internals/BigIntegerSerializer.js +133 -0
  202. package/build/esm/structure/io/binary/internals/BinarySerializer.d.ts +11 -0
  203. package/build/esm/structure/io/binary/internals/BinarySerializer.js +109 -0
  204. package/build/esm/structure/io/binary/internals/BooleanSerializer.d.ts +11 -0
  205. package/build/esm/structure/io/binary/internals/BooleanSerializer.js +90 -0
  206. package/build/esm/structure/io/binary/internals/ByteSerializer.d.ts +10 -0
  207. package/build/esm/structure/io/binary/internals/ByteSerializer.js +85 -0
  208. package/build/esm/structure/io/binary/internals/DataType.d.ts +35 -0
  209. package/{lib/driver/auth/mechanisms/sasl-mechanism-base.js → build/esm/structure/io/binary/internals/DataType.js} +43 -34
  210. package/build/esm/structure/io/binary/internals/DateTimeSerializer.d.ts +15 -0
  211. package/build/esm/structure/io/binary/internals/DateTimeSerializer.js +136 -0
  212. package/build/esm/structure/io/binary/internals/DoubleSerializer.d.ts +11 -0
  213. package/build/esm/structure/io/binary/internals/DoubleSerializer.js +88 -0
  214. package/build/esm/structure/io/binary/internals/EdgeSerializer.d.ts +20 -0
  215. package/build/esm/structure/io/binary/internals/EdgeSerializer.js +198 -0
  216. package/build/esm/structure/io/binary/internals/EnumSerializer.d.ts +24 -0
  217. package/build/esm/structure/io/binary/internals/EnumSerializer.js +124 -0
  218. package/build/esm/structure/io/binary/internals/FloatSerializer.d.ts +11 -0
  219. package/build/esm/structure/io/binary/internals/FloatSerializer.js +88 -0
  220. package/build/esm/structure/io/binary/internals/GraphBinaryReader.d.ts +19 -0
  221. package/build/esm/structure/io/binary/internals/GraphBinaryReader.js +94 -0
  222. package/build/esm/structure/io/binary/internals/GraphBinaryWriter.d.ts +9 -0
  223. package/build/esm/structure/io/binary/internals/GraphBinaryWriter.js +82 -0
  224. package/build/esm/structure/io/binary/internals/IntSerializer.d.ts +13 -0
  225. package/build/esm/structure/io/binary/internals/IntSerializer.js +100 -0
  226. package/build/esm/structure/io/binary/internals/LongSerializer.d.ts +11 -0
  227. package/build/esm/structure/io/binary/internals/LongSerializer.js +92 -0
  228. package/build/esm/structure/io/binary/internals/MapSerializer.d.ts +13 -0
  229. package/build/esm/structure/io/binary/internals/MapSerializer.js +141 -0
  230. package/build/esm/structure/io/binary/internals/MarkerSerializer.d.ts +8 -0
  231. package/build/esm/structure/io/binary/internals/MarkerSerializer.js +60 -0
  232. package/build/esm/structure/io/binary/internals/NumberSerializationStrategy.d.ts +9 -0
  233. package/build/esm/structure/io/binary/internals/NumberSerializationStrategy.js +63 -0
  234. package/build/esm/structure/io/binary/internals/PathSerializer.d.ts +15 -0
  235. package/build/esm/structure/io/binary/internals/PathSerializer.js +110 -0
  236. package/build/esm/structure/io/binary/internals/PropertySerializer.d.ts +15 -0
  237. package/build/esm/structure/io/binary/internals/PropertySerializer.js +127 -0
  238. package/build/esm/structure/io/binary/internals/SetSerializer.d.ts +15 -0
  239. package/build/esm/structure/io/binary/internals/SetSerializer.js +135 -0
  240. package/build/esm/structure/io/binary/internals/ShortSerializer.d.ts +11 -0
  241. package/build/esm/structure/io/binary/internals/ShortSerializer.js +88 -0
  242. package/build/esm/structure/io/binary/internals/StringSerializer.d.ts +11 -0
  243. package/build/esm/structure/io/binary/internals/StringSerializer.js +104 -0
  244. package/build/esm/structure/io/binary/internals/StubSerializer.d.ts +7 -0
  245. package/{.prettierrc.js → build/esm/structure/io/binary/internals/StubSerializer.js} +12 -12
  246. package/build/esm/structure/io/binary/internals/UnspecifiedNullSerializer.d.ts +11 -0
  247. package/build/esm/structure/io/binary/internals/UnspecifiedNullSerializer.js +67 -0
  248. package/build/esm/structure/io/binary/internals/UuidSerializer.d.ts +14 -0
  249. package/build/esm/structure/io/binary/internals/UuidSerializer.js +106 -0
  250. package/build/esm/structure/io/binary/internals/VertexPropertySerializer.d.ts +15 -0
  251. package/build/esm/structure/io/binary/internals/VertexPropertySerializer.js +160 -0
  252. package/build/esm/structure/io/binary/internals/VertexSerializer.d.ts +17 -0
  253. package/build/esm/structure/io/binary/internals/VertexSerializer.js +125 -0
  254. package/build/esm/structure/io/binary/internals/utils.d.ts +6 -0
  255. package/{lib → build/esm}/structure/io/binary/internals/utils.js +23 -35
  256. package/build/esm/utils.d.ts +20 -0
  257. package/build/esm/utils.js +98 -0
  258. package/package.json +61 -23
  259. package/.eslintrc.js +0 -154
  260. package/.nvmrc +0 -1
  261. package/Gruntfile.js +0 -35
  262. package/NOTICE +0 -5
  263. package/doc/AnonymousTraversalSource.html +0 -793
  264. package/doc/Authenticator.html +0 -303
  265. package/doc/Bytecode.html +0 -941
  266. package/doc/CardinalityValue.html +0 -711
  267. package/doc/Client.html +0 -1869
  268. package/doc/Connection.html +0 -1192
  269. package/doc/DataType.js.html +0 -150
  270. package/doc/DriverRemoteConnection.html +0 -1528
  271. package/doc/EdgeLabelVerificationStrategy.html +0 -238
  272. package/doc/Graph.html +0 -343
  273. package/doc/GraphBinaryReader.js.html +0 -132
  274. package/doc/GraphBinaryWriter.js.html +0 -135
  275. package/doc/GraphSON2Reader.html +0 -407
  276. package/doc/GraphSON2Writer.html +0 -558
  277. package/doc/GraphSON3Reader.html +0 -170
  278. package/doc/GraphSON3Writer.html +0 -170
  279. package/doc/GraphTraversal.html +0 -22974
  280. package/doc/GraphTraversalSource.html +0 -3683
  281. package/doc/HaltedTraverserStrategy.html +0 -215
  282. package/doc/MatchAlgorithmStrategy.html +0 -210
  283. package/doc/P.html +0 -2020
  284. package/doc/PartitionStrategy.html +0 -387
  285. package/doc/Path.html +0 -242
  286. package/doc/PlainTextSaslAuthenticator.html +0 -456
  287. package/doc/ProductiveByStrategy.html +0 -258
  288. package/doc/RemoteConnection.html +0 -1086
  289. package/doc/RemoteStrategy.html +0 -307
  290. package/doc/RemoteTraversal.html +0 -170
  291. package/doc/ReservedKeysVerificationStrategy.html +0 -261
  292. package/doc/ResponseError.html +0 -360
  293. package/doc/ResultSet.html +0 -633
  294. package/doc/SaslAuthenticator.html +0 -455
  295. package/doc/SaslMechanismBase.html +0 -506
  296. package/doc/SaslMechanismPlain.html +0 -925
  297. package/doc/SeedStrategy.html +0 -288
  298. package/doc/SubgraphStrategy.html +0 -387
  299. package/doc/TextP.html +0 -1440
  300. package/doc/Transaction.html +0 -655
  301. package/doc/Translator.html +0 -527
  302. package/doc/TraversalStrategies.html +0 -652
  303. package/doc/TraversalStrategy.html +0 -393
  304. package/doc/TypeSerializer.html +0 -166
  305. package/doc/driver_auth_authenticator.js.html +0 -89
  306. package/doc/driver_auth_mechanisms_sasl-mechanism-base.js.html +0 -103
  307. package/doc/driver_auth_mechanisms_sasl-mechanism-plain.js.html +0 -157
  308. package/doc/driver_auth_plain-text-sasl-authenticator.js.html +0 -106
  309. package/doc/driver_auth_sasl-authenticator.js.html +0 -100
  310. package/doc/driver_client.js.html +0 -250
  311. package/doc/driver_connection.js.html +0 -518
  312. package/doc/driver_driver-remote-connection.js.html +0 -193
  313. package/doc/driver_remote-connection.js.html +0 -198
  314. package/doc/driver_response-error.js.html +0 -98
  315. package/doc/driver_result-set.js.html +0 -134
  316. package/doc/fonts/OpenSans-Bold-webfont.eot +0 -0
  317. package/doc/fonts/OpenSans-Bold-webfont.svg +0 -1830
  318. package/doc/fonts/OpenSans-Bold-webfont.woff +0 -0
  319. package/doc/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  320. package/doc/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  321. package/doc/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  322. package/doc/fonts/OpenSans-Italic-webfont.eot +0 -0
  323. package/doc/fonts/OpenSans-Italic-webfont.svg +0 -1830
  324. package/doc/fonts/OpenSans-Italic-webfont.woff +0 -0
  325. package/doc/fonts/OpenSans-Light-webfont.eot +0 -0
  326. package/doc/fonts/OpenSans-Light-webfont.svg +0 -1831
  327. package/doc/fonts/OpenSans-Light-webfont.woff +0 -0
  328. package/doc/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  329. package/doc/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  330. package/doc/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  331. package/doc/fonts/OpenSans-Regular-webfont.eot +0 -0
  332. package/doc/fonts/OpenSans-Regular-webfont.svg +0 -1831
  333. package/doc/fonts/OpenSans-Regular-webfont.woff +0 -0
  334. package/doc/global.html +0 -728
  335. package/doc/index.html +0 -185
  336. package/doc/module.exports.html +0 -301
  337. package/doc/process_anonymous-traversal.js.html +0 -138
  338. package/doc/process_bytecode.js.html +0 -175
  339. package/doc/process_graph-traversal.js.html +0 -1936
  340. package/doc/process_transaction.js.html +0 -151
  341. package/doc/process_translator.js.html +0 -172
  342. package/doc/process_traversal-strategy.js.html +0 -466
  343. package/doc/process_traversal.js.html +0 -592
  344. package/doc/scripts/linenumber.js +0 -25
  345. package/doc/scripts/prettify/Apache-License-2.0.txt +0 -202
  346. package/doc/scripts/prettify/lang-css.js +0 -2
  347. package/doc/scripts/prettify/prettify.js +0 -28
  348. package/doc/structure_graph.js.html +0 -233
  349. package/doc/structure_io_binary_internals_DataType.js.html +0 -151
  350. package/doc/structure_io_binary_internals_GraphBinaryReader.js.html +0 -133
  351. package/doc/structure_io_binary_internals_GraphBinaryWriter.js.html +0 -136
  352. package/doc/structure_io_graph-serializer.js.html +0 -354
  353. package/doc/structure_io_type-serializers.js.html +0 -617
  354. package/doc/styles/jsdoc-default.css +0 -358
  355. package/doc/styles/prettify-jsdoc.css +0 -111
  356. package/doc/styles/prettify-tomorrow.css +0 -132
  357. package/doc/utils.js.html +0 -181
  358. package/docker-compose.yml +0 -66
  359. package/lib/driver/auth/mechanisms/sasl-mechanism-plain.js +0 -106
  360. package/lib/driver/auth/plain-text-sasl-authenticator.js +0 -55
  361. package/lib/driver/auth/sasl-authenticator.js +0 -49
  362. package/lib/driver/client.js +0 -199
  363. package/lib/driver/connection.js +0 -467
  364. package/lib/driver/driver-remote-connection.js +0 -142
  365. package/lib/driver/remote-connection.js +0 -147
  366. package/lib/driver/result-set.js +0 -83
  367. package/lib/process/anonymous-traversal.js +0 -87
  368. package/lib/process/bytecode.js +0 -124
  369. package/lib/process/graph-traversal.js +0 -1885
  370. package/lib/process/transaction.js +0 -100
  371. package/lib/process/translator.js +0 -121
  372. package/lib/process/traversal-strategy.js +0 -415
  373. package/lib/process/traversal.js +0 -541
  374. package/lib/structure/graph.js +0 -182
  375. package/lib/structure/io/binary/GraphBinary.js +0 -110
  376. package/lib/structure/io/binary/internals/AnySerializer.js +0 -100
  377. package/lib/structure/io/binary/internals/ArraySerializer.js +0 -137
  378. package/lib/structure/io/binary/internals/BigIntegerSerializer.js +0 -153
  379. package/lib/structure/io/binary/internals/BooleanSerializer.js +0 -105
  380. package/lib/structure/io/binary/internals/BulkSetSerializer.js +0 -126
  381. package/lib/structure/io/binary/internals/ByteBufferSerializer.js +0 -126
  382. package/lib/structure/io/binary/internals/ByteSerializer.js +0 -97
  383. package/lib/structure/io/binary/internals/BytecodeSerializer.js +0 -250
  384. package/lib/structure/io/binary/internals/ClassSerializer.js +0 -60
  385. package/lib/structure/io/binary/internals/DataType.js +0 -100
  386. package/lib/structure/io/binary/internals/DateSerializer.js +0 -105
  387. package/lib/structure/io/binary/internals/DoubleSerializer.js +0 -101
  388. package/lib/structure/io/binary/internals/EdgeSerializer.js +0 -216
  389. package/lib/structure/io/binary/internals/EnumSerializer.js +0 -152
  390. package/lib/structure/io/binary/internals/FloatSerializer.js +0 -101
  391. package/lib/structure/io/binary/internals/GraphBinaryReader.js +0 -82
  392. package/lib/structure/io/binary/internals/GraphBinaryWriter.js +0 -85
  393. package/lib/structure/io/binary/internals/IntSerializer.js +0 -114
  394. package/lib/structure/io/binary/internals/LambdaSerializer.js +0 -71
  395. package/lib/structure/io/binary/internals/LongSerializer.js +0 -109
  396. package/lib/structure/io/binary/internals/LongSerializerNg.js +0 -104
  397. package/lib/structure/io/binary/internals/MapSerializer.js +0 -155
  398. package/lib/structure/io/binary/internals/NumberSerializationStrategy.js +0 -73
  399. package/lib/structure/io/binary/internals/OffsetDateTimeSerializer.js +0 -151
  400. package/lib/structure/io/binary/internals/PSerializer.js +0 -152
  401. package/lib/structure/io/binary/internals/PathSerializer.js +0 -124
  402. package/lib/structure/io/binary/internals/PropertySerializer.js +0 -142
  403. package/lib/structure/io/binary/internals/SetSerializer.js +0 -134
  404. package/lib/structure/io/binary/internals/ShortSerializer.js +0 -101
  405. package/lib/structure/io/binary/internals/StringSerializer.js +0 -116
  406. package/lib/structure/io/binary/internals/TextPSerializer.js +0 -146
  407. package/lib/structure/io/binary/internals/TraversalStrategySerializer.js +0 -69
  408. package/lib/structure/io/binary/internals/TraverserSerializer.js +0 -124
  409. package/lib/structure/io/binary/internals/UnspecifiedNullSerializer.js +0 -77
  410. package/lib/structure/io/binary/internals/UuidSerializer.js +0 -121
  411. package/lib/structure/io/binary/internals/VertexPropertySerializer.js +0 -176
  412. package/lib/structure/io/binary/internals/VertexSerializer.js +0 -139
  413. package/lib/structure/io/graph-serializer.js +0 -303
  414. package/lib/structure/io/type-serializers.js +0 -566
  415. package/lib/utils.js +0 -130
  416. package/licenses/chai +0 -21
package/doc/index.html DELETED
@@ -1,185 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>JSDoc: Home</title>
6
-
7
- <script src="scripts/prettify/prettify.js"> </script>
8
- <script src="scripts/prettify/lang-css.js"> </script>
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
- </head>
15
-
16
- <body>
17
-
18
- <div id="main">
19
-
20
- <h1 class="page-title">Home</h1>
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
- <h3> </h3>
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
- <section>
46
- <article><!--
47
-
48
- Licensed to the Apache Software Foundation (ASF) under one
49
- or more contributor license agreements. See the NOTICE file
50
- distributed with this work for additional information
51
- regarding copyright ownership. The ASF licenses this file
52
- to you under the Apache License, Version 2.0 (the
53
- "License"); you may not use this file except in compliance
54
- with the License. You may obtain a copy of the License at
55
-
56
- http://www.apache.org/licenses/LICENSE-2.0
57
-
58
- Unless required by applicable law or agreed to in writing,
59
- software distributed under the License is distributed on an
60
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
61
- KIND, either express or implied. See the License for the
62
- specific language governing permissions and limitations
63
- under the License.
64
-
65
- -->
66
- <h1>JavaScript Gremlin Language Variant</h1>
67
- <p><a href="https://tinkerpop.apache.org">Apache TinkerPop™</a> is a graph computing framework for both graph databases (OLTP) and graph analytic systems
68
- (OLAP). <a href="https://tinkerpop.apache.org/gremlin.html">Gremlin</a> is the graph traversal language of TinkerPop. It can be described as a functional,
69
- data-flow language that enables users to succinctly express complex traversals on (or queries of) their application's
70
- property graph.</p>
71
- <p>Gremlin-Javascript implements Gremlin within the JavaScript language and can be used on Node.js and has experimental support for Web APIs compatible runtimes.</p>
72
- <pre class="prettyprint source lang-bash"><code>npm install gremlin
73
- </code></pre>
74
- <p>Gremlin-Javascript is designed to connect to a &quot;server&quot; that is hosting a TinkerPop-enabled graph system. That &quot;server&quot;
75
- could be <a href="https://tinkerpop.apache.org/docs/current/reference/#gremlin-server">Gremlin Server</a> or a <a href="https://tinkerpop.apache.org/docs/current/reference/#connecting-rgp">remote Gremlin provider</a> that exposes protocols by which Gremlin-Javascript
76
- can connect.</p>
77
- <p>A typical connection to a server running on &quot;localhost&quot; that supports the Gremlin Server protocol using websockets
78
- looks like this:</p>
79
- <pre class="prettyprint source lang-javascript"><code>const gremlin = require('gremlin');
80
- const traversal = gremlin.process.AnonymousTraversalSource.traversal;
81
- const DriverRemoteConnection = gremlin.driver.DriverRemoteConnection;
82
-
83
- const g = traversal().with_(new DriverRemoteConnection('ws://localhost:8182/gremlin'));
84
- </code></pre>
85
- <p>Once &quot;g&quot; has been created using a connection, it is then possible to start writing Gremlin traversals to query the
86
- remote graph:</p>
87
- <pre class="prettyprint source lang-javascript"><code>g.V().hasLabel('person').values('name').toList()
88
- .then(names => console.log(names));
89
-
90
- const names = await g.V().hasLabel('person').values('name').toList();
91
- console.log(names);
92
- </code></pre>
93
- <h1>Sample Traversals</h1>
94
- <p>The Gremlin language allows users to write highly expressive graph traversals and has a broad list of functions that
95
- cover a wide body of features. The <a href="https://tinkerpop.apache.org/docs/current/reference/#graph-traversal-steps">Reference Documentation</a> describes these functions and other aspects of the
96
- TinkerPop ecosystem including some specifics on <a href="https://tinkerpop.apache.org/docs/current/reference/#gremlin-javascript">Gremlin in Javascript</a> itself. Most of the examples found in the
97
- documentation use Groovy language syntax in the <a href="https://tinkerpop.apache.org/docs/current/tutorials/the-gremlin-console/">Gremlin Console</a>. For the most part, these examples
98
- should generally translate to Javascript with <a href="https://tinkerpop.apache.org/docs/current/reference/#gremlin-javascript-differences">little modification</a>. Given the strong correspondence
99
- between canonical Gremlin in Java and its variants like Javascript, there is a limited amount of Javascript-specific
100
- documentation and examples. This strong correspondence among variants ensures that the general Gremlin reference
101
- documentation is applicable to all variants and that users moving between development languages can easily adopt the
102
- Gremlin variant for that language.</p>
103
- <h2>Create Vertex</h2>
104
- <pre class="prettyprint source lang-javascript"><code>/* if we want to assign our own ID and properties to this vertex */
105
- const { t: { id } } = gremlin.process;
106
- const { cardinality: { single } } = gremlin.process;
107
-
108
- /**
109
- * Create a new vertex with Id, Label and properties
110
- * @param {String,Number} vertexId Vertex Id (assuming the graph database allows id assignment)
111
- * @param {String} vlabel Vertex Label
112
- */
113
- const createVertex = async (vertexId, vlabel) => {
114
- const vertex = await g.addV(vlabel)
115
- .property(id, vertexId)
116
- .property(single, 'name', 'Apache')
117
- .property('lastname', 'Tinkerpop') // default database cardinality
118
- .next();
119
-
120
- return vertex.value;
121
- };
122
- </code></pre>
123
- <h2>Find Vertices</h2>
124
- <pre class="prettyprint source lang-javascript"><code>/**
125
- * List all vertexes in db
126
- * @param {Number} limit
127
- */
128
- const listAll = async (limit = 500) => {
129
- return g.V().limit(limit).elementMap().toList();
130
- };
131
- /**
132
- * Find unique vertex with id
133
- * @param {Object} vertexId Vertex Id
134
- */
135
- const findVertex = async (vertexId) => {
136
- const vertex = await g.V(vertexId).elementMap().next();
137
- return vertex.value;
138
- };
139
- /**
140
- * Find vertices by label and 'name' property
141
- * @param {String} vlabel Vertex label
142
- * @param {String} name value of 'name' property
143
- */
144
- const listByLabelAndName = async (vlabel, name) => {
145
- return g.V().has(vlabel, 'name', name).elementMap().toList();
146
- };
147
- </code></pre>
148
- <h2>Update Vertex</h2>
149
- <pre class="prettyprint source lang-javascript"><code>const { cardinality: { single } } = gremlin.process;
150
-
151
- /**
152
- * Update Vertex Properties
153
- * @param {String,Number} vertexId Vertex Id
154
- * @param {String} name Vertex Name Property
155
- */
156
- const updateVertex = async (vertexId, label, name) => {
157
- const vertex = await g.V(vertexId).property(single, 'name', name).next();
158
- return vertex.value;
159
- };
160
- </code></pre>
161
- <p><strong>NOTE</strong> that versions suffixed with &quot;-rc&quot; are considered release candidates (i.e. pre-alpha, alpha, beta, etc.) and thus
162
- for early testing purposes only. These releases are not suitable for production.</p></article>
163
- </section>
164
-
165
-
166
-
167
-
168
-
169
-
170
- </div>
171
-
172
- <nav>
173
- <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="CardinalityValue.html">CardinalityValue</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="EdgeLabelVerificationStrategy.html">EdgeLabelVerificationStrategy</a></li><li><a href="Graph.html">Graph</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="HaltedTraverserStrategy.html">HaltedTraverserStrategy</a></li><li><a href="MatchAlgorithmStrategy.html">MatchAlgorithmStrategy</a></li><li><a href="module.exports.html">exports</a></li><li><a href="P.html">P</a></li><li><a href="PartitionStrategy.html">PartitionStrategy</a></li><li><a href="Path.html">Path</a></li><li><a href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a href="ProductiveByStrategy.html">ProductiveByStrategy</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="ReservedKeysVerificationStrategy.html">ReservedKeysVerificationStrategy</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="SeedStrategy.html">SeedStrategy</a></li><li><a href="SubgraphStrategy.html">SubgraphStrategy</a></li><li><a href="TextP.html">TextP</a></li><li><a href="Transaction.html">Transaction</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#DataType">DataType</a></li><li><a href="global.html#deserializeProperties">deserializeProperties</a></li><li><a href="global.html#statics">statics</a></li><li><a href="global.html#toArrayBuffer">toArrayBuffer</a></li></ul>
174
- </nav>
175
-
176
- <br class="clear">
177
-
178
- <footer>
179
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Nov 17 2025 15:09:27 GMT-0800 (Pacific Standard Time)
180
- </footer>
181
-
182
- <script> prettyPrint(); </script>
183
- <script src="scripts/linenumber.js"> </script>
184
- </body>
185
- </html>
@@ -1,301 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>JSDoc: Class: exports</title>
6
-
7
- <script src="scripts/prettify/prettify.js"> </script>
8
- <script src="scripts/prettify/lang-css.js"> </script>
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
- </head>
15
-
16
- <body>
17
-
18
- <div id="main">
19
-
20
- <h1 class="page-title">Class: exports</h1>
21
-
22
-
23
-
24
-
25
-
26
-
27
- <section>
28
-
29
- <header>
30
-
31
- <h2><span class="attribs"><span class="type-signature"></span></span>exports<span class="signature">()</span><span class="type-signature"></span></h2>
32
-
33
- <div class="class-description">GraphBinary reader.</div>
34
-
35
-
36
- </header>
37
-
38
- <article>
39
- <div class="container-overview">
40
-
41
-
42
-
43
-
44
- <h2>Constructor</h2>
45
-
46
-
47
-
48
- <h4 class="name" id="exports"><span class="type-signature"></span>new exports<span class="signature">()</span><span class="type-signature"></span></h4>
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
- <dl class="details">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
- <dt class="tag-source">Source:</dt>
95
- <dd class="tag-source"><ul class="dummy"><li>
96
- <a href="structure_io_binary_internals_GraphBinaryReader.js.html">structure/io/binary/internals/GraphBinaryReader.js</a>, <a href="structure_io_binary_internals_GraphBinaryReader.js.html#line30">line 30</a>
97
- </li></ul></dd>
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
- </dl>
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
- </div>
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
- </article>
149
-
150
- </section>
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
- <section>
159
-
160
- <header>
161
-
162
- <h2><span class="attribs"><span class="type-signature"></span></span>exports<span class="signature">()</span><span class="type-signature"></span></h2>
163
-
164
- <div class="class-description">GraphBinary writer.</div>
165
-
166
-
167
- </header>
168
-
169
- <article>
170
- <div class="container-overview">
171
-
172
-
173
-
174
-
175
- <h2>Constructor</h2>
176
-
177
-
178
-
179
- <h4 class="name" id="exports"><span class="type-signature"></span>new exports<span class="signature">()</span><span class="type-signature"></span></h4>
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
- <dl class="details">
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
- <dt class="tag-source">Source:</dt>
226
- <dd class="tag-source"><ul class="dummy"><li>
227
- <a href="structure_io_binary_internals_GraphBinaryWriter.js.html">structure/io/binary/internals/GraphBinaryWriter.js</a>, <a href="structure_io_binary_internals_GraphBinaryWriter.js.html#line30">line 30</a>
228
- </li></ul></dd>
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
- </dl>
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
- </div>
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
- </article>
280
-
281
- </section>
282
-
283
-
284
-
285
-
286
- </div>
287
-
288
- <nav>
289
- <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="CardinalityValue.html">CardinalityValue</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="EdgeLabelVerificationStrategy.html">EdgeLabelVerificationStrategy</a></li><li><a href="Graph.html">Graph</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="HaltedTraverserStrategy.html">HaltedTraverserStrategy</a></li><li><a href="MatchAlgorithmStrategy.html">MatchAlgorithmStrategy</a></li><li><a href="module.exports.html">exports</a></li><li><a href="P.html">P</a></li><li><a href="PartitionStrategy.html">PartitionStrategy</a></li><li><a href="Path.html">Path</a></li><li><a href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a href="ProductiveByStrategy.html">ProductiveByStrategy</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="ReservedKeysVerificationStrategy.html">ReservedKeysVerificationStrategy</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="SeedStrategy.html">SeedStrategy</a></li><li><a href="SubgraphStrategy.html">SubgraphStrategy</a></li><li><a href="TextP.html">TextP</a></li><li><a href="Transaction.html">Transaction</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#DataType">DataType</a></li><li><a href="global.html#deserializeProperties">deserializeProperties</a></li><li><a href="global.html#statics">statics</a></li><li><a href="global.html#toArrayBuffer">toArrayBuffer</a></li></ul>
290
- </nav>
291
-
292
- <br class="clear">
293
-
294
- <footer>
295
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Nov 17 2025 15:09:27 GMT-0800 (Pacific Standard Time)
296
- </footer>
297
-
298
- <script> prettyPrint(); </script>
299
- <script src="scripts/linenumber.js"> </script>
300
- </body>
301
- </html>
@@ -1,138 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>JSDoc: Source: process/anonymous-traversal.js</title>
6
-
7
- <script src="scripts/prettify/prettify.js"> </script>
8
- <script src="scripts/prettify/lang-css.js"> </script>
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
- </head>
15
-
16
- <body>
17
-
18
- <div id="main">
19
-
20
- <h1 class="page-title">Source: process/anonymous-traversal.js</h1>
21
-
22
-
23
-
24
-
25
-
26
-
27
- <section>
28
- <article>
29
- <pre class="prettyprint source linenums"><code>/*
30
- * Licensed to the Apache Software Foundation (ASF) under one
31
- * or more contributor license agreements. See the NOTICE file
32
- * distributed with this work for additional information
33
- * regarding copyright ownership. The ASF licenses this file
34
- * to you under the Apache License, Version 2.0 (the
35
- * "License"); you may not use this file except in compliance
36
- * with the License. You may obtain a copy of the License at
37
- *
38
- * http://www.apache.org/licenses/LICENSE-2.0
39
- *
40
- * Unless required by applicable law or agreed to in writing,
41
- * software distributed under the License is distributed on an
42
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
43
- * KIND, either express or implied. See the License for the
44
- * specific language governing permissions and limitations
45
- * under the License.
46
- */
47
-
48
- 'use strict';
49
-
50
- const graphTraversalModule = require('./graph-traversal');
51
- const remote = require('../driver/remote-connection');
52
- const TraversalStrategies = require('./traversal-strategy').TraversalStrategies;
53
- const GraphTraversalSource = graphTraversalModule.GraphTraversalSource;
54
- const GraphTraversal = graphTraversalModule.GraphTraversal;
55
- const Bytecode = require('./bytecode');
56
- const Graph = require('../structure/graph').Graph;
57
-
58
- /**
59
- * Provides a unified way to construct a &lt;code>TraversalSource&lt;/code> from the perspective of the traversal. In this
60
- * syntax the user is creating the source and binding it to a reference which is either an existing &lt;code>Graph&lt;/code>
61
- * instance or a &lt;code>RemoteConnection&lt;/code>.
62
- */
63
- class AnonymousTraversalSource {
64
- /**
65
- * Creates a new instance of {@code AnonymousTraversalSource}.
66
- * @param {Function} [traversalSourceClass] Optional {@code GraphTraversalSource} constructor.
67
- * @param {Function} [traversalClass] Optional {@code GraphTraversal} constructor.
68
- */
69
- constructor(traversalSourceClass, traversalClass) {
70
- this.traversalSourceClass = traversalSourceClass;
71
- this.traversalClass = traversalClass;
72
- }
73
-
74
- /**
75
- * Constructs an {@code AnonymousTraversalSource} which will then be configured to spawn a
76
- * {@link GraphTraversalSource}.
77
- * @param {Function} [traversalSourceClass] Optional {@code GraphTraversalSource} constructor.
78
- * @param {Function} [traversalClass] Optional {@code GraphTraversalSource} constructor.
79
- * @returns {AnonymousTraversalSource}.
80
- */
81
- static traversal(traversalSourceClass, traversalClass) {
82
- return new AnonymousTraversalSource(traversalSourceClass || GraphTraversalSource, traversalClass || GraphTraversal);
83
- }
84
-
85
- /**
86
- * Creates a {@link GraphTraversalSource} binding a {@link RemoteConnection} to a remote {@link Graph} instances as its
87
- * reference so that traversals spawned from it will execute over that reference.
88
- * @param {RemoteConnection} connection
89
- * @return {GraphTraversalSource}
90
- */
91
- with_(connection) {
92
- const traversalStrategies = new TraversalStrategies();
93
- traversalStrategies.addStrategy(new remote.RemoteStrategy(connection));
94
- return new this.traversalSourceClass(
95
- new Graph(),
96
- traversalStrategies,
97
- new Bytecode(),
98
- this.traversalSourceClass,
99
- this.traversalClass,
100
- );
101
- }
102
-
103
- /**
104
- * Creates a {@link GraphTraversalSource} binding a {@link RemoteConnection} to a remote {@link Graph} instances as its
105
- * reference so that traversals spawned from it will execute over that reference.
106
- * @param {RemoteConnection} remoteConnection
107
- * @return {GraphTraversalSource}
108
- * @deprecated As of release 3.8.0, prefer {@link with_}.
109
- */
110
- withRemote(remoteConnection) {
111
- return this.with_(remoteConnection);
112
- }
113
- }
114
-
115
- module.exports = AnonymousTraversalSource;
116
- </code></pre>
117
- </article>
118
- </section>
119
-
120
-
121
-
122
-
123
- </div>
124
-
125
- <nav>
126
- <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="CardinalityValue.html">CardinalityValue</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="EdgeLabelVerificationStrategy.html">EdgeLabelVerificationStrategy</a></li><li><a href="Graph.html">Graph</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="HaltedTraverserStrategy.html">HaltedTraverserStrategy</a></li><li><a href="MatchAlgorithmStrategy.html">MatchAlgorithmStrategy</a></li><li><a href="module.exports.html">exports</a></li><li><a href="P.html">P</a></li><li><a href="PartitionStrategy.html">PartitionStrategy</a></li><li><a href="Path.html">Path</a></li><li><a href="PlainTextSaslAuthenticator.html">PlainTextSaslAuthenticator</a></li><li><a href="ProductiveByStrategy.html">ProductiveByStrategy</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="ReservedKeysVerificationStrategy.html">ReservedKeysVerificationStrategy</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="SeedStrategy.html">SeedStrategy</a></li><li><a href="SubgraphStrategy.html">SubgraphStrategy</a></li><li><a href="TextP.html">TextP</a></li><li><a href="Transaction.html">Transaction</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#DataType">DataType</a></li><li><a href="global.html#deserializeProperties">deserializeProperties</a></li><li><a href="global.html#statics">statics</a></li><li><a href="global.html#toArrayBuffer">toArrayBuffer</a></li></ul>
127
- </nav>
128
-
129
- <br class="clear">
130
-
131
- <footer>
132
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.10</a> on Mon Nov 17 2025 15:09:27 GMT-0800 (Pacific Standard Time)
133
- </footer>
134
-
135
- <script> prettyPrint(); </script>
136
- <script src="scripts/linenumber.js"> </script>
137
- </body>
138
- </html>