private EvaluatedRelation doCachedConstraint(SingleConstraint constraint, Attribute curAttr) {
Set<Tuple> tuples = new HashSet<Tuple>();
Set<Node> voSet = cacheHandler.getCachedValues(curAttr.getAttributeName());
for (Node newVO : voSet) {
constraint.setAttributeValue(curAttr, newVO);
EvaluatedRelation tmpRelation = restrict.restrict(result, constraint.getAvo(allVariables));
tuples.addAll(tmpRelation.getTuples());
tmpRelation = null;
}
return RELATION_FACTORY.getRelation(constraint.getAvo(allVariables).keySet(), tuples);
}