de.fuberlin.wiwiss.d2rq.find
Class QueryCombiner

java.lang.Object
  extended byde.fuberlin.wiwiss.d2rq.find.QueryCombiner

public class QueryCombiner
extends java.lang.Object

Container for TripleQuery instances. TripleQueries can be added using the add(de.fuberlin.wiwiss.d2rq.find.TripleQuery) method. The QueryCombiner will combine multiple queries into a single SQL statement, if possible. After adding all queries, a D2RQResultIterator can be obtained from the getResultIterator() method.

History:
08-03-2004: Initial version of this class.

Version:
V0.2
Author:
Richard Cyganiak

Field Summary
private  java.util.Collection compatibleQueries
           
 
Constructor Summary
QueryCombiner()
           
 
Method Summary
 void add(TripleQuery newQuery)
           
 D2RQResultIterator getResultIterator()
           
private  SQLStatementMaker getSQL(java.util.List queries)
           
private  TripleResultSet getTripleResultSet(java.util.List queries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compatibleQueries

private java.util.Collection compatibleQueries
Constructor Detail

QueryCombiner

public QueryCombiner()
Method Detail

add

public void add(TripleQuery newQuery)

getResultIterator

public D2RQResultIterator getResultIterator()

getTripleResultSet

private TripleResultSet getTripleResultSet(java.util.List queries)

getSQL

private SQLStatementMaker getSQL(java.util.List queries)