Package com.tinkerpop.gremlin.java

Examples of com.tinkerpop.gremlin.java.GremlinPipeline


        super.test_g_v1_out_exceptXg_v2X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().except(Arrays.asList(g.getVertex(2))));
    }

    public void test_g_v1_out_aggregateXxX_out_exceptXxX() {
        Set<Vertex> x = new HashSet<Vertex>();
        super.test_g_v1_out_aggregateXxX_out_exceptXxX(new GremlinPipeline(g.getVertex(1)).out().aggregate(x).out().except(x));

        x = new HashSet<Vertex>();
        super.test_g_v1_out_aggregateXxX_out_exceptXxX(new GremlinPipeline(g.getVertex(1)).optimize(false).out().aggregate(x).out().except(x));
    }
View Full Code Here


        super.test_g_v1_out_gather(new GremlinPipeline(g.getVertex(1)).out().gather());
        super.test_g_v1_out_gather(new GremlinPipeline(g.getVertex(1)).optimize(false).out().gather());
    }

    public void test_g_v1_out_gatherXget0X(final Pipe<Vertex, Vertex> pipe) {
        super.test_g_v1_out_gatherXget0X(new GremlinPipeline(g.getVertex(1)).out().gather(new PipeFunction<List, Vertex>() {
            public Vertex compute(List argument) {
                return (Vertex) argument.get(0);
            }
        }));

        super.test_g_v1_out_gatherXget0X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().gather(new PipeFunction<List, Vertex>() {
            public Vertex compute(List argument) {
                return (Vertex) argument.get(0);
            }
        }));
    }
View Full Code Here

        x = new HashSet<Vertex>();
        super.test_g_v1_out_aggregateXxX_out_exceptXxX(new GremlinPipeline(g.getVertex(1)).optimize(false).out().aggregate(x).out().except(x));
    }

    public void test_g_v1_outXcreatedX_inXcreatedX_exceptXg_v1X_propertyXnameX() {
        super.test_g_v1_outXcreatedX_inXcreatedX_exceptXg_v1X_propertyXnameX(new GremlinPipeline(g.getVertex(1)).out("created").in("created").except(Arrays.asList(g.getVertex(1))).property("name"));
        super.test_g_v1_outXcreatedX_inXcreatedX_exceptXg_v1X_propertyXnameX(new GremlinPipeline(g.getVertex(1)).optimize(false).out("created").in("created").except(Arrays.asList(g.getVertex(1))).property("name"));
    }
View Full Code Here

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

    public void test_g_v1_propertyXnameX_path() {
        super.test_g_v1_propertyXnameX_path(new GremlinPipeline(g.getVertex(1)).property("name").path());
        super.test_g_v1_propertyXnameX_path(new GremlinPipeline(g.getVertex(1)).optimize(false).property("name").path());
    }
View Full Code Here

        super.test_g_v1_propertyXnameX_path(new GremlinPipeline(g.getVertex(1)).property("name").path());
        super.test_g_v1_propertyXnameX_path(new GremlinPipeline(g.getVertex(1)).optimize(false).property("name").path());
    }

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

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

                                                                                                           }
        ));
    }

    public void test_g_V_out_loopX1__loops_lt_3X_pathXit__name__langX() {
        super.test_g_V_out_loopX1__loops_lt_3X_pathXit__name__langX(new GremlinPipeline(g.getVertices()).out().loop(1, new PipeFunction<LoopPipe.LoopBundle, Boolean>() {
            public Boolean compute(LoopPipe.LoopBundle bundle) {
                return bundle.getLoops() < 3;
            }
        }).path(new PipeFunction<Vertex, Vertex>() {
                    public Vertex compute(Vertex vertex) {
                        return vertex;
                    }
                }, new PipeFunction<Vertex, String>() {
                    public String compute(Vertex vertex) {
                        return (String) vertex.getProperty("name");
                    }
                }, new PipeFunction<Vertex, String>() {
                    public String compute(Vertex vertex) {
                        return (String) vertex.getProperty("lang");
                    }
                }
        ));

        super.test_g_V_out_loopX1__loops_lt_3X_pathXit__name__langX(new GremlinPipeline(g).V().optimize(false).out().loop(1, new PipeFunction<LoopPipe.LoopBundle, Boolean>() {
            public Boolean compute(LoopPipe.LoopBundle bundle) {
                return bundle.getLoops() < 3;
            }
        }).path(new PipeFunction<Vertex, Vertex>() {
                    public Vertex compute(Vertex vertex) {
View Full Code Here

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

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

        super.test_g_v1_map(new GremlinPipeline(g.getVertex(1)).map());
        super.test_g_v1_map(new GremlinPipeline(g.getVertex(1)).optimize(false).map());
    }

    public void test_g_v1_mapXname_idX() {
        super.test_g_v1_mapXname_idX(new GremlinPipeline(g.getVertex(1)).map("name", "id"));
        super.test_g_v1_mapXname_idX(new GremlinPipeline(g.getVertex(1)).optimize(false).map("name", "id"));
    }
View Full Code Here

        super.test_g_v1_mapXname_idX(new GremlinPipeline(g.getVertex(1)).map("name", "id"));
        super.test_g_v1_mapXname_idX(new GremlinPipeline(g.getVertex(1)).optimize(false).map("name", "id"));
    }

    public void test_g_v1_outXknowsX_map() {
        super.test_g_v1_outXknowsX_map(new GremlinPipeline(g.getVertex(1)).out("knows").map());
        super.test_g_v1_outXknowsX_map(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows").map());
    }
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.