Search in sources :

Example 66 with GremlinPipeline

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

the class ExceptStepTest method test_g_v1_out_aggregateXxX_out_exceptXxX.

public void test_g_v1_out_aggregateXxX_out_exceptXxX() {
    Set<Vertex> x = new HashSet<Vertex>();
    super.test_g_v1_out_aggregateXxX_out_exceptXxX(new GremlinPipeline(g.getVertex(1)).out().aggregate(x).out().except(x));
    x = new HashSet<Vertex>();
    super.test_g_v1_out_aggregateXxX_out_exceptXxX(new GremlinPipeline(g.getVertex(1)).optimize(false).out().aggregate(x).out().except(x));
}
Also used : Vertex(com.tinkerpop.blueprints.Vertex) GremlinPipeline(com.tinkerpop.gremlin.java.GremlinPipeline) HashSet(java.util.HashSet)

Example 67 with GremlinPipeline

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

the class FilterStepTest method test_g_V_filterXtrueX.

public void test_g_V_filterXtrueX() {
    super.test_g_V_filterXtrueX(new GremlinPipeline(g).V().filter(new PipeFunction<Vertex, Boolean>() {

        public Boolean compute(Vertex vertex) {
            return true;
        }
    }));
    super.test_g_V_filterXtrueX(new GremlinPipeline(g.getVertices()).optimize(false).filter(new PipeFunction<Vertex, Boolean>() {

        public Boolean compute(Vertex vertex) {
            return true;
        }
    }));
}
Also used : Vertex(com.tinkerpop.blueprints.Vertex) GremlinPipeline(com.tinkerpop.gremlin.java.GremlinPipeline) PipeFunction(com.tinkerpop.pipes.PipeFunction)

Example 68 with GremlinPipeline

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

the class HasStepTest method test_g_V_hasXage_gt_30X.

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

Example 69 with GremlinPipeline

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

the class HasStepTest method test_g_V_hasXname_markoX.

public void test_g_V_hasXname_markoX() {
    super.test_g_V_hasXname_markoX(new GremlinPipeline(g).V().has("name", "marko"));
    super.test_g_V_hasXname_markoX(new GremlinPipeline(g.getVertices()).optimize(false).has("name", "marko"));
}
Also used : GremlinPipeline(com.tinkerpop.gremlin.java.GremlinPipeline)

Example 70 with GremlinPipeline

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

the class HasStepTest method test_g_v1_out_hasXid_2X.

public void test_g_v1_out_hasXid_2X() {
    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"));
}
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