Package org.apache.jena.sparql.resultset
Interface ResultSetPeekable
-
- All Superinterfaces:
java.util.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QuerySolutionpeek()Peek at the next query solutionBindingpeekBinding()Peek at the next binding-
Methods inherited from interface org.apache.jena.query.ResultSet
getResourceModel, getResultVars, getRowNumber, hasNext, next, nextBinding, nextSolution, rewindable
-
-
-
-
Method Detail
-
peek
QuerySolution peek()
Peek at the next query solution- Returns:
- Next solution if available
- Throws:
java.util.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:
java.util.NoSuchElementException- Thrown if attempting to peek when there are no further elements
-
-