com.hp.hpl.jena.sparql.resultset
Class SortedResultSet

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

public class SortedResultSet
extends Object
implements ResultSet

Sort a result set.


Constructor Summary
SortedResultSet(ResultSet rs, List<SortCondition> conditions)
           
 
Method Summary
 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 isOrdered()
           
 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
 

Constructor Detail

SortedResultSet

public SortedResultSet(ResultSet rs,
                       List<SortCondition> conditions)
Method Detail

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>

nextBinding

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

Specified by:
nextBinding in interface ResultSet

nextSolution

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

Specified by:
nextSolution 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()

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>


Licenced under the Apache License, Version 2.0