All Packages Class Hierarchy This Package Previous Next Index
Class SWEEP.SWEEP
java.lang.Object
|
+----java.lang.Thread
|
+----SWEEP.SWEEP
- public class SWEEP
- extends Thread
- implements Serializable
SWEEP object will maintain one view in it. It will provide a data update
receiver to outside, where you can send data update to the SWEEP object.
It requires:
1. View Definition either in ESQL format, or an object of ViewDefinition in VKB.
2. Data update which will affect this view.
It will provice:
1. a DataUpdateReceiver to accept the data update.
It will DO:
Maintain the real extend of that view in the database.
-
dur
- DataUpdateReceiver of this SWEEP Object.
-
dw
- Data warehouse process of this view definition.
-
FifoChannel
- FifoChannel used to create communication between ISs and DW.
-
ISnum
- Number of ISs.
-
isps
- Array of ISProcess
-
SWEEP(View, MKB)
- Create a SWEEP object from View object in EVEDemo.MW package.
-
SWEEP(View_Definition)
- Create a SWEEP object from View_definition class in EVEDemo.VKB package.
-
checkAttrList(Vector, String)
- check if a specific attribute is already in an vector of attribute
-
getAttribute(Vector, String)
- Get Attribute object of SWEEP from the AttrList (Vector) of SWEEP Attribute
of has the specific name in format R.A
-
getAttrs(Vector, Relation)
- Get the Attributes of one relation in the project list.
-
getJCs(JoinList, Relation)
- Get a list of join conditions related to a specific relation from
the current viewdefinition of this SWEEP object.
-
getLocalAttrName(JoinCondition, Relation)
- Get Local Attribute Name of this join condition of specific relation name.
-
getReceiver()
- Get Receiver from SWEEP.
-
getRelation(Relation[], String)
- Get the SWEEP Relation object from a list of relations.
-
getRemoteAttrName(JoinCondition, Relation)
- Get Remote Attribute Name of this join condition of specific relation name.
-
getRemoteRelName(JoinCondition, Relation)
- Get Remote Relation Name of this Join Condition of Specific Relation name.
-
init(View_Definition)
- Init the SWEEP object.
-
run()
- Run the CreateUpdateFile part.
dur
DataUpdateReceiver dur
- DataUpdateReceiver of this SWEEP Object. The object will be used by
Andreas from the middle layer to send the DU down.
FifoChannel
MultiQueue FifoChannel
- FifoChannel used to create communication between ISs and DW.
dw
DWProcess dw
- Data warehouse process of this view definition.
isps
ISProcess isps[]
- Array of ISProcess
ISnum
int ISnum
- Number of ISs.
SWEEP
public SWEEP(View v,
MKB mkb) throws Exception
- Create a SWEEP object from View object in EVEDemo.MW package.
SWEEP
public SWEEP(View_Definition vd) throws Exception
- Create a SWEEP object from View_definition class in EVEDemo.VKB package.
run
public void run()
- Run the CreateUpdateFile part.
- Overrides:
- run in class Thread
getReceiver
public DataUpdateReceiver getReceiver()
- Get Receiver from SWEEP. Where you can use it to send data update to SWEEP
init
void init(View_Definition vd) throws Exception
- Init the SWEEP object.
getJCs
Vector getJCs(JoinList JL,
Relation rel)
- Get a list of join conditions related to a specific relation from
the current viewdefinition of this SWEEP object.
- Parameters:
- JL - join list
- rel - reference of relation.
- Returns:
- return empty vector is not found.
getLocalAttrName
String getLocalAttrName(JoinCondition jc,
Relation rel)
- Get Local Attribute Name of this join condition of specific relation name.
- Parameters:
- jc - Join Conditoin.
- rel - relation's name.
getRemoteRelName
String getRemoteRelName(JoinCondition jc,
Relation rel)
- Get Remote Relation Name of this Join Condition of Specific Relation name.
- Parameters:
- jc - Join Condition.
- rel - Relation's Name.
- Returns:
- "R"
getRemoteAttrName
String getRemoteAttrName(JoinCondition jc,
Relation rel)
- Get Remote Attribute Name of this join condition of specific relation name.
- Parameters:
- jc - Join Condition.
- rel - relation's name.
- Returns:
- "A"
checkAttrList
Attribute checkAttrList(Vector attrlist,
String aname)
- check if a specific attribute is already in an vector of attribute
- Parameters:
- attrlist - vector of attributes
- aname - attribute name "R.A".
- Returns:
- not found return null.
getRelation
Relation getRelation(Relation rels[],
String Rname)
- Get the SWEEP Relation object from a list of relations.
- Parameters:
- rels - array of relations.
- String - name of relation.
- Returns:
- not found return null;
getAttrs
Vector getAttrs(Vector project,
Relation rel)
- Get the Attributes of one relation in the project list.
- Parameters:
- project - (Vector) Project list composed of attribute_component
- rel - specific relation object in sweep package.
- Returns:
- a vector of objects of DSRG.MKB.Attributes.
getAttribute
Attribute getAttribute(Vector AttrList,
String attrName)
- Get Attribute object of SWEEP from the AttrList (Vector) of SWEEP Attribute
of has the specific name in format R.A
- Parameters:
- AttrList - vector of SWEEP Attributes.
- String - Attribute Name in format "R.A"
All Packages Class Hierarchy This Package Previous Next Index