Examples of GremlinPipeline


Examples of com.tinkerpop.gremlin.java.GremlinPipeline

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

    public void test_g_V_asXhereX_out_loopXhere_loops_lt_3X_propertyXnameX() {
        super.test_g_V_asXhereX_out_loopXhere_loops_lt_3X_propertyXnameX(new GremlinPipeline(g).V().as("here").out().loop("here", new PipeFunction<LoopPipe.LoopBundle, Boolean>() {
            public Boolean compute(LoopPipe.LoopBundle bundle) {
                return bundle.getLoops() < 3;
            }
        }).property("name"));

        super.test_g_V_asXhereX_out_loopXhere_loops_lt_3X_propertyXnameX(new GremlinPipeline(g.getVertices()).optimize(false).as("here").out().loop("here", new PipeFunction<LoopPipe.LoopBundle, Boolean>() {
            public Boolean compute(LoopPipe.LoopBundle bundle) {
                return bundle.getLoops() < 3;
            }
        }).property("name"));
    }
View Full Code Here

Examples of com.tinkerpop.gremlin.java.GremlinPipeline

            }
        }));
    }

    public void test_g_V_filterXname_startsWith_m_OR_name_startsWith_pX() {
        super.test_g_V_filterXname_startsWith_m_OR_name_startsWith_pX(new GremlinPipeline(g.getVertices()).filter(new PipeFunction<Vertex, Boolean>() {
            public Boolean compute(Vertex vertex) {
                return ((String) vertex.getProperty("name")).startsWith("m") || ((String) vertex.getProperty("name")).startsWith("p");
            }
        }));

        super.test_g_V_filterXname_startsWith_m_OR_name_startsWith_pX(new GremlinPipeline(g).optimize(false).V().filter(new PipeFunction<Vertex, Boolean>() {
            public Boolean compute(Vertex vertex) {
                return ((String) vertex.getProperty("name")).startsWith("m") || ((String) vertex.getProperty("name")).startsWith("p");
            }
        }));
    }
View Full Code Here

Examples of com.tinkerpop.gremlin.java.GremlinPipeline

public class LinkedStepTest extends com.tinkerpop.gremlin.test.sideeffect.LinkStepTest {

    public void test_g_v1_asXaX_outXcreatedX_inXcreatedX_linkBothXcocreator_aX() {
        Graph g = TinkerGraphFactory.createTinkerGraph();
        super.test_g_v1_asXaX_outXcreatedX_inXcreatedX_linkBothXcocreator_aX(
                new GremlinPipeline(g.getVertex(1)).as("a").out("created").in("created").linkBoth("cocreator", "a"));

        g = TinkerGraphFactory.createTinkerGraph();
        super.test_g_v1_asXaX_outXcreatedX_inXcreatedX_linkBothXcocreator_aX(
                new GremlinPipeline(g.getVertex(1)).optimize(false).as("a").out("created").in("created").linkBoth("cocreator", "a"));
    }
View Full Code Here

Examples of com.tinkerpop.gremlin.java.GremlinPipeline

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

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

Examples of com.tinkerpop.gremlin.java.GremlinPipeline

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

    public void test_g_V_outXcreatedX_groupCountXm__nameX() {
        Map<String, Number> m = new HashMap<String, Number>();
        super.test_g_V_outXcreatedX_groupCountXm__nameX(new GremlinPipeline(g.getVertices()).out("created").groupCount(m, new PipeFunction<Vertex, String>() {
            public String compute(Vertex vertex) {
                return (String) vertex.getProperty("name");
            }
        }), m);

        m = new HashMap<String, Number>();
        super.test_g_V_outXcreatedX_groupCountXm__nameX(new GremlinPipeline(g).optimize(false).V().out("created").groupCount(m, new PipeFunction<Vertex, String>() {
            public String compute(Vertex vertex) {
                return (String) vertex.getProperty("name");
            }
        }), m);
    }
View Full Code Here

Examples of com.tinkerpop.gremlin.java.GremlinPipeline

