|
||||||||
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.CompositeViewMap
public abstract class CompositeViewMap
Class containing common functionality for creating composite views from atomic views. Composite views are constructed from ADD, EXTEND, DELETE, CONTRACT, RENAME and IDENTITY atomic views. For LAV and BAV techniques, the ADD and EXTEND atomic views need to be processed further before these could be used to form composite views. Currently we used Inverse Rules algorithm as described in the following paper:
P.J. McBrien and A. Poulovassilis. P2P query reformulation over Both-as-View data transformation rules. In Proc of DBISP2P 2006.
Field Summary | |
---|---|
protected static java.util.Map |
_instanceCache
|
protected static java.util.logging.Logger |
_logger
|
protected java.lang.String |
_name
|
protected QueryProcessorConfiguration |
_qpc
|
protected Schema |
_sourceSchema
|
protected Schema |
_targetSchema
|
protected java.util.Map |
_viewMap
|
Constructor Summary | |
---|---|
protected |
CompositeViewMap(Schema source,
Schema target,
QueryProcessorConfiguration qpc)
Constructs a new CompositeViewMap object for the input source and
target schemas, then populates it. |
Method Summary | |
---|---|
protected abstract void |
buildViews()
|
protected void |
buildViews(java.util.Map[] maps)
|
protected Cell |
composeView(java.util.Map[] maps,
ViewKey vk)
|
static java.lang.String |
computeName(Schema source,
Schema target,
QueryProcessorConfiguration qpc)
|
protected java.util.Set |
getFinalConstructs()
|
static CompositeViewMap |
getInstance(Schema source,
Schema target,
QueryProcessorConfiguration qpc)
|
java.lang.String |
getName()
|
Schema |
getSourceSchema()
|
Schema |
getTargetSchema()
|
java.util.Map |
getViewMap()
|
protected void |
populateViewMap(Schema schema)
Populates the LHS of the viewmap with schemes from source schema. |
protected boolean |
searchAndReplace(Cell c,
java.util.Map[] maps,
java.util.Set vkSet)
Goes through an IQL query and replaces each scheme encountered with its view definition found in the AtomicViewMap s |
static void |
showInstanceCache()
|
protected void |
showViewMap()
|
protected void |
updateSchemaRef(Cell n,
Schema aSchema)
Forces the schema reference for a Cell tree to the given schema. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.util.logging.Logger _logger
protected Schema _sourceSchema
protected Schema _targetSchema
protected java.lang.String _name
protected java.util.Map _viewMap
protected static java.util.Map _instanceCache
protected QueryProcessorConfiguration _qpc
Constructor Detail |
---|
protected CompositeViewMap(Schema source, Schema target, QueryProcessorConfiguration qpc)
CompositeViewMap
object for the input source and
target schemas, then populates it.
source
- the input source schematarget
- the input target schemaqpc
- Query processor configuration
BuildViewException
- if a problem is encountered during the population of the mapMethod Detail |
---|
public static CompositeViewMap getInstance(Schema source, Schema target, QueryProcessorConfiguration qpc) throws BuildViewException
source
- source schematarget
- target schemaqpc
- Query processor configuration
CompositeViewMap
specified by the input parameters -
if one exists in the internal cache, a reference to it is
returned, otherwise a new CompositeViewMap
is created
based on the input parameters
BuildViewException
public static java.lang.String computeName(Schema source, Schema target, QueryProcessorConfiguration qpc)
public java.util.Map getViewMap()
public Schema getTargetSchema()
public Schema getSourceSchema()
public java.lang.String getName()
protected abstract void buildViews() throws BuildViewException
BuildViewException
protected void buildViews(java.util.Map[] maps) throws BuildViewException
BuildViewException
protected java.util.Set getFinalConstructs()
protected boolean searchAndReplace(Cell c, java.util.Map[] maps, java.util.Set vkSet) throws BuildViewException
AtomicViewMap
s
c
- the root of the IQL query
BuildViewException
protected Cell composeView(java.util.Map[] maps, ViewKey vk) throws NotFoundException
NotFoundException
protected void populateViewMap(Schema schema)
schema
- the source schemaprotected void updateSchemaRef(Cell n, Schema aSchema)
n
- Root cell of a comprehension or Cell tree.aSchema
- New schema reference.protected void showViewMap()
public static void showInstanceCache()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |