Package com.tinkerpop.gremlin.java

Examples of com.tinkerpop.gremlin.java.GremlinPipeline


        super.test_g_V_propertyXnameX_aggregate_cap(new GremlinPipeline(g.getVertices()).property("name").aggregate().cap());
        super.test_g_V_propertyXnameX_aggregate_cap(new GremlinPipeline(g).optimize(false).V().property("name").aggregate().cap());
    }

    public void test_g_V_aggregateXnameX_cap() {
        super.test_g_V_aggregateXnameX_cap(new GremlinPipeline(g).V().aggregate(new PipeFunction<Vertex, String>() {
            public String compute(Vertex vertex) {
                return (String) vertex.getProperty("name");
            }
        }).cap());

        super.test_g_V_aggregateXnameX_cap(new GremlinPipeline(g.getVertices()).optimize(false).aggregate(new PipeFunction<Vertex, String>() {
            public String compute(Vertex vertex) {
                return (String) vertex.getProperty("name");
            }
        }).cap());
    }
View Full Code Here


            }
        }));
    }

    public void test_g_v1_out_transformXnameX_transformXlengthX() {
        super.test_g_v1_out_transformXnameX_transformXlengthX(new GremlinPipeline(g.getVertex(1)).out().transform(new PipeFunction<Vertex, String>() {
            public String compute(Vertex vertex) {
                return (String) vertex.getProperty("name");
            }
        }).transform(new PipeFunction<String, Integer>() {
            public Integer compute(String name) {
                return name.length();
            }
        }));

        super.test_g_v1_out_transformXnameX_transformXlengthX(new GremlinPipeline(g.getVertex(1)).optimize(false).out().transform(new PipeFunction<Vertex, String>() {
            public String compute(Vertex vertex) {
                return (String) vertex.getProperty("name");
            }
        }).transform(new PipeFunction<String, Integer>() {
            public Integer compute(String name) {
View Full Code Here

            }
        }));
    }

    public void test_g_V_asXaX_out_transformXa_nameX() {
        super.test_g_V_asXaX_out_transformXa_nameX(new GremlinPipeline(g).V().as("a").out().transform(
                new PipesFunction() {
                    public Object compute(Object argument) {
                        return ((Vertex) this.asMap.get("a")).getProperty("name");
                    }
                }
        ));

        super.test_g_V_asXaX_out_transformXa_nameX(new GremlinPipeline(g.getVertices()).optimize(false).as("a").out().transform(
                new PipesFunction() {
                    public Object compute(Object argument) {
                        return ((Vertex) this.asMap.get("a")).getProperty("name");
                    }
                }
View Full Code Here

    public void testCompliance() {
        ComplianceTest.testCompliance(this.getClass());
    }

    public void test_g_v1_out_rangeX0_1X() {
        super.test_g_v1_out_rangeX0_1X(new GremlinPipeline(g.getVertex(1)).out().range(0, 1));
        super.test_g_v1_out_rangeX0_1X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().range(0, 1));
    }
View Full Code Here

        super.test_g_v1_out_rangeX0_1X(new GremlinPipeline(g.getVertex(1)).out().range(0, 1));
        super.test_g_v1_out_rangeX0_1X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().range(0, 1));
    }

    public void test_g_v1_outXknowsX_outEXcreatedX_rangeX0_0X_inV() {
        super.test_g_v1_outXknowsX_outEXcreatedX_rangeX0_0X_inV(new GremlinPipeline(g.getVertex(1)).out("knows").outE("created").range(0, 0).inV());
        super.test_g_v1_outXknowsX_outEXcreatedX_rangeX0_0X_inV(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows").outE("created").range(0, 0).inV());
    }
View Full Code Here

        super.test_g_v1_outXknowsX_outEXcreatedX_rangeX0_0X_inV(new GremlinPipeline(g.getVertex(1)).out("knows").outE("created").range(0, 0).inV());
        super.test_g_v1_outXknowsX_outEXcreatedX_rangeX0_0X_inV(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows").outE("created").range(0, 0).inV());
    }

    public void test_g_v1_outXknowsX_outXcreatedX_rangeX0_0X() {
        super.test_g_v1_outXknowsX_outXcreatedX_rangeX0_0X(new GremlinPipeline(g.getVertex(1)).out("knows").out("created").range(0, 0));
        super.test_g_v1_outXknowsX_outXcreatedX_rangeX0_0X(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows").out("created").range(0, 0));
    }
View Full Code Here

        super.test_g_v1_outXknowsX_outXcreatedX_rangeX0_0X(new GremlinPipeline(g.getVertex(1)).out("knows").out("created").range(0, 0));
        super.test_g_v1_outXknowsX_outXcreatedX_rangeX0_0X(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows").out("created").range(0, 0));
    }

    public void test_g_v1_outXcreatedX_inXcreatedX_rangeX1_2X() {
        super.test_g_v1_outXcreatedX_inXcreatedX_rangeX1_2X(new GremlinPipeline((g.getVertex(1))).out("created").in("created").range(1, 2));
        super.test_g_v1_outXcreatedX_inXcreatedX_rangeX1_2X(new GremlinPipeline((g.getVertex(1))).optimize(false).out("created").in("created").range(1, 2));
    }
View Full Code Here

        super.test_g_v1_outXcreatedX_inXcreatedX_rangeX1_2X(new GremlinPipeline((g.getVertex(1))).out("created").in("created").range(1, 2));
        super.test_g_v1_outXcreatedX_inXcreatedX_rangeX1_2X(new GremlinPipeline((g.getVertex(1))).optimize(false).out("created").in("created").range(1, 2));
    }

    public void test_g_v1_outXcreatedX_inEXcreatedX_rangeX1_2X_outV() {
        super.test_g_v1_outXcreatedX_inEXcreatedX_rangeX1_2X_outV(new GremlinPipeline((g.getVertex(1))).out("created").inE("created").range(1, 2).outV());
        super.test_g_v1_outXcreatedX_inEXcreatedX_rangeX1_2X_outV(new GremlinPipeline((g.getVertex(1))).optimize(false).out("created").inE("created").range(1, 2).outV());
    }
View Full Code Here

    public void testCompliance() {
        ComplianceTest.testCompliance(this.getClass());
    }

    public void test_g_V_name_order() {
        super.test_g_V_name_order(new GremlinPipeline(g.getVertices()).property("name").order());
        super.test_g_V_name_order(new GremlinPipeline(g).optimize(false).V().property("name").order());
    }
View Full Code Here

        super.test_g_V_name_order(new GremlinPipeline(g.getVertices()).property("name").order());
        super.test_g_V_name_order(new GremlinPipeline(g).optimize(false).V().property("name").order());
    }

    public void test_g_V_name_orderXabX() {
        super.test_g_V_name_orderXabX(new GremlinPipeline(g).V().property("name").order(new PipeFunction<Pair<String, String>, Integer>() {
            public Integer compute(Pair<String, String> argument) {
                return argument.getB().compareTo(argument.getA());
            }
        }));

        super.test_g_V_name_orderXabX(new GremlinPipeline(g.getVertices()).optimize(false).property("name").order(new PipeFunction<Pair<String, String>, Integer>() {
            public Integer compute(Pair<String, String> argument) {
                return argument.getB().compareTo(argument.getA());
            }
        }));
    }
View Full Code Here

TOP

Related Classes of com.tinkerpop.gremlin.java.GremlinPipeline

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.