        super.test_g_v1_out_copySplitXpropertyXnameX__propertyXageXX_fairMerge(new GremlinPipeline(g.getVertex(1)).out().copySplit(new GremlinPipeline().property("name"), new GremlinPipeline().property("age")).fairMerge());
        super.test_g_v1_out_copySplitXpropertyXnameX__propertyXageXX_fairMerge(new GremlinPipeline(g.getVertex(1)).optimize(false).out().copySplit(new GremlinPipeline().optimize(false).property("name"), new GremlinPipeline().property("age")).fairMerge());
    }

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

Examples of com.tinkerpop.gremlin.java.GremlinPipeline

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

    public void test_g_V_hasNotXname_markoX() {
        super.test_g_V_hasNotXname_markoX(new GremlinPipeline(g).V().hasNot("name", "marko"));
        super.test_g_V_hasNotXname_markoX(new GremlinPipeline(g).optimize(false).V().hasNot("name", "marko"));
    }
View Full Code Here

Examples of com.tinkerpop.gremlin.java.GremlinPipeline

        }), m);
    }

    public void test_g_V_outXcreatedX_groupCountXm__name__plus_2X() {
        Map<String, Number> m = new HashMap<String, Number>();
        super.test_g_V_outXcreatedX_groupCountXm__name__plus_2X(new GremlinPipeline(g).V().out("created").groupCount(m,
                new PipeFunction<Vertex, String>() {
                    public String compute(Vertex vertex) {
                        return (String) vertex.getProperty("name");
                    }
                },
                new PipeFunction<Pair<?, Number>, Number>() {
                    public Number compute(Pair<?, Number> arg) {
                        return arg.getB().longValue() + 2l;
                    }
                }
        ), m);

        m = new HashMap<String, Number>();
        super.test_g_V_outXcreatedX_groupCountXm__name__plus_2X(new GremlinPipeline(g.getVertices()).optimize(false).out("created").groupCount(m,
                new PipeFunction<Vertex, String>() {
                    public String compute(Vertex vertex) {
                        return (String) vertex.getProperty("name");
                    }
                },
View Full Code Here

Examples of com.tinkerpop.gremlin.java.GremlinPipeline

        super.test_g_v1_outXknowsX_copySplitXpropertyXnameX__propertyXageXX_exhaustMerge(new GremlinPipeline(g.getVertex(1)).out("knows").copySplit(new GremlinPipeline().property("name"), new GremlinPipeline().property("age")).exhaustMerge());
        super.test_g_v1_outXknowsX_copySplitXpropertyXnameX__propertyXageXX_exhaustMerge(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows").copySplit(new GremlinPipeline().optimize(false).property("name"), new GremlinPipeline().property("age")).exhaustMerge());
    }

    public void test_g_v1_outXknowsX_copySplitXpropertyXnameX__propertyXageXX_exhaustMerge_path() {
        super.test_g_v1_outXknowsX_copySplitXpropertyXnameX__propertyXageXX_exhaustMerge_path(new GremlinPipeline(g.getVertex(1)).out("knows").copySplit(new GremlinPipeline().property("name"), new GremlinPipeline().property("age")).exhaustMerge().path());
        super.test_g_v1_outXknowsX_copySplitXpropertyXnameX__propertyXageXX_exhaustMerge_path(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows").copySplit(new GremlinPipeline().property("name"), new GremlinPipeline().property("age")).exhaustMerge().path());

    }
View Full Code Here

Examples of com.tinkerpop.gremlin.java.GremlinPipeline

                }
        ), m);
    }

    public void test_g_V_outXcreatedX_groupCountXnameX_cap() {
        super.test_g_V_outXcreatedX_groupCountXnameX_cap(new GremlinPipeline(g.getVertices()).out("created").groupCount(new PipeFunction<Vertex, String>() {
            public String compute(Vertex vertex) {
                return (String) vertex.getProperty("name");
            }
        }).cap());

        super.test_g_V_outXcreatedX_groupCountXnameX_cap(new GremlinPipeline(g).optimize(false).V().out("created").groupCount(new PipeFunction<Vertex, String>() {
            public String compute(Vertex vertex) {
                return (String) vertex.getProperty("name");
            }
        }).cap());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.