org.securegraph.query.DefaultVertexQuery Maven / Gradle / Ivy
The newest version!
package org.securegraph.query;
import org.securegraph.*;
import java.util.EnumSet;
import java.util.Map;
public class DefaultVertexQuery extends VertexQueryBase implements VertexQuery {
public DefaultVertexQuery(Graph graph, Vertex sourceVertex, String queryString, Map propertyDefinitions, Authorizations authorizations) {
super(graph, sourceVertex, queryString, propertyDefinitions, authorizations);
}
@Override
public Iterable vertices(EnumSet fetchHints) {
Iterable vertices = getSourceVertex().getVertices(Direction.BOTH, fetchHints, getParameters().getAuthorizations());
return new DefaultGraphQueryIterable(getParameters(), vertices, true, true);
}
@Override
public Iterable edges(EnumSet fetchHints) {
Iterable edges = getSourceVertex().getEdges(Direction.BOTH, fetchHints, getParameters().getAuthorizations());
return new DefaultGraphQueryIterable(getParameters(), edges, true, true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy