com.hp.hpl.jena.sparql.resultset
Interface ResultSetPeekable

All Superinterfaces:
Iterator<QuerySolution>, ResultSet
All Known Implementing Classes:
RDFInput, ResultSetMem, ResultSetPeeking

public interface ResultSetPeekable
extends ResultSet

Interfaces for result sets that allow peeking ahead


Method Summary
 QuerySolution peek()
          Peek at the next query solution
 Binding peekBinding()
          Peek at the next binding
 
Methods inherited from interface com.hp.hpl.jena.query.ResultSet
getResourceModel, getResultVars, getRowNumber, hasNext, next, nextBinding, nextSolution
 
Methods inherited from interface java.util.Iterator
remove
 

Method Detail

peek

QuerySolution peek()
Peek at the next query solution

Returns:
Next solution if available
Throws:
NoSuchElementException - Thrown if attempting to peek when there are no further elements

peekBinding

Binding peekBinding()
Peek at the next binding

Returns:
Next binding if available
Throws:
NoSuchElementException - Thrown if attempting to peek when there are no further elements


Licenced under the Apache License, Version 2.0