@Override public QueryResultsIterable<ExtendedDataRow> extendedDataRows() { return extendedDataRows(getGraph().getDefaultFetchHints()); }
/** * Gets both in and out vertices of this edge. */ default EdgeVertices getVertices(Authorizations authorizations) { return getVertices(getGraph().getDefaultFetchHints(), authorizations); }
@Override public QueryResultsIterable<Element> elements() { return elements(getGraph().getDefaultFetchHints()); }
/** * 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); }
/** * 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); }
@Override public QueryResultsIterable<Vertex> vertices() { return vertices(getGraph().getDefaultFetchHints()); }
/** * 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); }
@Override public QueryResultsIterable<ExtendedDataRow> extendedDataRows() { return extendedDataRows(getGraph().getDefaultFetchHints()); }
@Override public QueryResultsIterable<? extends VertexiumObject> search() { return search(VertexiumObjectType.ALL, getGraph().getDefaultFetchHints()); }
/** * 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); }
@Override public QueryResultsIterable<? extends VertexiumObject> search() { return search(VertexiumObjectType.ALL, getGraph().getDefaultFetchHints()); }
@Override public QueryResultsIterable<Vertex> vertices() { return vertices(getGraph().getDefaultFetchHints()); }
@Override public QueryResultsIterable<Edge> edges() { return edges(getGraph().getDefaultFetchHints()); }
@Override public QueryResultsIterable<Element> elements() { return elements(getGraph().getDefaultFetchHints()); }
@Override public QueryResultsIterable<Edge> edges() { return edges(getGraph().getDefaultFetchHints()); }
public Object get(String vertexId) { if (vertexId.endsWith("*")) { String vertexIdPrefix = vertexId.substring(0, vertexId.length() - 1); Iterable<Vertex> vertices = getGraph().getVerticesWithPrefix(vertexIdPrefix, getGraph().getDefaultFetchHints(), getTime(), getAuthorizations()); List<String> results = new ArrayList<>(); for (Vertex v : vertices) { results.add(v.getId()); } return new LazyVertexList(results); } else { Vertex v = getGraph().getVertex(vertexId, getGraph().getDefaultFetchHints(), getTime(), getAuthorizations()); if (v == null) { return null; } return new LazyVertex(vertexId); } } }
@Override protected Edge getE() { return getGraph().getEdge(getEdgeId(), getGraph().getDefaultFetchHints(), getTime(), getAuthorizations()); }
public LazyEdge get(String edgeId) { Edge e = getGraph().getEdge(edgeId, getGraph().getDefaultFetchHints(), getTime(), getAuthorizations()); if (e == null) { return null; } return new LazyEdge(edgeId); } }
public Element getElement() { switch (elementType) { case VERTEX: return getGraph().getVertex(getElementId(), getGraph().getDefaultFetchHints(), getTime(), getAuthorizations()); case EDGE: return getGraph().getEdge(getElementId(), getGraph().getDefaultFetchHints(), getTime(), getAuthorizations()); default: throw new VertexiumException("Unhandled element type: " + elementType); } }