org.openrdf.query
Interface TupleQueryResultHandler

All Known Subinterfaces:
TupleQueryResultWriter
All Known Implementing Classes:
BinaryQueryResultWriter, DAWGTestResultSetWriter, SPARQLResultsJSONWriter, SPARQLResultsXMLWriter, TupleQueryResultBuilder, TupleQueryResultHandlerBase

public interface TupleQueryResultHandler

An interface defining methods related to handling sequences of Solutions.


Method Summary
 void endQueryResult()
          Indicates the end of a sequence of solutions.
 void handleSolution(BindingSet bindingSet)
          Handles a solution.
 void startQueryResult(List<String> bindingNames)
          Indicates the start of a sequence of Solutions.
 

Method Detail

startQueryResult

void startQueryResult(List<String> bindingNames)
                      throws TupleQueryResultHandlerException
Indicates the start of a sequence of Solutions. The supplied bindingNames are an indication of the values that are in the Solutions. For example, a SeRQL query like select X, Y from {X} P {Y} will have binding names X and Y.

Parameters:
bindingNames - An ordered set of binding names.
Throws:
TupleQueryResultHandlerException

endQueryResult

void endQueryResult()
                    throws TupleQueryResultHandlerException
Indicates the end of a sequence of solutions.

Throws:
TupleQueryResultHandlerException

handleSolution

void handleSolution(BindingSet bindingSet)
                    throws TupleQueryResultHandlerException
Handles a solution.

Throws:
TupleQueryResultHandlerException


Copyright © 2001-2009 Aduna. All Rights Reserved.