use of org.apache.jena.sparql.engine.binding.Binding in project jena by apache.
the class AbstractIterHashJoin method moveToNextBinding.
@Override
protected Binding moveToNextBinding() {
Binding r = slot;
slot = null;
return r;
}
use of org.apache.jena.sparql.engine.binding.Binding in project jena by apache.
the class QueryIterNestedLoopLeftJoin method moveToNextBinding.
@Override
protected Binding moveToNextBinding() {
Binding r = slot;
slot = null;
return r;
}
use of org.apache.jena.sparql.engine.binding.Binding in project jena by apache.
the class QueryIterNestedLoopLeftJoin method moveToNextBindingOrNull.
protected Binding moveToNextBindingOrNull() {
if (isFinished())
return null;
for (; ; ) {
// For rows from the left
if (rowLeft == null) {
if (left.hasNext()) {
rowLeft = left.next();
foundMatch = false;
s_countLHS++;
right = rightRows.iterator();
} else
return null;
}
while (right.hasNext()) {
Binding rowRight = right.next();
Binding r = Algebra.merge(rowLeft, rowRight);
if (r != null && applyConditions(r)) {
s_countResults++;
foundMatch = true;
return r;
}
}
if (!foundMatch) {
s_countResults++;
Binding r = rowLeft;
rowLeft = null;
return r;
}
rowLeft = null;
}
}
use of org.apache.jena.sparql.engine.binding.Binding in project jena by apache.
the class ListBase method allLists.
protected QueryIterator allLists(Binding binding, Collection<Node> x, Var listVar, Node predicate, PropFuncArg argObject, ExecutionContext execCxt) {
// BFI: Find all lists; work hard.
QueryIterConcat qIter = new QueryIterConcat(execCxt);
for (Node n : x) {
Binding b = BindingFactory.binding(binding, listVar, n);
QueryIterator q = execOneList(b, n, predicate, argObject, execCxt);
qIter.add(q);
}
return qIter;
}
use of org.apache.jena.sparql.engine.binding.Binding in project jena by apache.
the class CSVInputIterator method moveToNextBinding.
@Override
protected Binding moveToNextBinding() {
if (!hasNext())
throw new NoSuchElementException();
Binding b = this.binding;
this.binding = null;
return b;
}
Aggregations