This is an automated email from the ASF dual-hosted git repository.

xiazcy pushed a commit to branch gvalue-feature-tests
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/gvalue-feature-tests by this 
push:
     new 3466b3aa97 fix test using old Parameter class
3466b3aa97 is described below

commit 3466b3aa97662ae64cd9028cfcb3f843c978a4a2
Author: Yang Xia <[email protected]>
AuthorDate: Mon Nov 25 10:27:34 2024 -0800

    fix test using old Parameter class
---
 .../tinkerpop/gremlin/process/TraversalConstructionBenchmark.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/gremlin-tools/gremlin-benchmark/src/main/java/org/apache/tinkerpop/gremlin/process/TraversalConstructionBenchmark.java
 
b/gremlin-tools/gremlin-benchmark/src/main/java/org/apache/tinkerpop/gremlin/process/TraversalConstructionBenchmark.java
index 6f59f774ba..14b638de54 100644
--- 
a/gremlin-tools/gremlin-benchmark/src/main/java/org/apache/tinkerpop/gremlin/process/TraversalConstructionBenchmark.java
+++ 
b/gremlin-tools/gremlin-benchmark/src/main/java/org/apache/tinkerpop/gremlin/process/TraversalConstructionBenchmark.java
@@ -19,9 +19,9 @@
 package org.apache.tinkerpop.gremlin.process;
 
 import org.apache.tinkerpop.benchmark.util.AbstractGraphBenchmark;
-import org.apache.tinkerpop.gremlin.process.traversal.GremlinLang;
 import org.apache.tinkerpop.gremlin.process.traversal.P;
 import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal;
+import org.apache.tinkerpop.gremlin.process.traversal.step.GValue;
 import org.openjdk.jmh.annotations.Benchmark;
 
 import java.util.HashMap;
@@ -72,8 +72,8 @@ public class TraversalConstructionBenchmark  extends 
AbstractGraphBenchmark {
     }
 
     @Benchmark
-    public GraphTraversal constructMediumWithBindings() throws Exception {
-        return g.V().has("person","name", 
GremlinLang.Parameter.var("x","marko")).
+    public GraphTraversal constructMediumWithBindings() {
+        return g.V().has("person","name", GValue.of("x","marko")).
                 project("user","knows","created").
                 by(project("name","age").by("name").by("age")).
                 by(out("knows").project("name","age").by("name").by("age")).

Reply via email to