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, handleLinks
public void startQueryResult(List<String> bindingNames) throws TupleQueryResultHandlerException
QueryResultHandler
startQueryResult
in interface QueryResultHandler
startQueryResult
in class AbstractTupleQueryResultHandler
bindingNames
- 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
QueryResultHandler
handleSolution
in interface QueryResultHandler
handleSolution
in class AbstractTupleQueryResultHandler
bindingSet
- 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-2019 Eclipse Foundation. All Rights Reserved.