net.fortytwo.sesametools
Class CloseableTupleQueryResult

java.lang.Object
  extended by net.fortytwo.sesametools.CloseableTupleQueryResult
All Implemented Interfaces:
info.aduna.iteration.CloseableIteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>, info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>, org.openrdf.query.QueryResult<org.openrdf.query.BindingSet>, org.openrdf.query.TupleQueryResult

public class CloseableTupleQueryResult
extends Object
implements org.openrdf.query.TupleQueryResult

Auto-closing tuple query result.

Author:
Peter Ansell p_ansell@yahoo.com

Constructor Summary
CloseableTupleQueryResult(org.openrdf.repository.RepositoryConnection connection, org.openrdf.query.TupleQueryResult result)
           
 
Method Summary
 void close()
           
 List<String> getBindingNames()
           
 boolean hasNext()
           
 org.openrdf.query.BindingSet next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloseableTupleQueryResult

public CloseableTupleQueryResult(org.openrdf.repository.RepositoryConnection connection,
                                 org.openrdf.query.TupleQueryResult result)
Method Detail

getBindingNames

public List<String> getBindingNames()
Specified by:
getBindingNames in interface org.openrdf.query.TupleQueryResult

close

public void close()
           throws org.openrdf.query.QueryEvaluationException
Specified by:
close in interface info.aduna.iteration.CloseableIteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>
Throws:
org.openrdf.query.QueryEvaluationException

hasNext

public boolean hasNext()
                throws org.openrdf.query.QueryEvaluationException
Specified by:
hasNext in interface info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>
Throws:
org.openrdf.query.QueryEvaluationException

next

public org.openrdf.query.BindingSet next()
                                  throws org.openrdf.query.QueryEvaluationException
Specified by:
next in interface info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>
Throws:
org.openrdf.query.QueryEvaluationException

remove

public void remove()
            throws org.openrdf.query.QueryEvaluationException
Specified by:
remove in interface info.aduna.iteration.Iteration<org.openrdf.query.BindingSet,org.openrdf.query.QueryEvaluationException>
Throws:
org.openrdf.query.QueryEvaluationException


Copyright © 2013. All Rights Reserved.