|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.DSRG.xmldb.RainbowExperiments.Experiment
Experiment.java is the Experimental Setup for the Experiments of the Restructuring Subsystem. This class is the main class to do the experiments. Two kinds of experiments will be done here: 1. Setup related. 2. Query related. In general, each experiment includes following steps: 1. We load the data set. 2. We create the "input.txt" to store the restructuring operations. 3. We execute the restructuring operations. 4. We do the measurement of different things, e.g., restructuring, updating, view materialization, and query execution.
Field Summary | |
(package private) Table |
all_tables
|
(package private) java.util.Vector |
all_views
|
(package private) Catalog |
catalog
|
(package private) Cleaner |
cleaner
|
(package private) CreateDataSchema |
createDataSchema
|
(package private) CreateDTDM |
createDTDM
|
(package private) ExportDTD |
exportDTD
|
(package private) JDBCClient |
jdbc
The database connection used for this example. |
(package private) LoadXML |
loadXML
|
(package private) Restructure |
restructurer
The restructuring used in the experiments. |
(package private) StoreDTD |
storeDTD
|
(package private) UniqueID |
unique_id
|
Constructor Summary | |
Experiment(JDBCClient client)
This constructor creates the experiment based on a specific connection. |
Method Summary | |
void |
backupDB()
The method backupDB() backs up all the tables that will be created after the resetDB(). |
void |
exp1()
The method exp1() compares batch with serial restructuring. |
void |
exp2()
The method exp2() varies the datasize to test the scalability of operations of different operator type. |
void |
exp3()
The method exp3() varies the number of operations to test the scalability of operations of different operator type. |
void |
expJoin()
The method expJoin() discovers the performance difference in the evaluation of join queries against a data set that vary in the number of pushUpAttribute operations applied. |
void |
expOverhead()
The method expOverhead() tests the overhead of the Restructure operators. |
static void |
main(java.lang.String[] argvs)
The method main() sets up a new connection given the URI, username, and password for a database server. |
void |
resetDB()
The method resetDB() resets the db with whole 37 shaks XML files. |
void |
resetDB(int number_of_files)
The method resetDB loads the database by loading all the Sharksphere's play inside the database. |
void |
resetDB2(int repeat_times)
The method resetDB2() reloads the same XML file for multiple times. |
void |
resetDBJoin(int repeat_times)
The method resetDBJoin() reloads a same XML file for multiple times. |
void |
restoreDB()
The method restoreDB() cleans all the tables except the "_bak" tables. |
Methods inherited from class java.lang.Object |
|
Field Detail |
JDBCClient jdbc
Restructure restructurer
UniqueID unique_id
CreateDTDM createDTDM
StoreDTD storeDTD
ExportDTD exportDTD
CreateDataSchema createDataSchema
LoadXML loadXML
Cleaner cleaner
Catalog catalog
Table all_tables
java.util.Vector all_views
Constructor Detail |
public Experiment(JDBCClient client)
client
- JDBCClient connection to databaseMethod Detail |
public static void main(java.lang.String[] argvs) throws java.lang.Exception
argvs[0]
- String database to connect toargvs[1]
- String usernameargvs[2]
- String passwordpublic void expJoin() throws java.lang.Exception
public void expOverhead() throws java.lang.Exception
public void exp1() throws java.lang.Exception
public void exp3() throws java.lang.Exception
public void exp2() throws java.lang.Exception
public void resetDB2(int repeat_times) throws java.lang.Exception
repeat_times
- int number of repeat on the loadpublic void resetDBJoin(int repeat_times) throws java.lang.Exception
repeat_times
- int number of loads of the same XML filepublic void resetDB() throws java.lang.Exception
public void resetDB(int number_of_files) throws java.lang.Exception
number_of_files
- To load number of XML files.public void backupDB() throws java.sql.SQLException, java.io.IOException
public void restoreDB()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |