- All Superinterfaces:
Iterator<QuerySolution>
,ResultSet
- All Known Implementing Classes:
RDFInput
,ResultSetMem
,ResultSetPeeking
Interfaces for result sets that allow peeking ahead
-
Method Summary
Modifier and TypeMethodDescriptionpeek()
Peek at the next query solutionPeek at the next bindingMethods inherited from interface org.apache.jena.query.ResultSet
close, forEachRemaining, getResourceModel, getResultVars, getRowNumber, hasNext, materialise, next, nextBinding, nextSolution, rewindable
-
Method Details
-
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
-