com.hp.hpl.jena.sparql.engine.iterator
Class QueryIterDefaulting
java.lang.Object
com.hp.hpl.jena.sparql.util.PrintSerializableBase
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
com.hp.hpl.jena.sparql.engine.iterator.QueryIter
com.hp.hpl.jena.sparql.engine.iterator.QueryIterSub
com.hp.hpl.jena.sparql.engine.iterator.QueryIterDefaulting
- All Implemented Interfaces:
- QueryIterator, PrintSerializable, java.util.Iterator<Binding>, Printable, Closeable
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.
|
Method Summary |
boolean |
wasDefaultObject()
Returns true if the returned binding was the default object. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
QueryIterDefaulting
public QueryIterDefaulting(QueryIterator cIter,
Binding _defaultObject,
ExecutionContext qCxt)
wasDefaultObject
public boolean wasDefaultObject()
- Returns true if the returned binding was the default object. Undef if before the iterator's first .hasNext()
Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.