Package com.tinkerpop.gremlin.java

Examples of com.tinkerpop.gremlin.java.GremlinPipeline


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

    public void test_g_v1_out_retainXg_v2X() {
        super.test_g_v1_out_retainXg_v2X(new GremlinPipeline(g.getVertex(1)).out().retain(Arrays.asList(g.getVertex(2))));
        super.test_g_v1_out_retainXg_v2X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().retain(Arrays.asList(g.getVertex(2))));
    }
View Full Code Here


            }
        }));
    }

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

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

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

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

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

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

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

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

    public void test_g_V_both_dedup_name() {
        super.test_g_V_both_dedup_name(new GremlinPipeline(g.getVertices()).both().dedup().property("name"));
        super.test_g_V_both_dedup_name(new GremlinPipeline(g.getVertices()).optimize(false).both().dedup().property("name"));
    }
View Full Code Here

        super.test_g_V_both_dedup_name(new GremlinPipeline(g.getVertices()).both().dedup().property("name"));
        super.test_g_V_both_dedup_name(new GremlinPipeline(g.getVertices()).optimize(false).both().dedup().property("name"));
    }

    public void test_g_V_both_dedupXlangX_name() {
        super.test_g_V_both_dedupXlangX_name(new GremlinPipeline(g.getVertices()).both().dedup(new PipeFunction<Vertex, String>() {
            public String compute(final Vertex vertex) {
                return (String) vertex.getProperty("lang");
            }
        }).property("name"));

        super.test_g_V_both_dedupXlangX_name(new GremlinPipeline(g).optimize(false).V().both().dedup(new PipeFunction<Vertex, String>() {
            public String compute(final Vertex vertex) {
                return (String) vertex.getProperty("lang");
            }
        }).property("name"));
    }
View Full Code Here

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

    public void test_g_v1_asXaX_outXknowsX_asXbX_select() {
        super.test_g_v1_asXaX_outXknowsX_asXbX_select(new GremlinPipeline(g.getVertex(1)).as("a").out("knows").as("b").select());
        super.test_g_v1_asXaX_outXknowsX_asXbX_select(new GremlinPipeline(g.getVertex(1)).optimize(false).as("a").out("knows").as("b").select());
    }
View Full Code Here

        super.test_g_v1_asXaX_outXknowsX_asXbX_select(new GremlinPipeline(g.getVertex(1)).as("a").out("knows").as("b").select());
        super.test_g_v1_asXaX_outXknowsX_asXbX_select(new GremlinPipeline(g.getVertex(1)).optimize(false).as("a").out("knows").as("b").select());
    }

    public void test_g_v1_asXaX_outXknowsX_asXbX_selectXnameX() {
        super.test_g_v1_asXaX_outXknowsX_asXbX_selectXnameX(new GremlinPipeline(g.getVertex(1)).as("a").out("knows").as("b").select(new PipeFunction<Vertex, String>() {
            public String compute(Vertex vertex) {
                return (String) vertex.getProperty("name");
            }
        }));

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

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

    public void test_g_v1_out_exceptXg_v2X() {
        super.test_g_v1_out_exceptXg_v2X(new GremlinPipeline(g.getVertex(1)).out().except(Arrays.asList(g.getVertex(2))));
        super.test_g_v1_out_exceptXg_v2X(new GremlinPipeline(g.getVertex(1)).optimize(false).out().except(Arrays.asList(g.getVertex(2))));
    }
View Full Code Here

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

    public void test_g_v1_out_gather(final Pipe<Vertex, List<Vertex>> pipe) {
        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());
    }
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.