Package com.tinkerpop.gremlin.java

Examples of com.tinkerpop.gremlin.java.GremlinPipeline


            }
        }).cap());
    }

    public void test_g_v1_asXaX_out_propertyXnameX_asXbX_tableXname_lengthX_cap() {
        super.test_g_v1_asXaX_out_propertyXnameX_asXbX_tableXname_lengthX_cap(new GremlinPipeline(g.getVertex(1)).as("a").out().property("name").as("b").table(new Table(), new PipeFunction<Vertex, String>() {
                    public String compute(Vertex vertex) {
                        return (String) vertex.getProperty("name");
                    }
                }, new PipeFunction<String, Integer>() {
                    public Integer compute(String name) {
                        return name.length();
                    }
                }
        ).cap());

        super.test_g_v1_asXaX_out_propertyXnameX_asXbX_tableXname_lengthX_cap(new GremlinPipeline(g.getVertex(1)).optimize(false).as("a").out().property("name").as("b").table(new Table(), new PipeFunction<Vertex, String>() {
                    public String compute(Vertex vertex) {
                        return (String) vertex.getProperty("name");
                    }
                }, new PipeFunction<String, Integer>() {
                    public Integer compute(String name) {
View Full Code Here


        super.test_g_v2_inE_outV(new GremlinPipeline(g.getVertex(2)).inE().outV());
        super.test_g_v2_inE_outV(new GremlinPipeline(g.getVertex(2)).optimize(false).inE().outV());
    }

    public void test_g_v1_outXknowsX() {
        super.test_g_v1_outXknowsX(new GremlinPipeline(g.getVertex(1)).out("knows"));
        super.test_g_v1_outXknowsX(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows"));
    }
View Full Code Here

        super.test_g_v1_outXknowsX(new GremlinPipeline(g.getVertex(1)).out("knows"));
        super.test_g_v1_outXknowsX(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows"));
    }

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

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

    public void test_g_v1_outEXknowsX_inV() {
        super.test_g_v1_outEXknowsX_inV(new GremlinPipeline(g.getVertex(1)).outE("knows").inV());
        super.test_g_v1_outEXknowsX_inV(new GremlinPipeline(g.getVertex(1)).optimize(false).outE("knows").inV());
    }
View Full Code Here

        super.test_g_v1_outEXknowsX_inV(new GremlinPipeline(g.getVertex(1)).outE("knows").inV());
        super.test_g_v1_outEXknowsX_inV(new GremlinPipeline(g.getVertex(1)).optimize(false).outE("knows").inV());
    }

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

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

    public void test_g_v1_out_backX1X() {
        super.test_g_v1_out_backX1X(new GremlinPipeline(g.getVertex(1)).out().back(1));
        super.test_g_v1_out_backX1X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().back(1));
    }
View Full Code Here

        super.test_g_v1_outEXknows_createdX_inV(new GremlinPipeline(g.getVertex(1)).outE("knows", "created").inV());
        super.test_g_v1_outEXknows_createdX_inV(new GremlinPipeline(g.getVertex(1)).optimize(false).outE("knows", "created").inV());
    }

    public void test_g_V_out_out() {
        super.test_g_V_out_out(new GremlinPipeline(g.getVertices()).out().out());
        super.test_g_V_out_out(new GremlinPipeline(g).V().out().out());
        super.test_g_V_out_out(new GremlinPipeline(g.getVertices()).optimize(false).out().out());
        super.test_g_V_out_out(new GremlinPipeline(g).optimize(false).V().out().out());
    }
View Full Code Here

        super.test_g_v1_out_backX1X(new GremlinPipeline(g.getVertex(1)).out().back(1));
        super.test_g_v1_out_backX1X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().back(1));
    }

    public void test_g_v1_asXhereX_out_backXhereX() {
        super.test_g_v1_asXhereX_out_backXhereX(new GremlinPipeline(g.getVertex(1)).as("here").out().back("here"));
        super.test_g_v1_asXhereX_out_backXhereX(new GremlinPipeline(g.getVertex(1)).optimize(false).as("here").out().back("here"));
    }
View Full Code Here

        super.test_g_V_out_out(new GremlinPipeline(g.getVertices()).optimize(false).out().out());
        super.test_g_V_out_out(new GremlinPipeline(g).optimize(false).V().out().out());
    }

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

        super.test_g_v1_asXhereX_out_backXhereX(new GremlinPipeline(g.getVertex(1)).as("here").out().back("here"));
        super.test_g_v1_asXhereX_out_backXhereX(new GremlinPipeline(g.getVertex(1)).optimize(false).as("here").out().back("here"));
    }

    public void test_g_v4_out_filterXlang_eq_javaX_backX1X() {
        super.test_g_v4_out_filterXlang_eq_javaX_backX1X(new GremlinPipeline(g.getVertex(4)).out().filter(new PipeFunction<Vertex, Boolean>() {
            public Boolean compute(Vertex v) {
                return v.getProperty("lang").equals("java");
            }
        }).back(1));

        super.test_g_v4_out_filterXlang_eq_javaX_backX1X(new GremlinPipeline(g.getVertex(4)).optimize(false).out().filter(new PipeFunction<Vertex, Boolean>() {
            public Boolean compute(Vertex v) {
                return v.getProperty("lang").equals("java");
            }
        }).back(1));
    }
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.