Package com.tinkerpop.gremlin.java

Examples of com.tinkerpop.gremlin.java.GremlinPipeline


            }
        }).back(1));
    }

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

        super.test_g_v4_out_asXhereX_filterXlang_eq_javaX_backXhereX(new GremlinPipeline(g.getVertex(4)).optimize(false).out().as("here").filter(new PipeFunction<Vertex, Boolean>() {
            public Boolean compute(Vertex v) {
                return v.getProperty("lang").equals("java");
            }
        }).back("here"));
    }
View Full Code Here


        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());
    }

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

            }
        }).back("here"));
    }

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

        super.test_g_v4_out_asXhereX_filterXlang_eq_javaX_backXhereX_propertyXnameX(new GremlinPipeline(g.getVertex(4)).optimize(false).out().as("here").filter(new PipeFunction<Vertex, Boolean>() {
            public Boolean compute(Vertex v) {
                return v.getProperty("lang").equals("java");
            }
        }).back("here").property("name"));
    }
View Full Code Here

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

    public void test_g_v1_out_out_treeXnameX_cap() {
        super.test_g_v1_out_out_treeXnameX_cap(new GremlinPipeline(graph.getVertex(1)).out().out().tree(new PipeFunction<Vertex, String>() {
            public String compute(Vertex vertex) {
                return (String) vertex.getProperty("name");
            }
        }).cap());

        super.test_g_v1_out_out_treeXnameX_cap(new GremlinPipeline(graph.getVertex(1)).optimize(false).out().out().tree(new PipeFunction<Vertex, String>() {
            public String compute(Vertex vertex) {
                return (String) vertex.getProperty("name");
            }
        }).cap());
    }
View Full Code Here

            }
        }).back("here").property("name"));
    }

    public void test_g_v1_outE_inV_hasXname_vadasX_backX2X() {
        super.test_g_v1_outE_inV_hasXname_vadasX_backX2X(new GremlinPipeline(g.getVertex(1)).outE().inV().has("name", "vadas").back(2));
        super.test_g_v1_outE_inV_hasXname_vadasX_backX2X(new GremlinPipeline(g.getVertex(1)).optimize(false).outE().inV().has("name", "vadas").back(2));
    }
View Full Code Here

        super.test_g_v1_outE_inV_hasXname_vadasX_backX2X(new GremlinPipeline(g.getVertex(1)).outE().inV().has("name", "vadas").back(2));
        super.test_g_v1_outE_inV_hasXname_vadasX_backX2X(new GremlinPipeline(g.getVertex(1)).optimize(false).outE().inV().has("name", "vadas").back(2));
    }

    public void test_g_v1_outE_asXhereX_inV_hasXname_vadasX_backXhereX() {
        super.test_g_v1_outE_asXhereX_inV_hasXname_vadasX_backXhereX(new GremlinPipeline(g.getVertex(1)).outE().as("here").inV().has("name", "vadas").back("here"));
        super.test_g_v1_outE_asXhereX_inV_hasXname_vadasX_backXhereX(new GremlinPipeline(g.getVertex(1)).optimize(false).outE().as("here").inV().has("name", "vadas").back("here"));
    }
View Full Code Here

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

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

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

        ComplianceTest.testCompliance(this.getClass());
    }

    public void test_g_v1_aggregateXxX_outXcreatedX_inXcreatedX_exceptXxX() {
        List<Vertex> x = new ArrayList<Vertex>();
        super.test_g_v1_aggregateXxX_outXcreatedX_inXcreatedX_exceptXxX(new GremlinPipeline(g.getVertex(1)).aggregate(x).out("created").in("created").except(x));

        x = new ArrayList<Vertex>();
        super.test_g_v1_aggregateXxX_outXcreatedX_inXcreatedX_exceptXxX(new GremlinPipeline(g.getVertex(1)).optimize(false).aggregate(x).out("created").in("created").except(x));
    }
View Full Code Here

        x = new ArrayList<Vertex>();
        super.test_g_v1_aggregateXxX_outXcreatedX_inXcreatedX_exceptXxX(new GremlinPipeline(g.getVertex(1)).optimize(false).aggregate(x).out("created").in("created").except(x));
    }

    public void test_g_V_propertyXnameX_aggregate_cap() {
        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());
    }
View Full Code Here

            }
        }));
    }

    public void test_g_v1_outE_label_transformXlengthX() {
        super.test_g_v1_outE_label_transformXlengthX(new GremlinPipeline(g.getVertex(1)).outE().label().transform(new PipeFunction<String, Integer>() {
            public Integer compute(String name) {
                return name.length();
            }
        }));

        super.test_g_v1_outE_label_transformXlengthX(new GremlinPipeline(g.getVertex(1)).optimize(false).outE().label().transform(new PipeFunction<String, Integer>() {
            public Integer compute(String name) {
                return name.length();
            }
        }));
    }
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.