com.hp.hpl.jena.rdql
Interface QueryResults

All Superinterfaces:
Iterator
All Known Subinterfaces:
QueryResultsRewindable
All Known Implementing Classes:
QueryResultsMem, QueryResultsStream

public interface QueryResults
extends Iterator

Results from a query in a "ResultSet"-like manner. Each row corresponds to a set of bindings which fulfil the conditions of the query. Access to the results is by variable name.

Version:
$Id: QueryResults.java,v 1.8 2004/05/28 16:56:15 andy_seaborne Exp $
Author:
Andy Seaborne
See Also:
Query, QueryEngine, ResultBindingImpl, QueryResultsStream

Method Summary
 void close()
          Close the results iterator and stop query evaluation as soon as convenient.
 List getAll()
          Deprecated. Use QueryResultsMem to get all the results of a query.
 List getResultVars()
          Get the variable names for the projection
 int getRowNumber()
          Return the "row" number for the current iterator item
 boolean hasNext()
          Is there another possibility?
 Object next()
          Moves onto the next result possibility.
 void remove()
           
 

Method Detail

remove

void remove()
            throws UnsupportedOperationException
Specified by:
remove in interface Iterator
Throws:
UnsupportedOperationException - Always thrown.

hasNext

boolean hasNext()
Is there another possibility?

Specified by:
hasNext in interface Iterator

next

Object next()
Moves onto the next result possibility. The returned object should be of class ResultBindingImpl

Specified by:
next in interface Iterator

close

void close()
Close the results iterator and stop query evaluation as soon as convenient. It is important to close query result iterators inorder to release resources such as working memory and to stop the query execution. Some storage subsystems require explicit ends of operations and this operation will cause those to be called where necessary.


getRowNumber

int getRowNumber()
Return the "row" number for the current iterator item


getResultVars

List getResultVars()
Get the variable names for the projection


getAll

List getAll()
Deprecated. Use QueryResultsMem to get all the results of a query.

Convenience function to consume a query. Returns a list of ResultBindingImpls.

Returns:
List


Copyright © 2000, 2001, 2002, 2003, 2004 Hewlett-Packard Development Company, LP