/** * Get the attach vertex on either side of the edge. * * @param direction The side of the edge to get the vertex from (IN or OUT). * @param fetchHints Hint on what should be fetched from the datastore. * @return The vertex. */ default Vertex getVertex(Direction direction, FetchHints fetchHints, Authorizations authorizations) { String vertexId = getVertexId(direction); return getGraph().getVertex(vertexId, fetchHints, authorizations); }
/** * Given a vertexId that represents one side of a relationship, get me the vertex of the other side. */ default Vertex getOtherVertex(String myVertexId, Authorizations authorizations) { return getOtherVertex(myVertexId, getGraph().getDefaultFetchHints(), authorizations); }
/** * Gets both in and out vertices of this edge. */ default EdgeVertices getVertices(Authorizations authorizations) { return getVertices(getGraph().getDefaultFetchHints(), authorizations); }
/** * Get the attach vertex on either side of the edge. * * @param direction The side of the edge to get the vertex from (IN or OUT). * @return The vertex. */ default Vertex getVertex(Direction direction, Authorizations authorizations) { return getVertex(direction, getGraph().getDefaultFetchHints(), authorizations); }
/** * Get the attach vertex on either side of the edge. * * @param direction The side of the edge to get the vertex from (IN or OUT). * @return The vertex. */ default Vertex getVertex(Direction direction, Authorizations authorizations) { return getVertex(direction, getGraph().getDefaultFetchHints(), authorizations); }
/** * Get the attach vertex on either side of the edge. * * @param direction The side of the edge to get the vertex from (IN or OUT). * @param fetchHints Hint on what should be fetched from the datastore. * @return The vertex. */ default Vertex getVertex(Direction direction, FetchHints fetchHints, Authorizations authorizations) { String vertexId = getVertexId(direction); return getGraph().getVertex(vertexId, fetchHints, authorizations); }
/** * Given a vertexId that represents one side of a relationship, get me the vertex of the other side. */ default Vertex getOtherVertex(String myVertexId, FetchHints fetchHints, Authorizations authorizations) { String vertexId = getOtherVertexId(myVertexId); return getGraph().getVertex(vertexId, fetchHints, authorizations); }
/** * Given a vertexId that represents one side of a relationship, get me the vertex of the other side. */ default Vertex getOtherVertex(String myVertexId, Authorizations authorizations) { return getOtherVertex(myVertexId, getGraph().getDefaultFetchHints(), authorizations); }
/** * Gets both in and out vertices of this edge. */ default EdgeVertices getVertices(Authorizations authorizations) { return getVertices(getGraph().getDefaultFetchHints(), authorizations); }
/** * Given a vertexId that represents one side of a relationship, get me the vertex of the other side. */ default Vertex getOtherVertex(String myVertexId, FetchHints fetchHints, Authorizations authorizations) { String vertexId = getOtherVertexId(myVertexId); return getGraph().getVertex(vertexId, fetchHints, authorizations); }
/** * Gets both in and out vertices of this edge. */ default EdgeVertices getVertices(FetchHints fetchHints, Authorizations authorizations) { List<String> ids = new ArrayList<>(); ids.add(getVertexId(Direction.OUT)); ids.add(getVertexId(Direction.IN)); Map<String, Vertex> vertices = IterableUtils.toMapById(getGraph().getVertices(ids, fetchHints, authorizations)); return new EdgeVertices( vertices.get(getVertexId(Direction.OUT)), vertices.get(getVertexId(Direction.IN)) ); }
/** * Gets both in and out vertices of this edge. */ default EdgeVertices getVertices(FetchHints fetchHints, Authorizations authorizations) { List<String> ids = new ArrayList<>(); ids.add(getVertexId(Direction.OUT)); ids.add(getVertexId(Direction.IN)); Map<String, Vertex> vertices = IterableUtils.toMapById(getGraph().getVertices(ids, fetchHints, authorizations)); return new EdgeVertices( vertices.get(getVertexId(Direction.OUT)), vertices.get(getVertexId(Direction.IN)) ); }