|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EVEDemo.MW.View
This holds views. Mainly used for the EVE-Demo. It holds a view extent, a view definition, and can hold another instance of this same class (as an old view; used for the demo to show "extent differences" ).
Field Summary | |
private boolean |
changed
has there been a change made? It's for time measurement of performance evaluation |
private static boolean |
DEBUG
|
java.lang.String |
esql_definition
view definition in E-SQL |
static int |
EXTERNAL_WHERE
2 for EXTERNAL clause |
static int |
FROM_CLAUSE
2 for FROM clause |
static int |
INTERNAL_WHERE
1 for INTERNAL clause |
static int |
LOCAL_WHERE
0 for LOCAL clause |
private Main |
main
a handle to the Main class. |
private static VKB |
mainVKB
handle to the current VKB instance used for all kinds of stuff of Jeff's algorithm. |
private DataUpdateReceiver |
myDUR
handle to the data update receiver in SWEEP used for performance experiments |
private PSWEEP |
myPSWEEP
handle to the current PSWEEP instance used for incremental VM |
private java.lang.String |
name
name of the view |
(package private) Relation |
negRel
if we have negative counter, i.e. |
private View |
oldView
each instance includes another instance of the same class in order to hold one "old" version of itself. |
static int |
SELECT_CLAUSE
1 for SELECT clause |
private java.lang.String |
sql_definition
view definition in SQL |
(package private) long |
startPerformance
timestamp for performance experiments |
private Table |
table
the view can hold its own extent as a Table object. |
private java.util.Vector |
versions
with the advent of the QC-model, each view has to be capable of temporarily holding a number of "versions", i.e., objects of class "Version" which are needed for selecting a good view after a schema change with the QC-Model. |
static int |
WHERE_CLAUSE
0 for WHERE clause |
Constructor Summary | |
View(Main myMain,
java.lang.String vName,
MKB mainMKB,
VKB myVKB)
Constructs a new instance of the View class |
|
View(View oldView)
Copy Constructor. |
Method Summary | |
void |
addTuples(Relation sweepRelation)
the interface with the SWEEP classes adds the incoming SWEEP.Relation-object to the extent DISABLED FOR RE-IMPLEMENTATION |
boolean |
getChangeStatus()
|
java.lang.String |
getDefinition()
getDefinition - returns the definition of this view. |
Table |
getExtent()
get the extent as the new table object |
java.lang.String |
getName()
getName - returns the name of the view |
View |
getOldView()
getOldView - returns a reference to the OldView. |
QC |
getQC(int index)
returns the QC-Object for the version at "index" |
java.lang.String |
getVersion(int index)
returns the view definition string of the version with index "index" as a string |
int |
numberOfVersions()
returns the number of versions for this view or null if the vector is not intialized |
void |
refresh()
Refresh - refresh the current view from the VKB. |
void |
removeTuples(Relation sweepRelation)
the interface with the SWEEP classes removes the incoming SWEEP.Relation-object from the extent DISABLED FOR RE-IMPLEMENTATION |
boolean |
replaceView_DefinitionBy(int version_number)
calls the VKB to replace this view's View_Definition by version number i |
void |
saveView()
saveView - makes a copy of the view into the oldView. |
void |
sendUpdate(java.lang.String isName,
java.lang.String relName,
int count,
java.lang.String update)
This is used to send data update to the information source. |
void |
setExtent(Table ext)
Set the new table of this View. |
void |
startVM()
Used to start the View Maintenance Module |
void |
stopTimer()
Stop the timer for the Data Update performance evaluation. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final boolean DEBUG
private Main main
private java.lang.String name
public java.lang.String esql_definition
private java.lang.String sql_definition
private View oldView
private java.util.Vector versions
private Table table
private PSWEEP myPSWEEP
private DataUpdateReceiver myDUR
private static VKB mainVKB
public static final int WHERE_CLAUSE
public static final int SELECT_CLAUSE
public static final int FROM_CLAUSE
private boolean changed
public static final int LOCAL_WHERE
public static final int INTERNAL_WHERE
public static final int EXTERNAL_WHERE
long startPerformance
Relation negRel
Constructor Detail |
public View(Main myMain, java.lang.String vName, MKB mainMKB, VKB myVKB)
public View(View oldView)
Method Detail |
public java.lang.String getName()
public void refresh()
public java.lang.String getDefinition()
public Table getExtent()
public void setExtent(Table ext)
public View getOldView()
public void saveView()
public void stopTimer()
public boolean getChangeStatus()
public void sendUpdate(java.lang.String isName, java.lang.String relName, int count, java.lang.String update)
public void startVM()
public void addTuples(Relation sweepRelation)
public void removeTuples(Relation sweepRelation)
public java.lang.String getVersion(int index)
index
- the index of the version to returnpublic boolean replaceView_DefinitionBy(int version_number)
public int numberOfVersions()
public QC getQC(int index)
index
- the index of the version for which to return the
QC-Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |