Interface QueryResultHandler

All Known Subinterfaces:
BooleanQueryResultHandler, BooleanQueryResultWriter, QueryResultWriter, TupleQueryResultHandler, TupleQueryResultWriter
All Known Implementing Classes:
AbstractQueryResultWriter, AbstractTupleQueryResultHandler, BackgroundTupleResult, BinaryQueryResultWriter, BooleanTextWriter, ConsoleQueryResultWriter, DAWGTestResultSetWriter, QueryResultCollector, SPARQLBooleanJSONWriter, SPARQLBooleanXMLWriter, SPARQLResultsCSVWriter, SPARQLResultsJSONWriter, SPARQLResultsTSVWriter, SPARQLResultsXMLWriter, SPARQLStarResultsJSONWriter, SPARQLStarResultsTSVWriter, SPARQLStarResultsXMLWriter, TupleQueryResultBuilder

public interface QueryResultHandler
The super class of all handlers for processing query results.

This interface contains methods for optionally processing both boolean and tuple results sets simultaneously, but there are no guarantees that an implementation will be able to process these values together. If a method is not supported then an UnsupportedOperationException will be thrown to indicate this failure. This failure may be prevented by checking for whether the class implements BooleanQueryResultHandler or TupleQueryResultHandler, for boolean and tuple results support respectively.

If both boolean and tuple results are supported but they are not able to to be processed simultaneously, then a checked exception, either BooleanQueryResultHandlerException or TupleQueryResultHandlerException, will be thrown to indicate this failure when the relevant methods are called.

Author:
Peter Ansell