com.hp.hpl.jena.query
Interface ResultSet

All Superinterfaces:
java.util.Iterator

public interface ResultSet
extends java.util.Iterator

Results from a query in a table-like manner for SELECT queries. 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: ResultSet.java,v 1.11 2005/09/20 17:27:40 andy_seaborne Exp $
Author:
Andy Seaborne
See Also:
Query, QueryExecution, QuerySolution, ResultSet

Method Summary
 java.util.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?
 boolean isDistinct()
          Is this ResultSet known to be distinct?
 boolean isOrdered()
          Is this ResultSet known to be ordered?
 java.lang.Object next()
          Moves onto the next result possibility.
 QuerySolution nextSolution()
          Moves onto the next result possibility.
 
Methods inherited from interface java.util.Iterator
remove
 

Method Detail

hasNext

boolean hasNext()
Is there another possibility?

Specified by:
hasNext in interface java.util.Iterator

next

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

Specified by:
next in interface java.util.Iterator

nextSolution

QuerySolution nextSolution()
Moves onto the next result possibility.


getRowNumber

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


getResultVars

java.util.List getResultVars()
Get the variable names for the projection


isOrdered

boolean isOrdered()
Is this ResultSet known to be ordered? Usually, this means a query involved ORDER BY or a ResultSet read from a serialization had indexing information. (The ordering does not necessaryly have to be total)


isDistinct

boolean isDistinct()
Is this ResultSet known to be distinct? Usually, this means a query involved DISTINCT



Copyright © 2004, 2005 Hewlett-Packard Development Company, LP