|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.bbk.dcs.automed.qproc.iql.ASGResult
public class ASGResult
The ASGResult class represents a stream of data being returned from a data source.
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 |
---|
protected static java.util.logging.Logger logger
private QueryProcessorConfiguration qpc
private QueryProcessor qp
private ASG g
Constructor Detail |
---|
public ASGResult(QueryProcessor qp) throws QProcException
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
QProcException
public ASGResult(ASG g, Schema source, Schema[] targets, java.lang.String integrationSemantics, QueryProcessorConfiguration qpc) throws QProcException
QueryProcessor
inside a ASGResult
.
QProcException
Method Detail |
---|
public boolean hasNext() throws QProcException
hasNext()
.
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.public ASG getQuery()
public java.lang.Object next() throws java.util.NoSuchElementException, QProcException
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.protected void process() throws QProcException
QProcException
public void finalize()
finalize
in class java.lang.Object
public QueryProcessor getQueryProcessor()
public static void main(java.lang.String[] args)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |