|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DSRG.VSA.VSA
View Synchronization Algorithm of DSRG. It only handle the View Definition Evolution.
It includes following functions:
Assume VKB will only represents one Data warehouse. But, VSA can apply to all the data warehouses. Here, I make the VSA class static, it will just provide the algorithm or functions to evolve the VKB and MKB. In later, we maybe create a super class EVE which will contain the VKB and MKB objects.
VSA will give out two view definitions. VA (or View Evolver) will adapt the view from the two view definitions.
Field Summary | |
private double |
cost_IO
the tradeoff parameters for the costs (unit costs) |
private double |
cost_M
the tradeoff parameters for the costs (unit costs) |
private double |
cost_T
the tradeoff parameters for the costs (unit costs) |
(package private) MKB |
mkb
The MKB this VSA working on. |
private double |
rho_attr
the tradeoff parameter for the attributes (therefore also for the extent). |
private double |
rho_quality
the tradeoff parameter for the quality (therefore also for the cost). |
(package private) VKB |
vkb
The VKB this VSA working on. |
Constructor Summary | |
VSA(MKB m,
VKB v)
Constructor of VSA module. |
Method Summary | |
(package private) java.util.Vector |
computeDerived(java.util.Vector rewritingsV)
This function will generate all the derived view definitions including basic view definitions from the Vector of the basic view definitions. |
(package private) java.util.Vector |
createVector(java.util.Enumeration enum)
Create a Vector from Enumeration |
static java.util.Vector |
deepClone(java.util.Vector v)
DeepClone a Vector; |
(package private) java.util.Vector |
dumbSort(java.util.Vector v)
sorts a vector of Version objects by their QC-Values. |
(package private) java.util.Vector |
intersect(java.util.Vector vec1,
java.util.Vector vec2)
Intersect two Vectors |
(package private) java.util.Vector |
POC(View_Definition vd,
Attribute att)
Handle Schema Change: Delete Relation by using POC algorithm. |
(package private) java.util.Vector |
POC(View_Definition vd,
Relation rel)
Handle Schema Change: Delete Relation by using POC algorithm. |
static boolean |
subset(java.util.Vector sbv,
java.util.Vector fsv)
Test if the first one it the subset of the second Vector |
(package private) java.util.Vector |
substract(java.util.Vector sdv,
java.util.Vector sv)
Substract one Vector from another Vector. |
static java.util.Vector |
union(java.util.Vector v1,
java.util.Vector v2)
Return union of two EVEVectors of View_Definitions. |
void |
viewEvolution(Schema_Change chg)
This method will be called when there is a Schema_Change collected by GISL. |
Methods inherited from class java.lang.Object |
|
Field Detail |
MKB mkb
VKB vkb
private double rho_attr
private double rho_quality
private double cost_M
private double cost_T
private double cost_IO
Constructor Detail |
public VSA(MKB m, VKB v)
Method Detail |
public void viewEvolution(Schema_Change chg)
This method will give out two view definitions. One if orginal view definition, the other one is evolved view definition.
It will do three steps:
chg
- Schema_Change which comes from Global IS Layer (GISL), which
will collect the update from IS and send them to VSA.java.util.Vector POC(View_Definition vd, Attribute att)
vd
- View defintion which is going to be evolved.rel
- Relation in MKB which will be dropped.java.util.Vector dumbSort(java.util.Vector v)
java.util.Vector intersect(java.util.Vector vec1, java.util.Vector vec2)
vec1
- First Vectorvec2
- Second Vectorjava.util.Vector createVector(java.util.Enumeration enum)
enum
- Enumerationjava.util.Vector substract(java.util.Vector sdv, java.util.Vector sv)
sdv
- Substracted Vectorsv
- Substract Vectorpublic static boolean subset(java.util.Vector sbv, java.util.Vector fsv)
sbv
- Subset Vectorfsv
- FullsetVectorjava.util.Vector POC(View_Definition vd, Relation rel)
vd
- View defintion which is going to be evolved.rel
- Relation in MKB which will be dropped.java.util.Vector computeDerived(java.util.Vector rewritingsV)
rewritingsV
- basic legal rewritings of view definition.public static java.util.Vector union(java.util.Vector v1, java.util.Vector v2)
public static java.util.Vector deepClone(java.util.Vector v)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |