[09/35] tinkerpop git commit: TINKERPOP-2041 Added IO tests for TextP
TINKERPOP-2041 Added IO tests for TextP Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/8b69b34b Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/8b69b34b Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/8b69b34b Branch: refs/heads/TINKERPOP-2058 Commit: 8b69b34b6393a3071c0cd491ea9ec0ca09a1e5ae Parents: 9b96586 Author: Stephen Mallette Authored: Wed Oct 3 15:01:40 2018 -0400 Committer: Daniel Kuppitz Committed: Thu Oct 4 07:45:08 2018 -0700 -- docs/src/dev/io/graphson.asciidoc | 26 .../scripts/generate-graphson-resources.groovy | 12 - .../tinkerpop/gremlin/structure/io/Model.java | 9 +++ .../io/AbstractTypedCompatibilityTest.java | 14 +++ .../io/graphson/_3_4_0/textp-v2d0-partial.json | 7 ++ .../io/graphson/_3_4_0/textp-v3d0.json | 7 ++ .../structure/io/gryo/_3_4_0/textp-v1d0.kryo| 1 + .../structure/io/gryo/_3_4_0/textp-v3d0.kryo| 1 + 8 files changed, 71 insertions(+), 6 deletions(-) -- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8b69b34b/docs/src/dev/io/graphson.asciidoc -- diff --git a/docs/src/dev/io/graphson.asciidoc b/docs/src/dev/io/graphson.asciidoc index d140a2f..1c9081c 100644 --- a/docs/src/dev/io/graphson.asciidoc +++ b/docs/src/dev/io/graphson.asciidoc @@ -3014,6 +3014,19 @@ The following `Bytecode` example represents the traversal of `g.V().hasLabel('pe } + TextP + +[source,json] + +{ + "@type" : "g:TextP", + "@value" : { +"predicate" : "containing", +"value" : "ark" + } +} + + TraversalMetrics [source,json] @@ -5392,6 +5405,19 @@ Please see <<_p,P>> for additional information on `within`. } + TextP + +[source,json] + +{ + "@type" : "g:TextP", + "@value" : { +"predicate" : "containing", +"value" : "ark" + } +} + + TraversalMetrics [source,json] http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8b69b34b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy -- diff --git a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy index 55b4fa6..03112ed 100644 --- a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy +++ b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy @@ -59,19 +59,19 @@ toJson = { o, type, mapper, comment = "", suffix = "" -> writeSupportedV1Objects = { writer, mapper -> writer.write("=== Graph Structure\n\n") -model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { +model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } writer.write("\n") writer.write("=== RequestMessage\n\n") - model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } writer.write("\n") writer.write("=== ResponseMessage\n\n") - model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } } @@ -156,7 +156,7 @@ mapper = GraphSONMapper.build(). file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-partial.txt") if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_3_1)}, v2ExtendedDescription) } +file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_4_0)}, v2ExtendedDescription) } mapper = GraphSONMapper.build(). addRegistry(TinkerIoRegistryV2d0.instance()). @@ -167,7 +167,7 @@ mapper = GraphSONMapper.build(). file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-no-type.txt") if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0NoTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_NO_TYPE_3_3_1)}, v2ExtendedDescription) } +fil
[24/50] [abbrv] tinkerpop git commit: TINKERPOP-2041 Added IO tests for TextP
TINKERPOP-2041 Added IO tests for TextP Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/8b69b34b Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/8b69b34b Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/8b69b34b Branch: refs/heads/TINKERPOP-2053 Commit: 8b69b34b6393a3071c0cd491ea9ec0ca09a1e5ae Parents: 9b96586 Author: Stephen Mallette Authored: Wed Oct 3 15:01:40 2018 -0400 Committer: Daniel Kuppitz Committed: Thu Oct 4 07:45:08 2018 -0700 -- docs/src/dev/io/graphson.asciidoc | 26 .../scripts/generate-graphson-resources.groovy | 12 - .../tinkerpop/gremlin/structure/io/Model.java | 9 +++ .../io/AbstractTypedCompatibilityTest.java | 14 +++ .../io/graphson/_3_4_0/textp-v2d0-partial.json | 7 ++ .../io/graphson/_3_4_0/textp-v3d0.json | 7 ++ .../structure/io/gryo/_3_4_0/textp-v1d0.kryo| 1 + .../structure/io/gryo/_3_4_0/textp-v3d0.kryo| 1 + 8 files changed, 71 insertions(+), 6 deletions(-) -- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8b69b34b/docs/src/dev/io/graphson.asciidoc -- diff --git a/docs/src/dev/io/graphson.asciidoc b/docs/src/dev/io/graphson.asciidoc index d140a2f..1c9081c 100644 --- a/docs/src/dev/io/graphson.asciidoc +++ b/docs/src/dev/io/graphson.asciidoc @@ -3014,6 +3014,19 @@ The following `Bytecode` example represents the traversal of `g.V().hasLabel('pe } + TextP + +[source,json] + +{ + "@type" : "g:TextP", + "@value" : { +"predicate" : "containing", +"value" : "ark" + } +} + + TraversalMetrics [source,json] @@ -5392,6 +5405,19 @@ Please see <<_p,P>> for additional information on `within`. } + TextP + +[source,json] + +{ + "@type" : "g:TextP", + "@value" : { +"predicate" : "containing", +"value" : "ark" + } +} + + TraversalMetrics [source,json] http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8b69b34b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy -- diff --git a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy index 55b4fa6..03112ed 100644 --- a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy +++ b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy @@ -59,19 +59,19 @@ toJson = { o, type, mapper, comment = "", suffix = "" -> writeSupportedV1Objects = { writer, mapper -> writer.write("=== Graph Structure\n\n") -model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { +model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } writer.write("\n") writer.write("=== RequestMessage\n\n") - model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } writer.write("\n") writer.write("=== ResponseMessage\n\n") - model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } } @@ -156,7 +156,7 @@ mapper = GraphSONMapper.build(). file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-partial.txt") if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_3_1)}, v2ExtendedDescription) } +file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_4_0)}, v2ExtendedDescription) } mapper = GraphSONMapper.build(). addRegistry(TinkerIoRegistryV2d0.instance()). @@ -167,7 +167,7 @@ mapper = GraphSONMapper.build(). file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-no-type.txt") if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0NoTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_NO_TYPE_3_3_1)}, v2ExtendedDescription) } +fil
[29/48] tinkerpop git commit: TINKERPOP-2041 Added IO tests for TextP
TINKERPOP-2041 Added IO tests for TextP Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/8b69b34b Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/8b69b34b Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/8b69b34b Branch: refs/heads/TINKERPOP-2037 Commit: 8b69b34b6393a3071c0cd491ea9ec0ca09a1e5ae Parents: 9b96586 Author: Stephen Mallette Authored: Wed Oct 3 15:01:40 2018 -0400 Committer: Daniel Kuppitz Committed: Thu Oct 4 07:45:08 2018 -0700 -- docs/src/dev/io/graphson.asciidoc | 26 .../scripts/generate-graphson-resources.groovy | 12 - .../tinkerpop/gremlin/structure/io/Model.java | 9 +++ .../io/AbstractTypedCompatibilityTest.java | 14 +++ .../io/graphson/_3_4_0/textp-v2d0-partial.json | 7 ++ .../io/graphson/_3_4_0/textp-v3d0.json | 7 ++ .../structure/io/gryo/_3_4_0/textp-v1d0.kryo| 1 + .../structure/io/gryo/_3_4_0/textp-v3d0.kryo| 1 + 8 files changed, 71 insertions(+), 6 deletions(-) -- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8b69b34b/docs/src/dev/io/graphson.asciidoc -- diff --git a/docs/src/dev/io/graphson.asciidoc b/docs/src/dev/io/graphson.asciidoc index d140a2f..1c9081c 100644 --- a/docs/src/dev/io/graphson.asciidoc +++ b/docs/src/dev/io/graphson.asciidoc @@ -3014,6 +3014,19 @@ The following `Bytecode` example represents the traversal of `g.V().hasLabel('pe } + TextP + +[source,json] + +{ + "@type" : "g:TextP", + "@value" : { +"predicate" : "containing", +"value" : "ark" + } +} + + TraversalMetrics [source,json] @@ -5392,6 +5405,19 @@ Please see <<_p,P>> for additional information on `within`. } + TextP + +[source,json] + +{ + "@type" : "g:TextP", + "@value" : { +"predicate" : "containing", +"value" : "ark" + } +} + + TraversalMetrics [source,json] http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8b69b34b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy -- diff --git a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy index 55b4fa6..03112ed 100644 --- a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy +++ b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy @@ -59,19 +59,19 @@ toJson = { o, type, mapper, comment = "", suffix = "" -> writeSupportedV1Objects = { writer, mapper -> writer.write("=== Graph Structure\n\n") -model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { +model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } writer.write("\n") writer.write("=== RequestMessage\n\n") - model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } writer.write("\n") writer.write("=== ResponseMessage\n\n") - model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } } @@ -156,7 +156,7 @@ mapper = GraphSONMapper.build(). file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-partial.txt") if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_3_1)}, v2ExtendedDescription) } +file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_4_0)}, v2ExtendedDescription) } mapper = GraphSONMapper.build(). addRegistry(TinkerIoRegistryV2d0.instance()). @@ -167,7 +167,7 @@ mapper = GraphSONMapper.build(). file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-no-type.txt") if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0NoTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_NO_TYPE_3_3_1)}, v2ExtendedDescription) } +fil
[1/7] tinkerpop git commit: TINKERPOP-2041 Added IO tests for TextP
Repository: tinkerpop Updated Branches: refs/heads/master 3a8f58088 -> 8b69b34b6 TINKERPOP-2041 Added IO tests for TextP Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/8b69b34b Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/8b69b34b Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/8b69b34b Branch: refs/heads/master Commit: 8b69b34b6393a3071c0cd491ea9ec0ca09a1e5ae Parents: 9b96586 Author: Stephen Mallette Authored: Wed Oct 3 15:01:40 2018 -0400 Committer: Daniel Kuppitz Committed: Thu Oct 4 07:45:08 2018 -0700 -- docs/src/dev/io/graphson.asciidoc | 26 .../scripts/generate-graphson-resources.groovy | 12 - .../tinkerpop/gremlin/structure/io/Model.java | 9 +++ .../io/AbstractTypedCompatibilityTest.java | 14 +++ .../io/graphson/_3_4_0/textp-v2d0-partial.json | 7 ++ .../io/graphson/_3_4_0/textp-v3d0.json | 7 ++ .../structure/io/gryo/_3_4_0/textp-v1d0.kryo| 1 + .../structure/io/gryo/_3_4_0/textp-v3d0.kryo| 1 + 8 files changed, 71 insertions(+), 6 deletions(-) -- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8b69b34b/docs/src/dev/io/graphson.asciidoc -- diff --git a/docs/src/dev/io/graphson.asciidoc b/docs/src/dev/io/graphson.asciidoc index d140a2f..1c9081c 100644 --- a/docs/src/dev/io/graphson.asciidoc +++ b/docs/src/dev/io/graphson.asciidoc @@ -3014,6 +3014,19 @@ The following `Bytecode` example represents the traversal of `g.V().hasLabel('pe } + TextP + +[source,json] + +{ + "@type" : "g:TextP", + "@value" : { +"predicate" : "containing", +"value" : "ark" + } +} + + TraversalMetrics [source,json] @@ -5392,6 +5405,19 @@ Please see <<_p,P>> for additional information on `within`. } + TextP + +[source,json] + +{ + "@type" : "g:TextP", + "@value" : { +"predicate" : "containing", +"value" : "ark" + } +} + + TraversalMetrics [source,json] http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8b69b34b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy -- diff --git a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy index 55b4fa6..03112ed 100644 --- a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy +++ b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy @@ -59,19 +59,19 @@ toJson = { o, type, mapper, comment = "", suffix = "" -> writeSupportedV1Objects = { writer, mapper -> writer.write("=== Graph Structure\n\n") -model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { +model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } writer.write("\n") writer.write("=== RequestMessage\n\n") - model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } writer.write("\n") writer.write("=== ResponseMessage\n\n") - model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } } @@ -156,7 +156,7 @@ mapper = GraphSONMapper.build(). file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-partial.txt") if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_3_1)}, v2ExtendedDescription) } +file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_4_0)}, v2ExtendedDescription) } mapper = GraphSONMapper.build(). addRegistry(TinkerIoRegistryV2d0.instance()). @@ -167,7 +167,7 @@ mapper = GraphSONMapper.build(). file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-no-type.txt") if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0NoTypes, {it.isCompatibleWi
[47/50] [abbrv] tinkerpop git commit: TINKERPOP-2041 Added IO tests for TextP
TINKERPOP-2041 Added IO tests for TextP Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/8b69b34b Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/8b69b34b Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/8b69b34b Branch: refs/heads/TINKERPOP-2041 Commit: 8b69b34b6393a3071c0cd491ea9ec0ca09a1e5ae Parents: 9b96586 Author: Stephen Mallette Authored: Wed Oct 3 15:01:40 2018 -0400 Committer: Daniel Kuppitz Committed: Thu Oct 4 07:45:08 2018 -0700 -- docs/src/dev/io/graphson.asciidoc | 26 .../scripts/generate-graphson-resources.groovy | 12 - .../tinkerpop/gremlin/structure/io/Model.java | 9 +++ .../io/AbstractTypedCompatibilityTest.java | 14 +++ .../io/graphson/_3_4_0/textp-v2d0-partial.json | 7 ++ .../io/graphson/_3_4_0/textp-v3d0.json | 7 ++ .../structure/io/gryo/_3_4_0/textp-v1d0.kryo| 1 + .../structure/io/gryo/_3_4_0/textp-v3d0.kryo| 1 + 8 files changed, 71 insertions(+), 6 deletions(-) -- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8b69b34b/docs/src/dev/io/graphson.asciidoc -- diff --git a/docs/src/dev/io/graphson.asciidoc b/docs/src/dev/io/graphson.asciidoc index d140a2f..1c9081c 100644 --- a/docs/src/dev/io/graphson.asciidoc +++ b/docs/src/dev/io/graphson.asciidoc @@ -3014,6 +3014,19 @@ The following `Bytecode` example represents the traversal of `g.V().hasLabel('pe } + TextP + +[source,json] + +{ + "@type" : "g:TextP", + "@value" : { +"predicate" : "containing", +"value" : "ark" + } +} + + TraversalMetrics [source,json] @@ -5392,6 +5405,19 @@ Please see <<_p,P>> for additional information on `within`. } + TextP + +[source,json] + +{ + "@type" : "g:TextP", + "@value" : { +"predicate" : "containing", +"value" : "ark" + } +} + + TraversalMetrics [source,json] http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8b69b34b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy -- diff --git a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy index 55b4fa6..03112ed 100644 --- a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy +++ b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy @@ -59,19 +59,19 @@ toJson = { o, type, mapper, comment = "", suffix = "" -> writeSupportedV1Objects = { writer, mapper -> writer.write("=== Graph Structure\n\n") -model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { +model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } writer.write("\n") writer.write("=== RequestMessage\n\n") - model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } writer.write("\n") writer.write("=== ResponseMessage\n\n") - model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } } @@ -156,7 +156,7 @@ mapper = GraphSONMapper.build(). file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-partial.txt") if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_3_1)}, v2ExtendedDescription) } +file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_4_0)}, v2ExtendedDescription) } mapper = GraphSONMapper.build(). addRegistry(TinkerIoRegistryV2d0.instance()). @@ -167,7 +167,7 @@ mapper = GraphSONMapper.build(). file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-no-type.txt") if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0NoTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_NO_TYPE_3_3_1)}, v2ExtendedDescription) } +fil
tinkerpop git commit: TINKERPOP-2041 Added IO tests for TextP
Repository: tinkerpop Updated Branches: refs/heads/TINKERPOP-2041 a2211c2c5 -> 3aad0b342 TINKERPOP-2041 Added IO tests for TextP Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/3aad0b34 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/3aad0b34 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/3aad0b34 Branch: refs/heads/TINKERPOP-2041 Commit: 3aad0b342116f58bc20940e37612d70e7fc7dfc0 Parents: a2211c2 Author: Stephen Mallette Authored: Wed Oct 3 15:01:40 2018 -0400 Committer: Stephen Mallette Committed: Wed Oct 3 15:01:40 2018 -0400 -- docs/src/dev/io/graphson.asciidoc | 26 .../scripts/generate-graphson-resources.groovy | 12 - .../tinkerpop/gremlin/structure/io/Model.java | 9 +++ .../io/AbstractTypedCompatibilityTest.java | 14 +++ .../io/graphson/_3_4_0/textp-v2d0-partial.json | 7 ++ .../io/graphson/_3_4_0/textp-v3d0.json | 7 ++ .../structure/io/gryo/_3_4_0/textp-v1d0.kryo| 1 + .../structure/io/gryo/_3_4_0/textp-v3d0.kryo| 1 + 8 files changed, 71 insertions(+), 6 deletions(-) -- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/3aad0b34/docs/src/dev/io/graphson.asciidoc -- diff --git a/docs/src/dev/io/graphson.asciidoc b/docs/src/dev/io/graphson.asciidoc index d140a2f..1c9081c 100644 --- a/docs/src/dev/io/graphson.asciidoc +++ b/docs/src/dev/io/graphson.asciidoc @@ -3014,6 +3014,19 @@ The following `Bytecode` example represents the traversal of `g.V().hasLabel('pe } + TextP + +[source,json] + +{ + "@type" : "g:TextP", + "@value" : { +"predicate" : "containing", +"value" : "ark" + } +} + + TraversalMetrics [source,json] @@ -5392,6 +5405,19 @@ Please see <<_p,P>> for additional information on `within`. } + TextP + +[source,json] + +{ + "@type" : "g:TextP", + "@value" : { +"predicate" : "containing", +"value" : "ark" + } +} + + TraversalMetrics [source,json] http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/3aad0b34/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy -- diff --git a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy index 55b4fa6..03112ed 100644 --- a/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy +++ b/gremlin-tools/gremlin-io-test/scripts/generate-graphson-resources.groovy @@ -59,19 +59,19 @@ toJson = { o, type, mapper, comment = "", suffix = "" -> writeSupportedV1Objects = { writer, mapper -> writer.write("=== Graph Structure\n\n") -model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { +model.entries("Graph Structure").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } writer.write("\n") writer.write("=== RequestMessage\n\n") - model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + model.entries("RequestMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } writer.write("\n") writer.write("=== ResponseMessage\n\n") - model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_3_0)}.each { + model.entries("ResponseMessage").findAll{it.isCompatibleWith(GraphSONCompatibility.V1D0_3_4_0)}.each { writer.write(toJsonV1d0NoTypes(it.getObject(), it.getTitle(), mapper, it.getDescription())) } } @@ -156,7 +156,7 @@ mapper = GraphSONMapper.build(). file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-partial.txt") if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_3_1)}, v2ExtendedDescription) } +file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0PartialTypes, {it.isCompatibleWith(GraphSONCompatibility.V2D0_PARTIAL_3_4_0)}, v2ExtendedDescription) } mapper = GraphSONMapper.build(). addRegistry(TinkerIoRegistryV2d0.instance()). @@ -167,7 +167,7 @@ mapper = GraphSONMapper.build(). file = new File("${projectBuildDir}/dev-docs/out-graphson-2d0-no-type.txt") if (file.exists()) file.delete() -file.withWriter { writeSupportedV2V3Objects(it, mapper, toJsonV2d0NoTypes,