|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.bbk.dcs.automed.qproc.reformulate.GAVQueryReformulationProvider
public class GAVQueryReformulationProvider
The query reformulator accepts an IQL query on the source schema and rewrites it in terms of constructs of the target schemata.
To do this, on construction, the query reformulator traverses the pathways from the source schema to the target schemata and builds a view definition over target schema constructs for each source schema construct.
| Field Summary | |
|---|---|
protected java.util.logging.Logger |
logger
|
protected Schema |
sourceSchema
|
protected Schema[] |
targetSchemata
|
protected java.util.HashMap |
viewmap
Viewmap contains the constructs of the source schema in the LHS and the IQL view of each construct of the LHS in the RHS. |
| Constructor Summary | |
|---|---|
protected |
GAVQueryReformulationProvider()
|
|
GAVQueryReformulationProvider(Schema sourceschema,
Schema[] targetschemata)
Deprecated. use GAVQueryReformulationProvider(Schema, Schema[], QueryProcessorConfiguration) instead |
|
GAVQueryReformulationProvider(Schema sourceSchema,
Schema[] targetSchemata,
QueryProcessorConfiguration qpc)
|
| Method Summary | |
|---|---|
protected void |
buildViews()
Traverses BAV pathways and builds GAV views. |
void |
finalize()
|
static void |
main(java.lang.String[] args)
|
void |
reformulate(ASG g,
QueryProcessorConfiguration qrc)
Reformulates the query represented by the ASG g according to the view defintions it has stored. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.logging.Logger logger
protected Schema sourceSchema
protected Schema[] targetSchemata
protected java.util.HashMap viewmap
| Constructor Detail |
|---|
protected GAVQueryReformulationProvider()
public GAVQueryReformulationProvider(Schema sourceschema,
Schema[] targetschemata)
throws QueryReformulationException
GAVQueryReformulationProvider(Schema, Schema[], QueryProcessorConfiguration) instead
QueryReformulationException
public GAVQueryReformulationProvider(Schema sourceSchema,
Schema[] targetSchemata,
QueryProcessorConfiguration qpc)
throws QueryReformulationException
sourceschema - the source schematargetschemata - the target schemataqpc - the input configuration
QueryReformulationException - if there was a problem building the view definitions of the source schema constructs over target schema
constructs| Method Detail |
|---|
protected void buildViews()
throws QueryReformulationException
QueryReformulationException
IntegrityException
NotFoundException
public void reformulate(ASG g,
QueryProcessorConfiguration qrc)
throws QueryReformulationException
QueryReformulationExceptionpublic void finalize()
finalize in class java.lang.Object
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 | ||||||||