org.aksw.commons.sparql.api.core
Class ResultSetClosing

java.lang.Object
  extended by org.aksw.commons.sparql.api.core.ResultSetDecorator
      extended by 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


Field Summary
 
Fields inherited from class org.aksw.commons.sparql.api.core.ResultSetDecorator
decoratee
 
Constructor Summary
ResultSetClosing(com.hp.hpl.jena.query.ResultSet decoratee, org.aksw.commons.collections.IClosable closable)
           
 
Method Summary
protected  boolean checkClose()
           
 boolean hasNext()
           
 com.hp.hpl.jena.sparql.engine.binding.Binding nextBinding()
           
 com.hp.hpl.jena.query.QuerySolution nextSolution()
           
 void remove()
           
 
Methods inherited from class org.aksw.commons.sparql.api.core.ResultSetDecorator
getResourceModel, getResultVars, getRowNumber, next
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetClosing

public ResultSetClosing(com.hp.hpl.jena.query.ResultSet decoratee,
                        org.aksw.commons.collections.IClosable closable)
Method Detail

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.