org.aksw.commons.sparql.api.core
Class ResultSetClosing
java.lang.Object
org.aksw.commons.sparql.api.core.ResultSetDecorator
org.aksw.commons.sparql.api.core.ResultSetClosing
- All Implemented Interfaces:
- com.hp.hpl.jena.query.ResultSet, Iterator<com.hp.hpl.jena.query.QuerySolution>
public class ResultSetClosing
- extends ResultSetDecorator
- Author:
- Claus Stadler
Date: 7/23/11
Time: 10:54 PM
Unlike JCDB, Jena does not provide the close method on the ResultSet, but on the object that
created the result set. Therefore:
TODO Make this resultset have a reference to its creating class, so that a close method on this
|
Constructor Summary |
ResultSetClosing(com.hp.hpl.jena.query.ResultSet decoratee,
org.aksw.commons.collections.IClosable closable)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultSetClosing
public ResultSetClosing(com.hp.hpl.jena.query.ResultSet decoratee,
org.aksw.commons.collections.IClosable closable)
checkClose
protected boolean checkClose()
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface com.hp.hpl.jena.query.ResultSet- Specified by:
hasNext in interface Iterator<com.hp.hpl.jena.query.QuerySolution>- Overrides:
hasNext in class ResultSetDecorator
remove
public void remove()
- Specified by:
remove in interface Iterator<com.hp.hpl.jena.query.QuerySolution>- Overrides:
remove in class ResultSetDecorator
nextSolution
public com.hp.hpl.jena.query.QuerySolution nextSolution()
- Specified by:
nextSolution in interface com.hp.hpl.jena.query.ResultSet- Overrides:
nextSolution in class ResultSetDecorator
nextBinding
public com.hp.hpl.jena.sparql.engine.binding.Binding nextBinding()
- Specified by:
nextBinding in interface com.hp.hpl.jena.query.ResultSet- Overrides:
nextBinding in class ResultSetDecorator
Copyright © 2011. All Rights Reserved.