本文整理了Java中org.vertexium.Graph.getDefaultFetchHints()
方法的一些代码示例,展示了Graph.getDefaultFetchHints()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graph.getDefaultFetchHints()
方法的具体详情如下:
包路径:org.vertexium.Graph
类名称:Graph
方法名:getDefaultFetchHints
[英]The default fetch hints to use if none are provided
[中]如果未提供任何获取提示,则使用默认的获取提示
代码示例来源:origin: org.vertexium/vertexium-core
@Override
public QueryResultsIterable<ExtendedDataRow> extendedDataRows() {
return extendedDataRows(getGraph().getDefaultFetchHints());
}
代码示例来源:origin: org.vertexium/vertexium-core
/**
* Gets both in and out vertices of this edge.
*/
default EdgeVertices getVertices(Authorizations authorizations) {
return getVertices(getGraph().getDefaultFetchHints(), authorizations);
}
代码示例来源:origin: org.vertexium/vertexium-core
@Override
public QueryResultsIterable<Element> elements() {
return elements(getGraph().getDefaultFetchHints());
}
代码示例来源:origin: org.vertexium/vertexium-core
/**
* 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);
}
代码示例来源:origin: org.vertexium/vertexium-core
/**
* 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);
}
代码示例来源:origin: visallo/vertexium
@Override
public QueryResultsIterable<Vertex> vertices() {
return vertices(getGraph().getDefaultFetchHints());
}
代码示例来源:origin: visallo/vertexium
/**
* 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);
}
代码示例来源:origin: visallo/vertexium
@Override
public QueryResultsIterable<ExtendedDataRow> extendedDataRows() {
return extendedDataRows(getGraph().getDefaultFetchHints());
}
代码示例来源:origin: visallo/vertexium
@Override
public QueryResultsIterable<? extends VertexiumObject> search() {
return search(VertexiumObjectType.ALL, getGraph().getDefaultFetchHints());
}
代码示例来源:origin: visallo/vertexium
/**
* 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);
}
代码示例来源:origin: visallo/vertexium
/**
* Gets both in and out vertices of this edge.
*/
default EdgeVertices getVertices(Authorizations authorizations) {
return getVertices(getGraph().getDefaultFetchHints(), authorizations);
}
代码示例来源:origin: org.vertexium/vertexium-core
@Override
public QueryResultsIterable<? extends VertexiumObject> search() {
return search(VertexiumObjectType.ALL, getGraph().getDefaultFetchHints());
}
代码示例来源:origin: org.vertexium/vertexium-core
@Override
public QueryResultsIterable<Vertex> vertices() {
return vertices(getGraph().getDefaultFetchHints());
}
代码示例来源:origin: org.vertexium/vertexium-core
@Override
public QueryResultsIterable<Edge> edges() {
return edges(getGraph().getDefaultFetchHints());
}
代码示例来源:origin: visallo/vertexium
@Override
public QueryResultsIterable<Element> elements() {
return elements(getGraph().getDefaultFetchHints());
}
代码示例来源:origin: visallo/vertexium
@Override
public QueryResultsIterable<Edge> edges() {
return edges(getGraph().getDefaultFetchHints());
}
代码示例来源:origin: visallo/vertexium
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);
}
}
}
代码示例来源:origin: visallo/vertexium
@Override
protected Edge getE() {
return getGraph().getEdge(getEdgeId(), getGraph().getDefaultFetchHints(), getTime(), getAuthorizations());
}
代码示例来源:origin: visallo/vertexium
public LazyEdge get(String edgeId) {
Edge e = getGraph().getEdge(edgeId, getGraph().getDefaultFetchHints(), getTime(), getAuthorizations());
if (e == null) {
return null;
}
return new LazyEdge(edgeId);
}
}
代码示例来源:origin: visallo/vertexium
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);
}
}
内容来源于网络,如有侵权,请联系作者删除!