public class TupleQueryResultBuilder extends TupleQueryResultHandlerBase
| Constructor and Description |
|---|
TupleQueryResultBuilder() |
| Modifier and Type | Method and Description |
|---|---|
TupleQueryResult |
getQueryResult() |
void |
handleSolution(BindingSet bindingSet)
Handles a solution.
|
void |
startQueryResult(List<String> bindingNames)
Indicates the start of a sequence of Solutions.
|
endQueryResult, handleBoolean, handleLinkspublic void startQueryResult(List<String> bindingNames) throws TupleQueryResultHandlerException
QueryResultHandlerstartQueryResult in interface QueryResultHandlerstartQueryResult in class TupleQueryResultHandlerBasebindingNames - An ordered set of binding names.TupleQueryResultHandlerException - If there was an error during the starting of the query result
handler. This exception may be thrown if the
QueryResultHandler.handleBoolean(boolean) method was called before this
method and the handler cannot process both boolean and tuple
results simultaneously.public void handleSolution(BindingSet bindingSet) throws TupleQueryResultHandlerException
QueryResultHandlerhandleSolution in interface QueryResultHandlerhandleSolution in class TupleQueryResultHandlerBasebindingSet - A single set of tuple results, with binding names bound to values.
Each of the binding names in the solution must have previously been
registered with the QueryResultHandler.startQueryResult(List) method.TupleQueryResultHandlerException - If there was an error during the handling of the query solution.
This exception may be thrown if the
QueryResultHandler.handleBoolean(boolean) method was called before this
method and the handler cannot process both boolean and tuple
results simultaneously.public TupleQueryResult getQueryResult()
Copyright © 2001-2015 Aduna. All Rights Reserved.