You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2021/01/13 11:54:19 UTC
[tinkerpop] branch master updated (975e46b -> 6c3844b)
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git.
from 975e46b Merge branch '3.4-dev'
new f8b2449 Fix construction field assignment
new 6c3844b Merge branch '3.4-dev'
The 2 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-python/src/main/python/gremlin_python/process/strategies.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[tinkerpop] 02/02: Merge branch '3.4-dev'
Posted by sp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 6c3844bfae0d36a2d517f44468e9167ca5e4c0a4
Merge: 975e46b f8b2449
Author: Stephen Mallette <st...@amazon.com>
AuthorDate: Wed Jan 13 06:31:21 2021 -0500
Merge branch '3.4-dev'
gremlin-python/src/main/python/gremlin_python/process/strategies.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --cc gremlin-python/src/main/python/gremlin_python/process/strategies.py
index 465659c,0000000..86fc3f8
mode 100644,000000..100644
--- a/gremlin-python/src/main/python/gremlin_python/process/strategies.py
+++ b/gremlin-python/src/main/python/gremlin_python/process/strategies.py
@@@ -1,232 -1,0 +1,232 @@@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+__author__ = 'Marko A. Rodriguez (http://markorodriguez.com)'
+
+from gremlin_python.process.traversal import TraversalStrategy
+
+base_namespace = 'org.apache.tinkerpop.gremlin.process.traversal.strategy.'
+decoration_namespace = base_namespace + 'decoration.'
+finalization_namespace = base_namespace + 'finalization.'
+optimization_namespace = base_namespace + 'optimization.'
+verification_namespace = base_namespace + 'verification.'
+computer_decoration_namespace = 'org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.'
+
+#########################
+# DECORATION STRATEGIES #
+#########################
+
+
+class ConnectiveStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=decoration_namespace + 'ConnectiveStrategy')
+
+
+class ElementIdStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=decoration_namespace + 'ElementIdStrategy')
+
+
+# EventStrategy doesn't make sense outside JVM traversal machine
+
+class HaltedTraverserStrategy(TraversalStrategy):
+ def __init__(self, halted_traverser_factory=None):
+ TraversalStrategy.__init__(self, fqcn=decoration_namespace + 'HaltedTraverserStrategy')
+ if halted_traverser_factory is not None:
+ self.configuration["haltedTraverserFactory"] = halted_traverser_factory
+
+
+class OptionsStrategy(TraversalStrategy):
+ def __init__(self, options=None):
+ TraversalStrategy.__init__(self, configuration=options, fqcn=decoration_namespace + 'OptionsStrategy')
+
+
+class PartitionStrategy(TraversalStrategy):
+ def __init__(self, partition_key=None, write_partition=None, read_partitions=None, include_meta_properties=None):
+ TraversalStrategy.__init__(self, fqcn=decoration_namespace + 'PartitionStrategy')
+ if partition_key is not None:
+ self.configuration["partitionKey"] = partition_key
+ if write_partition is not None:
+ self.configuration["writePartition"] = write_partition
- if write_partition is not None:
++ if read_partitions is not None:
+ self.configuration["readPartitions"] = read_partitions
+ if include_meta_properties is not None:
+ self.configuration["includeMetaProperties"] = include_meta_properties
+
+
+class SeedStrategy(TraversalStrategy):
+ def __init__(self, seed):
+ TraversalStrategy.__init__(self, fqcn="org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.SeedStrategy")
+ self.configuration["seed"] = seed
+
+
+class SubgraphStrategy(TraversalStrategy):
+
+ def __init__(self, vertices=None, edges=None, vertex_properties=None):
+ TraversalStrategy.__init__(self, fqcn=decoration_namespace + 'SubgraphStrategy')
+ if vertices is not None:
+ self.configuration["vertices"] = vertices
+ if edges is not None:
+ self.configuration["edges"] = edges
+ if vertex_properties is not None:
+ self.configuration["vertexProperties"] = vertex_properties
+
+
+class VertexProgramStrategy(TraversalStrategy):
+ def __init__(self, graph_computer=None, workers=None, persist=None, result=None, vertices=None, edges=None,
+ configuration=None):
+ TraversalStrategy.__init__(self, fqcn=computer_decoration_namespace + 'VertexProgramStrategy')
+ if graph_computer is not None:
+ self.configuration["graphComputer"] = graph_computer
+ if workers is not None:
+ self.configuration["workers"] = workers
+ if persist is not None:
+ self.configuration["persist"] = persist
+ if result is not None:
+ self.configuration["result"] = result
+ if vertices is not None:
+ self.configuration["vertices"] = vertices
+ if edges is not None:
+ self.configuration["edges"] = edges
+ if configuration is not None:
+ self.configuration.update(configuration)
+
+
+###########################
+# FINALIZATION STRATEGIES #
+###########################
+
+class MatchAlgorithmStrategy(TraversalStrategy):
+ def __init__(self, match_algorithm=None):
+ TraversalStrategy.__init__(self, fqcn=finalization_namespace + 'MatchAlgorithmStrategy')
+ if match_algorithm is not None:
+ self.configuration["matchAlgorithm"] = match_algorithm
+
+
+###########################
+# OPTIMIZATION STRATEGIES #
+###########################
+
+class AdjacentToIncidentStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'AdjacentToIncidentStrategy')
+
+
+class ByModulatorOptimizationStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn="org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.CountStrategy")
+
+
+class CountStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn="org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.ByModulatorOptimizationStrategy")
+
+
+class FilterRankingStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'FilterRankingStrategy')
+
+
+class IdentityRemovalStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'IdentityRemovalStrategy')
+
+
+class IncidentToAdjacentStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'IncidentToAdjacentStrategy')
+
+
+class InlineFilterStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'InlineFilterStrategy')
+
+
+class LazyBarrierStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'LazyBarrierStrategy')
+
+
+class MatchPredicateStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'MatchPredicateStrategy')
+
+
+class OrderLimitStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'OrderLimitStrategy')
+
+
+class PathProcessorStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'PathProcessorStrategy')
+
+
+class PathRetractionStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'PathRetractionStrategy')
+
+
+class CountStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'CountStrategy')
+
+
+class RepeatUnrollStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'RepeatUnrollStrategy')
+
+
+class GraphFilterStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'GraphFilterStrategy')
+
+
+
+class EarlyLimitStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=optimization_namespace + 'EarlyLimitStrategy')
+
+###########################
+# VERIFICATION STRATEGIES #
+###########################
+
+
+class LambdaRestrictionStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=verification_namespace + 'LambdaRestrictionStrategy')
+
+class ReadOnlyStrategy(TraversalStrategy):
+ def __init__(self):
+ TraversalStrategy.__init__(self, fqcn=verification_namespace + 'ReadOnlyStrategy')
+
+
+class EdgeLabelVerificationStrategy(TraversalStrategy):
+ def __init__(self, log_warning=False, throw_exception=False):
+ TraversalStrategy.__init__(self, fqcn=verification_namespace + 'EdgeLabelVerificationStrategy')
+ self.configuration["logWarning"] = log_warning
+ self.configuration["throwException"] = throw_exception
+
+
+class ReservedKeysVerificationStrategy(TraversalStrategy):
+ def __init__(self, log_warning=False, throw_exception=False, keys=["id", "label"]):
+ TraversalStrategy.__init__(self, fqcn=verification_namespace + 'ReservedKeysVerificationStrategy')
+ self.configuration["logWarning"] = log_warning
+ self.configuration["throwException"] = throw_exception
+ self.configuration["keys"] = keys
[tinkerpop] 01/02: Fix construction field assignment
Posted by sp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit f8b2449fc2fb6d65a19ebc1c0af36fa9eef424c3
Author: Miltos <mi...@allamanis.com>
AuthorDate: Tue Jan 12 23:22:14 2021 +0000
Fix construction field assignment
---
gremlin-python/src/main/jython/gremlin_python/process/strategies.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gremlin-python/src/main/jython/gremlin_python/process/strategies.py b/gremlin-python/src/main/jython/gremlin_python/process/strategies.py
index 6d97b27..a7b49a3 100644
--- a/gremlin-python/src/main/jython/gremlin_python/process/strategies.py
+++ b/gremlin-python/src/main/jython/gremlin_python/process/strategies.py
@@ -64,7 +64,7 @@ class PartitionStrategy(TraversalStrategy):
self.configuration["partitionKey"] = partition_key
if write_partition is not None:
self.configuration["writePartition"] = write_partition
- if write_partition is not None:
+ if read_partitions is not None:
self.configuration["readPartitions"] = read_partitions
if include_meta_properties is not None:
self.configuration["includeMetaProperties"] = include_meta_properties