use of org.apache.atlas.repository.graphdb.titan.query.expr.AndCondition in project incubator-atlas by apache.
the class TitanGraphQuery method vertices.
@Override
public Iterable<AtlasVertex<V, E>> vertices() {
LOG.debug("Executing: ");
LOG.debug(queryCondition.toString());
//compute the overall result by unioning the results from all of the
//AndConditions together.
Set<AtlasVertex<V, E>> result = new HashSet<>();
for (AndCondition andExpr : queryCondition.getAndTerms()) {
NativeTitanGraphQuery<V, E> andQuery = andExpr.create(getQueryFactory());
for (AtlasVertex<V, E> vertex : andQuery.vertices()) {
result.add(vertex);
}
}
return result;
}
Aggregations