Search in sources :

Example 31 with GremlinPipeline

use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.

the class LinkedStepTest method test_g_v1_asXaX_outXcreatedX_inXcreatedX_linkBothXcocreator_aX.

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"));
}
Also used : GremlinPipeline(com.tinkerpop.gremlin.java.GremlinPipeline) Graph(com.tinkerpop.blueprints.Graph)

Example 32 with GremlinPipeline

use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.

the class TraversalStepsTest method test_g_v4_bothEX1_createdX.

public void test_g_v4_bothEX1_createdX() {
    super.test_g_v4_bothEX1_createdX(new GremlinPipeline(g.getVertex(4)).bothE(1, "created"));
    super.test_g_v4_bothEX1_createdX(new GremlinPipeline(g.getVertex(4)).optimize(false).bothE(1, "created"));
}
Also used : GremlinPipeline(com.tinkerpop.gremlin.java.GremlinPipeline)

Example 33 with GremlinPipeline

use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.

the class TraversalStepsTest method test_g_V_inEX2_knowsX_outV_name.

public void test_g_V_inEX2_knowsX_outV_name() {
    super.test_g_V_inEX2_knowsX_outV_name(new GremlinPipeline(g).V().inE(2, "knows").outV().property("name"));
    super.test_g_V_inEX2_knowsX_outV_name(new GremlinPipeline(g).optimize(false).V().inE(2, "knows").outV().property("name"));
}
Also used : GremlinPipeline(com.tinkerpop.gremlin.java.GremlinPipeline)

Example 34 with GremlinPipeline

use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.

the class TraversalStepsTest method test_g_V_bothX1_createdX_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"));
}
Also used : GremlinPipeline(com.tinkerpop.gremlin.java.GremlinPipeline)

Example 35 with GremlinPipeline

use of com.tinkerpop.gremlin.java.GremlinPipeline in project gremlin by tinkerpop.

the class TraversalStepsTest method test_g_v1_out_propertyXnameX.

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"));
}
Also used : GremlinPipeline(com.tinkerpop.gremlin.java.GremlinPipeline)

Aggregations

GremlinPipeline (com.tinkerpop.gremlin.java.GremlinPipeline)93 Vertex (com.tinkerpop.blueprints.Vertex)28 PipeFunction (com.tinkerpop.pipes.PipeFunction)13 Pipe (com.tinkerpop.pipes.Pipe)6 HashMap (java.util.HashMap)4 Request (org.apache.atlas.catalog.Request)3 VertexWrapper (org.apache.atlas.catalog.VertexWrapper)3 ResourceDefinition (org.apache.atlas.catalog.definition.ResourceDefinition)3 AtlasGraph (org.apache.atlas.repository.graphdb.AtlasGraph)3 Test (org.testng.annotations.Test)3 LoopPipe (com.tinkerpop.pipes.branch.LoopPipe)2 PropertyFilterPipe (com.tinkerpop.pipes.filter.PropertyFilterPipe)2 Table (com.tinkerpop.pipes.util.structures.Table)2 ArrayList (java.util.ArrayList)2 HashSet (java.util.HashSet)2 List (java.util.List)2 Test (org.junit.Test)2 OException (com.orientechnologies.common.exception.OException)1 OIdentifiable (com.orientechnologies.orient.core.db.record.OIdentifiable)1 OCommandExecutionException (com.orientechnologies.orient.core.exception.OCommandExecutionException)1