return (this.next != null);
}
@Override
public Bindings next() {
final Bindings zNext = this.next;
this.next = this.computeNext();
return zNext;
}
private Bindings computeNext() {
while (this.bindIt.hasNext()) {
final Bindings bind = this.bindIt.next();
try {
if (bind != null) {
final Bindings bindNew = bind.clone();
final Iterator<HashMap<lupos.sparql1_1.Node, Object>> resultsOfAggregationFunctionsIterator = resultsOfAggregationFunctionsList.iterator();
for (final Map.Entry<Variable, Filter> entry: AddComputedBinding.this.projections
.entrySet()) {
final HashMap<lupos.sparql1_1.Node, Object> resultsOfAggregationFunctions = resultsOfAggregationFunctionsIterator.next();
bindNew.add(entry.getKey(),
Helper.getLiteral(Filter.staticEvalTree(
bind,
entry.getValue().getNodePointer(),
resultsOfAggregationFunctions, entry.getValue().getUsedEvaluationVisitor())));
}