uk.ac.bbk.dcs.automed.qproc.iql
Class ASGResult

java.lang.Object
  extended by uk.ac.bbk.dcs.automed.qproc.iql.ASGResult

public class ASGResult
extends java.lang.Object

The ASGResult class represents a stream of data being returned from a data source.

Author:
Lucas Zamboulis

Field Summary
private  ASG g
           
protected static java.util.logging.Logger logger
           
private  QueryProcessor qp
           
private  QueryProcessorConfiguration qpc
           
 
Constructor Summary
ASGResult(ASG g, Schema source, Schema[] targets, java.lang.String integrationSemantics, QueryProcessorConfiguration qpc)
          Set up a new QueryProcessor inside a ASGResult.
ASGResult(QueryProcessor qp)
          Pass in a QueryProcessor that has been already had QueryProcessor.processIncrementally(uk.ac.bbk.dcs.automed.qproc.iql.ASG, uk.ac.ic.doc.automed.reps.Schema, uk.ac.ic.doc.automed.reps.Schema[], java.lang.String, uk.ac.bbk.dcs.automed.qproc.QueryProcessorConfiguration) called, and create a ASGResult to contain the result coming back
 
Method Summary
 void finalize()
           
 ASG getQuery()
          Return the partially evaluated query that is being this ASGResult
 QueryProcessor getQueryProcessor()
           
 boolean hasNext()
          Return true if there is another value in this ASGResult that can be returned by hasNext().
static void main(java.lang.String[] args)
           
 java.lang.Object next()
          Return true the next value in the ASGResult.
protected  void process()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static java.util.logging.Logger logger

qpc

private QueryProcessorConfiguration qpc

qp

private QueryProcessor qp

g

private ASG g
Constructor Detail

ASGResult

public ASGResult(QueryProcessor qp)
          throws QProcException
Pass in a QueryProcessor that has been already had QueryProcessor.processIncrementally(uk.ac.bbk.dcs.automed.qproc.iql.ASG, uk.ac.ic.doc.automed.reps.Schema, uk.ac.ic.doc.automed.reps.Schema[], java.lang.String, uk.ac.bbk.dcs.automed.qproc.QueryProcessorConfiguration) called, and create a ASGResult to contain the result coming back

Throws:
QProcException

ASGResult

public ASGResult(ASG g,
                 Schema source,
                 Schema[] targets,
                 java.lang.String integrationSemantics,
                 QueryProcessorConfiguration qpc)
          throws QProcException
Set up a new QueryProcessor inside a ASGResult.

Throws:
QProcException
Method Detail

hasNext

public boolean hasNext()
                throws QProcException
Return true if there is another value in this ASGResult that can be returned by hasNext().

Throws:
QProcException - if some error occurs in processing the query. This can be silence by setting {QueryProcessorConfiguration#setSilentFaiure} to true, in which case false is return when their is an error in the query execution.

getQuery

public ASG getQuery()
Return the partially evaluated query that is being this ASGResult


next

public java.lang.Object next()
                      throws java.util.NoSuchElementException,
                             QProcException
Return true the next value in the ASGResult.

Throws:
java.util.NoSuchElementException - if there is not another value in the ASGResult. You can call hasNext() to determine if there is another value, and hence prevent this execption being thrown.
QProcException - if some error occurs in processing the query. This can be silence by setting {QueryProcessorConfiguration#setSilentFaiure} to true, in which case false is return when their is an error in the query execution.

process

protected void process()
                throws QProcException
Throws:
QProcException

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

getQueryProcessor

public QueryProcessor getQueryProcessor()

main

public static void main(java.lang.String[] args)