Class QueryIterDefaulting
- java.lang.Object
-
- org.apache.jena.sparql.util.PrintSerializableBase
-
- org.apache.jena.sparql.engine.iterator.QueryIteratorBase
-
- org.apache.jena.sparql.engine.iterator.QueryIter
-
- org.apache.jena.sparql.engine.iterator.QueryIterSub
-
- org.apache.jena.sparql.engine.iterator.QueryIterDefaulting
-
- All Implemented Interfaces:
java.util.Iterator<Binding>
,org.apache.jena.atlas.io.Printable
,org.apache.jena.atlas.lib.Closeable
,QueryIterator
,PrintSerializable
public class QueryIterDefaulting extends QueryIterSub
An iterator that returns at least one element from another iterator or a default value (once) if the wrapped iterator returns nothing.
-
-
Field Summary
-
Fields inherited from class org.apache.jena.sparql.engine.iterator.QueryIteratorBase
traceIterators
-
-
Constructor Summary
Constructors Constructor Description QueryIterDefaulting(QueryIterator cIter, Binding _defaultObject, ExecutionContext qCxt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
wasDefaultObject()
Returns true if the returned binding was the default object.-
Methods inherited from class org.apache.jena.sparql.engine.iterator.QueryIter
close, getExecContext, getIteratorNumber, makeTracked, map, materialize, materialize, output, output
-
Methods inherited from class org.apache.jena.sparql.engine.iterator.QueryIteratorBase
cancel, debug, hasNext, next, nextBinding, remove
-
Methods inherited from class org.apache.jena.sparql.util.PrintSerializableBase
toString, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.jena.sparql.util.PrintSerializable
toString
-
Methods inherited from interface org.apache.jena.sparql.engine.QueryIterator
isJoinIdentity
-
-
-
-
Constructor Detail
-
QueryIterDefaulting
public QueryIterDefaulting(QueryIterator cIter, Binding _defaultObject, ExecutionContext qCxt)
-
-