public class TupleQueryResultBuilder extends AbstractTupleQueryResultHandler
| 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 AbstractTupleQueryResultHandlerbindingNames - 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 AbstractTupleQueryResultHandlerbindingSet - 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 © 2015-2017 Eclipse Foundation. All Rights Reserved.