org.openrdf.sail.rdbms.iteration
Class EmptyRdbmsResourceIteration
java.lang.Object
org.openrdf.sail.rdbms.iteration.base.RdbmIterationBase<RdbmsResource,SailException>
org.openrdf.sail.rdbms.iteration.RdbmsResourceIteration
org.openrdf.sail.rdbms.iteration.EmptyRdbmsResourceIteration
- All Implemented Interfaces:
- CloseableIteration<RdbmsResource,SailException>, Iteration<RdbmsResource,SailException>
public class EmptyRdbmsResourceIteration
- extends RdbmsResourceIteration
Empty iteration that extends RdbmsResourceIteration.
- Author:
- James Leigh
|
Method Summary |
void |
close()
Closes this iteration, freeing any resources that it is holding. |
boolean |
hasNext()
Returns true if the iteration has more elements. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmptyRdbmsResourceIteration
public EmptyRdbmsResourceIteration()
throws SQLException
- Throws:
SQLException
close
public void close()
throws SailException
- Description copied from interface:
CloseableIteration
- Closes this iteration, freeing any resources that it is holding. If the
iteration has already been closed then invoking this method has no effect.
- Specified by:
close in interface CloseableIteration<RdbmsResource,SailException>- Overrides:
close in class RdbmIterationBase<RdbmsResource,SailException>
- Throws:
SailException
hasNext
public boolean hasNext()
throws SailException
- Description copied from interface:
Iteration
- Returns true if the iteration has more elements. (In other
words, returns true if
Iteration.next() would return an element
rather than throwing a NoSuchElementException.)
- Specified by:
hasNext in interface Iteration<RdbmsResource,SailException>- Overrides:
hasNext in class RdbmIterationBase<RdbmsResource,SailException>
- Returns:
- true if the iteration has more elements.
- Throws:
SailException
Copyright © 2001-2012 Aduna. All Rights Reserved.