Package com.tinkerpop.gremlin.java

Examples of com.tinkerpop.gremlin.java.GremlinPipeline


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

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


        }).property("name"));
        assertEquals(c.get(0), new Integer(3));
    }

    public void test_g_v1_out_sideEffectXfalseX_propertyXnameX() {
        super.test_g_v1_out_sideEffectXfalseX_propertyXnameX(new GremlinPipeline(g.getVertex(1)).out().sideEffect(new PipeFunction<Vertex, Object>() {
            public Object compute(Vertex vertex) {
                return false;
            }
        }).property("name"));

        super.test_g_v1_out_sideEffectXfalseX_propertyXnameX(new GremlinPipeline(g.getVertex(1)).optimize(false).out().sideEffect(new PipeFunction<Vertex, Object>() {
            public Object compute(Vertex vertex) {
                return false;
            }
        }).property("name"));
    }
View Full Code Here

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

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

        super.test_g_v1_out_hasXid_2X(new GremlinPipeline(g.getVertex(1)).out().has("id", "2"));
        super.test_g_v1_out_hasXid_2X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().has("id", "2"));
    }

    public void test_g_V_hasXage_gt_30X() {
        super.test_g_V_hasXage_gt_30X(new GremlinPipeline(g).V().has("age", T.gt, 30));
        super.test_g_V_hasXage_gt_30X(new GremlinPipeline(g).V().optimize(false).has("age", T.gt, 30));
    }
View Full Code Here

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

    public void test_g_v2_in() {
        super.test_g_v2_in(new GremlinPipeline(g.getVertex(2)).in());
        super.test_g_v2_in(new GremlinPipeline(g.getVertex(2)).optimize(false).in());
    }
View Full Code Here

        super.test_g_V_hasXage_gt_30X(new GremlinPipeline(g).V().has("age", T.gt, 30));
        super.test_g_V_hasXage_gt_30X(new GremlinPipeline(g).V().optimize(false).has("age", T.gt, 30));
    }

    public void test_g_E_hasXlabelXknowsX() {
        super.test_g_E_hasXlabelXknowsX(new GremlinPipeline(g).E().has("label", T.eq, "knows"));
        super.test_g_E_hasXlabelXknowsX(new GremlinPipeline(g).optimize(false).E().has("label", T.eq, "knows"));
    }
View Full Code Here

        super.test_g_v2_in(new GremlinPipeline(g.getVertex(2)).in());
        super.test_g_v2_in(new GremlinPipeline(g.getVertex(2)).optimize(false).in());
    }

    public void test_g_v4_both() {
        super.test_g_v4_both(new GremlinPipeline(g.getVertex(4)).both());
        super.test_g_v4_both(new GremlinPipeline(g.getVertex(4)).optimize(false).both());
    }
View Full Code Here

        super.test_g_E_hasXlabelXknowsX(new GremlinPipeline(g).E().has("label", T.eq, "knows"));
        super.test_g_E_hasXlabelXknowsX(new GremlinPipeline(g).optimize(false).E().has("label", T.eq, "knows"));
    }

    public void test_g_E_hasXlabelXknows_createdX() {
        super.test_g_E_hasXlabelXknows_createdX(new GremlinPipeline(g.getEdges()).has("label", T.in, Arrays.asList("knows", "created")));
        super.test_g_E_hasXlabelXknows_createdX(new GremlinPipeline(g).E().optimize(false).has("label", T.in, Arrays.asList("knows", "created")));

    }
View Full Code Here

        super.test_g_v4_both(new GremlinPipeline(g.getVertex(4)).both());
        super.test_g_v4_both(new GremlinPipeline(g.getVertex(4)).optimize(false).both());
    }

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

        super.test_g_v1_outX1_knowsX_name(new GremlinPipeline(g.getVertex(1)).out(1, "knows").property("name"));
        super.test_g_v1_outX1_knowsX_name(new GremlinPipeline(g.getVertex(1)).optimize(false).out(1, "knows").property("name"));
    }

    public void test_g_V_bothX1_createdX_name() {
        super.test_g_V_bothX1_createdX_name(new GremlinPipeline(g).V().both(1, "created").property("name"));
        super.test_g_V_bothX1_createdX_name(new GremlinPipeline(g).optimize(false).V().both(1, "created").property("name"));
    }
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.