|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.bbk.dcs.automed.qproc.TempQueryProcessor
public class TempQueryProcessor
The new query processor class provides query reformulation for three techniques - GAV, LAV and BAV. Also this class provides functionality for Range semantics, i.e., query reformulation using the lower bound, upper bound or the range. A user can provide integration semantics while issuing a query over multiple target schemas, thus overriding the integration semantics derived from the transformation pathways.
| Field Summary | |
|---|---|
protected java.util.logging.Logger |
_logger
|
protected long |
afterEv
|
protected long |
afterLO
|
protected long |
afterQAFP
|
protected long |
afterQR
|
protected long |
afterSubmit
|
protected long |
afterTranslation
|
protected long |
beforeTranslation
|
| Constructor Summary | |
|---|---|
TempQueryProcessor()
Create an instance of the Query Processor. |
|
| Method Summary | |
|---|---|
protected void |
loggingInit()
|
static void |
main(java.lang.String[] args)
Shows how to use the qproc framework |
void |
process(ASG g,
Schema source,
Schema[] targets,
java.lang.String integrationSemantics,
QueryProcessorConfiguration qpc)
Main processing method for issuing a query. |
java.lang.String |
process(java.lang.String query,
AutoMedWrapper aw,
Schema source,
Schema[] targets,
java.lang.String integrationSemantics,
QueryProcessorConfiguration qpc)
If the query language is other than IQL, then use this method to process the query. |
void |
showPerformance(QueryProcessorConfiguration qpc)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.logging.Logger _logger
protected long afterSubmit
protected long afterQR
protected long afterLO
protected long afterQAFP
protected long afterEv
protected long beforeTranslation
protected long afterTranslation
| Constructor Detail |
|---|
public TempQueryProcessor()
throws QProcException
QProcException| Method Detail |
|---|
public java.lang.String process(java.lang.String query,
AutoMedWrapper aw,
Schema source,
Schema[] targets,
java.lang.String integrationSemantics,
QueryProcessorConfiguration qpc)
throws QProcException
QProcException
public void process(ASG g,
Schema source,
Schema[] targets,
java.lang.String integrationSemantics,
QueryProcessorConfiguration qpc)
throws QProcException
g - The input query passed as an ASG.source - The global or the source schema on which the query is issued.targets - Array of target or data source schemas. For SQL data sources,
pass the AutoMed oriented schema.integrationSemantics - Semantics of how to combine the results from data sources.
Given a set of data sources, e.g. DS1 , DS2 and DS3 , a user
has the following ways of specifying the integration semantics
to an instance of GQP:
qpc - QueryProcessorConfiguration providing the environment
settings for the query processing.
QProcException - LAV query reformulation may fail due to limitations of the
LAV reformulation technique. In such a case use the following
code to check if the exception is because of LAV or not.
if ((e.getCause() instanceof LAVQueryReformulationException)
&& (qpc.getReformulationSemantics() == QueryProcessorConfiguration.REFORMULATION_LAV_INV_RULES)) {
System.out.println("###LAV Issue:");
} else {
System.out.println("###Some Other Issue:");
}
public void showPerformance(QueryProcessorConfiguration qpc)
protected void loggingInit()
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||