Search in sources :

Example 71 with GremlinPipeline

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

the class RangeStepTest method test_g_v1_outXknowsX_outXcreatedX_rangeX0_0X.

public void test_g_v1_outXknowsX_outXcreatedX_rangeX0_0X() {
    super.test_g_v1_outXknowsX_outXcreatedX_rangeX0_0X(new GremlinPipeline(g.getVertex(1)).out("knows").out("created").range(0, 0));
    super.test_g_v1_outXknowsX_outXcreatedX_rangeX0_0X(new GremlinPipeline(g.getVertex(1)).optimize(false).out("knows").out("created").range(0, 0));
}
Also used : GremlinPipeline(com.tinkerpop.gremlin.java.GremlinPipeline)

Example 72 with GremlinPipeline

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

the class RangeStepTest method test_g_v1_outXcreatedX_inEXcreatedX_rangeX1_2X_outV.

public void test_g_v1_outXcreatedX_inEXcreatedX_rangeX1_2X_outV() {
    super.test_g_v1_outXcreatedX_inEXcreatedX_rangeX1_2X_outV(new GremlinPipeline((g.getVertex(1))).out("created").inE("created").range(1, 2).outV());
    super.test_g_v1_outXcreatedX_inEXcreatedX_rangeX1_2X_outV(new GremlinPipeline((g.getVertex(1))).optimize(false).out("created").inE("created").range(1, 2).outV());
}
Also used : GremlinPipeline(com.tinkerpop.gremlin.java.GremlinPipeline)

Example 73 with GremlinPipeline

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

the class RetainStepTest method test_g_v1_out_retainXg_v2X.

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

Example 74 with GremlinPipeline

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

the class RetainStepTest method test_g_v1_out_aggregateXxX_out_retainXxX.

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

Example 75 with GremlinPipeline

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

the class AggregateStepTest method test_g_v1_aggregateXxX_outXcreatedX_inXcreatedX_exceptXxX.

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

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