uk.ac.ic.doc.automed.qproc.refo
Class VirtualReformulationProvider

java.lang.Object
  extended by uk.ac.bbk.dcs.automed.qproc.reformulate.GAVQueryReformulationProvider
      extended by uk.ac.ic.doc.automed.qproc.refo.VirtualReformulationProvider

public class VirtualReformulationProvider
extends GAVQueryReformulationProvider

A 'specialised' reformulation provider for the specialised virtual schema. Basically, since we are querying an SMR overlay network for objects matching a given query we do not know in advance what the objects are. So, this reformulation class must accept the fact that the query's schemes do not exist in the schema.

Author:
Duc Minh Le

Field Summary
private  QueryProcessorConfiguration _qpc
           
 
Fields inherited from class uk.ac.bbk.dcs.automed.qproc.reformulate.GAVQueryReformulationProvider
logger, sourceSchema, targetSchemata, viewmap
 
Constructor Summary
protected VirtualReformulationProvider()
           
  VirtualReformulationProvider(Schema sourceSchema, Schema[] targetSchemata, QueryProcessorConfiguration qpc)
           
 
Method Summary
 void reformulate(ASG g, QueryProcessorConfiguration qpc)
          Simply tags the schemes with the schema prefix.
private  void tempFun(Cell c)
           
 
Methods inherited from class uk.ac.bbk.dcs.automed.qproc.reformulate.GAVQueryReformulationProvider
buildViews, finalize, main
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_qpc

private QueryProcessorConfiguration _qpc
Constructor Detail

VirtualReformulationProvider

protected VirtualReformulationProvider()

VirtualReformulationProvider

public VirtualReformulationProvider(Schema sourceSchema,
                                    Schema[] targetSchemata,
                                    QueryProcessorConfiguration qpc)
                             throws QueryReformulationException
Parameters:
sourceschema - the source schema
targetschemata - the target schemata
qpc - the input configuration
Throws:
QueryReformulationException - if there was a problem building the view definitions of the source schema constructs over target schema constructs
Method Detail

reformulate

public void reformulate(ASG g,
                        QueryProcessorConfiguration qpc)
                 throws QueryReformulationException
Simply tags the schemes with the schema prefix.

Overrides:
reformulate in class GAVQueryReformulationProvider
Throws:
QueryReformulationException

tempFun

private void tempFun(Cell c)