|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.rodex.qproc.QueryMediator
public class QueryMediator
QueryMediator.java This class is the interface to the query processing and execution engine. Its job is to cordinate different components to execute user queries (local and P2P)
Field Summary | |
---|---|
static int |
LANG_STANDARD
|
static int |
LANG_XQUERY
|
Method Summary | |
---|---|
java.lang.String |
getDebugInf()
Debug information |
java.lang.String |
getDebugResult()
Debug result |
java.lang.String |
getExternalQuery()
Getter methods for various query ( ASG ) objects |
java.lang.String |
getFormulatedQuery()
|
java.lang.String |
getLogicalOptimisedQuery()
|
static QueryMediator |
getMediatorInstance()
Create a singleton mediator object |
java.lang.String |
getPhysicalOptimisedQuery()
|
java.lang.String |
getProcessedQuery()
|
void |
getSODefinition(QuerySubGoal qsg)
Get query definitions for a schema object. |
java.util.List |
performQuery(QueryDescription qd,
Schema srcSchema,
Schema[] targetSchemas)
Overloading method to perform a query given only the name of the public schema |
java.util.List |
performQuery(QueryDescription qd,
java.lang.String schemaName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LANG_STANDARD
public static final int LANG_XQUERY
Method Detail |
---|
public static QueryMediator getMediatorInstance()
public java.util.List performQuery(QueryDescription qd, java.lang.String schemaName) throws QueryProcessingException, AutoMedException
QueryProcessingException
AutoMedException
public java.util.List performQuery(QueryDescription qd, Schema srcSchema, Schema[] targetSchemas) throws QueryProcessingException, AutoMedException
qd
- the QueryDescription
objectuseCache
- boolean value to indicate whether or not to use cache for rewritingoptimisedQuery
- boolean value to optimise query or notrewriteQuery
- boolean value to rewrite query or notlang
- query language type usedsrcSchema
- the Schema
upon which the query is postedtargetSchemas
- an array of data-source Schema
s to which query is
actually sent for execution. Note that targetSchemas is a subset
of the actual data sources of srcSchema
QueryProcessingException
AutoMedException
public void getSODefinition(QuerySubGoal qsg) throws IntegrityException, DataSourceException
Schema
object,
retrieves the associated AutoMedWrapper
object to this schema and invoke the
AutoMedWrapper.getSODefinition()
method to do do the job
IntegrityException
DataSourceException
public java.lang.String getExternalQuery()
ASG
) objects
public java.lang.String getFormulatedQuery()
public java.lang.String getProcessedQuery()
public java.lang.String getLogicalOptimisedQuery()
public java.lang.String getPhysicalOptimisedQuery()
public java.lang.String getDebugInf()
public java.lang.String getDebugResult()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |