org.openrdf.query.impl
Class TupleQueryResultBuilder

java.lang.Object
  extended by org.openrdf.query.TupleQueryResultHandlerBase
      extended by org.openrdf.query.impl.TupleQueryResultBuilder
All Implemented Interfaces:
TupleQueryResultHandler

public class TupleQueryResultBuilder
extends TupleQueryResultHandlerBase

A TupleQueryResultHandler that can be used to create a TupleQueryResult object.


Constructor Summary
TupleQueryResultBuilder()
           
 
Method Summary
 TupleQueryResult getQueryResult()
           
 void handleSolution(BindingSet bindingSet)
          Handles a solution.
 void startQueryResult(List<String> bindingNames)
          Indicates the start of a sequence of Solutions.
 
Methods inherited from class org.openrdf.query.TupleQueryResultHandlerBase
endQueryResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleQueryResultBuilder

public TupleQueryResultBuilder()
Method Detail

startQueryResult

public void startQueryResult(List<String> bindingNames)
                      throws TupleQueryResultHandlerException
Description copied from interface: TupleQueryResultHandler
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.

Specified by:
startQueryResult in interface TupleQueryResultHandler
Overrides:
startQueryResult in class TupleQueryResultHandlerBase
Parameters:
bindingNames - An ordered set of binding names.
Throws:
TupleQueryResultHandlerException

handleSolution

public void handleSolution(BindingSet bindingSet)
                    throws TupleQueryResultHandlerException
Description copied from interface: TupleQueryResultHandler
Handles a solution.

Specified by:
handleSolution in interface TupleQueryResultHandler
Overrides:
handleSolution in class TupleQueryResultHandlerBase
Throws:
TupleQueryResultHandlerException

getQueryResult

public TupleQueryResult getQueryResult()


Copyright © 2001-2007 Aduna. All Rights Reserved.