org.openrdf.jena
Class ResultSetImpl

java.lang.Object
  extended by org.openrdf.jena.ResultSetImpl
All Implemented Interfaces:
com.hp.hpl.jena.query.ResultSet, Iterator

public class ResultSetImpl
extends Object
implements com.hp.hpl.jena.query.ResultSet

Author:
Daniel Burkhart Implements the ResultSet Interface, that is returned from several query execution methods, e.g. in class QueryExecutionSesame

Field Summary
private  int current
           
private  Vector data
           
private  List resultVars
          the variable names for the projection
 
Constructor Summary
ResultSetImpl(List resultVars)
           
 
Method Summary
 void add(Object o)
           
 List getResultVars()
           
 int getRowNumber()
           
 boolean hasNext()
           
 boolean isDistinct()
           
 boolean isOrdered()
           
 Object next()
           
 com.hp.hpl.jena.query.QuerySolution nextSolution()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private Vector data

current

private int current

resultVars

private List resultVars
the variable names for the projection

Constructor Detail

ResultSetImpl

public ResultSetImpl(List resultVars)
Method Detail

add

public void add(Object o)

hasNext

public boolean hasNext()
Specified by:
hasNext in interface com.hp.hpl.jena.query.ResultSet
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface com.hp.hpl.jena.query.ResultSet
Specified by:
next in interface Iterator

nextSolution

public com.hp.hpl.jena.query.QuerySolution nextSolution()
Specified by:
nextSolution in interface com.hp.hpl.jena.query.ResultSet

getRowNumber

public int getRowNumber()
Specified by:
getRowNumber in interface com.hp.hpl.jena.query.ResultSet

getResultVars

public List getResultVars()
Specified by:
getResultVars in interface com.hp.hpl.jena.query.ResultSet

isOrdered

public boolean isOrdered()
Specified by:
isOrdered in interface com.hp.hpl.jena.query.ResultSet

isDistinct

public boolean isDistinct()
Specified by:
isDistinct in interface com.hp.hpl.jena.query.ResultSet

remove

public void remove()
Specified by:
remove in interface Iterator