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