public abstract class ResultSetConsumer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResultSetConsumer.Chaining
Helper implemenation of ResutSetConsumer that can be used to wrap another ResultSetConsumer
- useful for filtering implementations
|
static class |
ResultSetConsumer.HasResult
Helper implementation that allows you to find out simply if there were any results in the ResultSet
|
| Constructor and Description |
|---|
ResultSetConsumer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
endProcessing()
Method to notify the consumer that all QuerySolutions have been processed
|
protected List<String> |
getResultVars()
Helper method to allow an implementation to get the var names from the resultset
|
protected abstract void |
processQuerySolution(org.apache.jena.query.QuerySolution qs)
Method for processing each QuerySolution - must be overridden in each implementation
|
void |
processResultSet(org.apache.jena.query.ResultSet rs)
Helper method that ensures the start / end processing is done correctly
|
protected void |
startProcessing()
Method to notify the consumer that a ResultSet is valid and is about to be processed
|
protected abstract void processQuerySolution(org.apache.jena.query.QuerySolution qs)
qs - - the current query solutionprotected void startProcessing()
protected void endProcessing()
public void processResultSet(org.apache.jena.query.ResultSet rs)
rs - - the ResultSet to processCopyright © 2021. All rights reserved.