This is an automated email from the ASF dual-hosted git repository.
xiazcy pushed a change to branch multi-label-experiment
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
from 477473f26f GLV implementations
new 27da3669c7 Add cardinality
new 8ff5899a4f multi-label append only update
new 2f26659d8d Make TinkerGraph default to ONE for labels, add strategy to
throw for unintended drop() usage on labels()
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../gremlin-server/gremlin-server-integration.yaml | 3 +
.../grammar/DefaultGremlinBaseVisitor.java | 4 -
.../language/grammar/TraversalMethodVisitor.java | 19 -
.../grammar/TraversalSourceSpawnMethodVisitor.java | 26 +-
.../process/traversal/TraversalStrategies.java | 3 +
.../step/map/AbstractAddVertexStepPlaceholder.java | 6 +
.../traversal/step/map/AddVertexStartStep.java | 15 +-
.../step/map/AddVertexStartStepPlaceholder.java | 13 +-
.../process/traversal/step/map/AddVertexStep.java | 15 +-
.../process/traversal/step/map/MergeEdgeStep.java | 6 +-
.../traversal/step/map/MergeVertexStep.java | 6 +-
.../LabelsDropVerificationStrategy.java | 66 ++++
.../apache/tinkerpop/gremlin/structure/Graph.java | 33 ++
.../gremlin/structure/LabelCardinality.java | 134 +++++++
.../structure/io/binary/types/EdgeSerializer.java | 15 +-
.../structure/io/binary/types/GraphSerializer.java | 6 +-
.../io/binary/types/VertexSerializer.java | 6 +-
.../structure/io/graphml/GraphMLWriter.java | 6 +-
.../io/graphson/GraphSONSerializersV1.java | 8 +-
.../io/graphson/GraphSONSerializersV2.java | 8 +-
.../io/graphson/GraphSONSerializersV3.java | 8 +-
.../structure/io/gryo/GryoSerializersV3.java | 10 +-
.../structure/util/detached/DetachedVertex.java | 2 +-
.../gremlin/structure/util/star/StarGraph.java | 14 +-
...ava => LabelsDropVerificationStrategyTest.java} | 65 ++--
.../Gherkin/CommonSteps.cs | 30 +-
.../Gherkin/GherkinTestRunner.cs | 6 -
.../Gremlin.Net.IntegrationTest/Gherkin/Gremlin.cs | 10 +-
.../Gherkin/IgnoreException.cs | 7 +-
.../Gherkin/ScenarioData.cs | 18 +
gremlin-go/driver/cucumber/cucumberSteps_test.go | 25 +-
gremlin-go/driver/cucumber/cucumberWorld.go | 22 +-
gremlin-go/driver/cucumber/gremlin.go | 10 +-
.../test/cucumber/feature-steps.js | 17 +-
.../gremlin-javascript/test/cucumber/gremlin.js | 10 +-
.../gremlin-javascript/test/cucumber/world.js | 27 +-
gremlin-language/src/main/antlr4/Gremlin.g4 | 2 -
.../src/main/python/tests/feature/feature_steps.py | 21 +-
.../src/main/python/tests/feature/gremlin.py | 10 +-
.../src/main/python/tests/feature/terrain.py | 10 +
.../tinkergraph-multilabel.properties} | 3 +-
.../gremlin/driver/remote/RemoteWorld.java | 18 +
.../server/util/CheckedGraphManagerTest.java | 2 +-
.../server/util/DefaultGraphManagerTest.java | 10 +-
.../gremlin/server/gremlin-server-integration.yaml | 3 +
...roperties => tinkergraph-multilabel.properties} | 3 +-
.../tinkerpop/gremlin/features/StepDefinition.java | 14 +-
.../apache/tinkerpop/gremlin/features/World.java | 12 +
.../gremlin/language/translator/translations.json | 182 ++--------
.../gremlin/test/features/map/AddEdge.feature | 32 --
.../gremlin/test/features/map/Labels.feature | 4 +-
.../gremlin/test/features/map/MergeVertex.feature | 9 +-
.../test/features/sideEffect/AddLabel.feature | 4 +-
.../test/features/sideEffect/DropLabel.feature | 20 +-
.../ser/binary/TypeSerializerFailureTests.java | 7 +-
.../tinkergraph/structure/AbstractTinkerGraph.java | 16 +
.../gremlin/tinkergraph/structure/TinkerEdge.java | 41 +--
.../gremlin/tinkergraph/structure/TinkerGraph.java | 10 +-
.../structure/TinkerTransactionGraph.java | 10 +-
.../tinkergraph/structure/TinkerVertex.java | 77 +++-
.../tinkerpop/gremlin/tinkergraph/TinkerWorld.java | 1 +
.../process/traversal/step/map/LabelsStepTest.java | 10 +-
.../traversal/step/map/MergeVMultiLabelTest.java | 27 +-
.../step/sideEffect/LabelMutationPropertyTest.java | 13 +-
.../step/sideEffect/LabelMutationStepTest.java | 24 +-
.../structure/LabelCardinalityTest.java | 396 +++++++++++++++++++++
.../LabelReplacePatternValidationTest.java | 318 +++++++++++++++++
.../structure/MergeOnMatchLabelPatternsTest.java | 172 +++++++++
.../TinkerVertexMultiLabelGremlinLangTest.java | 7 +-
.../structure/TinkerVertexMultiLabelTest.java | 34 +-
70 files changed, 1661 insertions(+), 540 deletions(-)
create mode 100644
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/verification/LabelsDropVerificationStrategy.java
create mode 100644
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/LabelCardinality.java
copy
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/verification/{ComputerVerificationStrategyTest.java
=> LabelsDropVerificationStrategyTest.java} (50%)
copy gremlin-server/{src/test/scripts/tinkergraph-empty.properties =>
conf/tinkergraph-multilabel.properties} (82%)
copy gremlin-server/src/test/scripts/{tinkergraph-empty.properties =>
tinkergraph-multilabel.properties} (82%)
create mode 100644
tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/LabelCardinalityTest.java
create mode 100644
tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/LabelReplacePatternValidationTest.java
create mode 100644
tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/MergeOnMatchLabelPatternsTest.java