Search in sources :

Example 6 with AtlasEdgeDirection

use of org.apache.atlas.repository.graphdb.AtlasEdgeDirection in project incubator-atlas by apache.

the class Titan1Vertex method getEdges.

@Override
public Iterable<AtlasEdge<Titan1Vertex, Titan1Edge>> getEdges(AtlasEdgeDirection dir, String edgeLabel) {
    Direction d = TitanObjectFactory.createDirection(dir);
    Iterator<Edge> edges = getWrappedElement().edges(d, edgeLabel);
    return graph.wrapEdges(edges);
}
Also used : AtlasEdgeDirection(org.apache.atlas.repository.graphdb.AtlasEdgeDirection) Direction(org.apache.tinkerpop.gremlin.structure.Direction) AtlasEdge(org.apache.atlas.repository.graphdb.AtlasEdge) Edge(org.apache.tinkerpop.gremlin.structure.Edge)

Aggregations

AtlasEdgeDirection (org.apache.atlas.repository.graphdb.AtlasEdgeDirection)6 Direction (org.apache.tinkerpop.gremlin.structure.Direction)5 AtlasEdge (org.apache.atlas.repository.graphdb.AtlasEdge)4 Edge (org.apache.tinkerpop.gremlin.structure.Edge)4 AtlasEdgeLabel (org.apache.atlas.repository.graphdb.AtlasEdgeLabel)2 AtlasPropertyKey (org.apache.atlas.repository.graphdb.AtlasPropertyKey)2 EdgeLabel (com.thinkaurelius.titan.core.EdgeLabel)1 PropertyKey (com.thinkaurelius.titan.core.PropertyKey)1 Direction (com.tinkerpop.blueprints.Direction)1 EdgeLabel (org.janusgraph.core.EdgeLabel)1 PropertyKey (org.janusgraph.core.PropertyKey)1