com.hp.hpl.jena.sparql.resultset
Class JSONInput.JSONResultSet

java.lang.Object
  extended by com.hp.hpl.jena.sparql.resultset.JSONInput.JSONResultSet
All Implemented Interfaces:
ResultSet, Iterator<QuerySolution>
Enclosing class:
JSONInput

public static class JSONInput.JSONResultSet
extends Object
implements ResultSet


Method Summary
 boolean getBooleanResult()
           
 com.hp.hpl.jena.rdf.model.Model getResourceModel()
          Get the model that resources are created against - may be null
 List<String> getResultVars()
          Get the variable names for the projection.
 int getRowNumber()
          Return the "row" number for the current iterator item
 boolean hasNext()
          Is there another result?
 boolean isDistinct()
           
 boolean isOrdered()
           
 boolean isResultSet()
           
 QuerySolution next()
          Moves onto the next result.
 Binding nextBinding()
          Move to the next binding (low level)
 QuerySolution nextSolution()
          Moves onto the next result (legacy - use .next()).
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isResultSet

public boolean isResultSet()

getBooleanResult

public boolean getBooleanResult()

hasNext

public boolean hasNext()
Description copied from interface: ResultSet
Is there another result?

Specified by:
hasNext in interface ResultSet
Specified by:
hasNext in interface Iterator<QuerySolution>

next

public QuerySolution next()
Description copied from interface: ResultSet
Moves onto the next result.

Specified by:
next in interface ResultSet
Specified by:
next in interface Iterator<QuerySolution>

nextSolution

public QuerySolution nextSolution()
Description copied from interface: ResultSet
Moves onto the next result (legacy - use .next()).

Specified by:
nextSolution in interface ResultSet

nextBinding

public Binding nextBinding()
Description copied from interface: ResultSet
Move to the next binding (low level)

Specified by:
nextBinding in interface ResultSet

getRowNumber

public int getRowNumber()
Description copied from interface: ResultSet
Return the "row" number for the current iterator item

Specified by:
getRowNumber in interface ResultSet

getResultVars

public List<String> getResultVars()
Description copied from interface: ResultSet
Get the variable names for the projection. Not all query solutions from a result have every variable defined.

Specified by:
getResultVars in interface ResultSet

isOrdered

public boolean isOrdered()

isDistinct

public boolean isDistinct()

getResourceModel

public com.hp.hpl.jena.rdf.model.Model getResourceModel()
Description copied from interface: ResultSet
Get the model that resources are created against - may be null

Specified by:
getResourceModel in interface ResultSet

remove

public void remove()
Specified by:
remove in interface Iterator<QuerySolution>


Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010 Epimorphics Ltd.