|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.testfiles.TestSXE
This Class is used to test the Rainbow Core.
Field Summary | |
static boolean |
cut
|
static boolean |
debug
|
static boolean |
decor
The parameters from command line. |
protected static java.util.Properties |
defaultProperties
The Properties setting in running the main function. |
static boolean |
exec
|
static boolean |
merge
|
protected static java.lang.String |
metadataTable
|
static boolean |
newProp
|
static boolean |
nooutput
|
protected static java.lang.String |
password
|
protected static java.lang.String |
PROPERTIES_FILE_NAME
|
static boolean |
rewrite
|
static boolean |
schema
|
static boolean |
sql
|
static boolean |
time
|
protected static long |
timeBegin
The variables to record the usage of time. |
protected static long |
timeCut
|
protected static long |
timeDecor
|
protected static long |
timeExec
|
protected static long |
timeGen
|
protected static long |
timeMerge
|
protected static long |
timeRewrite
|
protected static long |
timeSchema
|
protected static long |
timeSQL
|
protected static long |
timeTotal
|
protected static java.lang.String |
uri
|
protected static java.lang.String |
username
The parameter used for database connection |
Constructor Summary | |
TestSXE()
The default TestSXE constructor. |
Method Summary | |
java.util.Properties |
getDefaultProperties()
Get the default properties from propertity_file. |
static java.lang.String |
getMetadataTable()
Get the metadataTable. |
static java.lang.String |
getPassword()
Get password of JDBC connection. |
static java.lang.String |
getUri()
Get the JDBC connection string. |
static java.lang.String |
getUsername()
Get the username for JDBC connection. |
static void |
main(java.lang.String[] args)
This method is the main function for RainbowCore. |
static void |
printTime(java.lang.String prefix)
Output the time usage of each step in RainbowCore. |
static void |
readParameters(java.lang.String[] args,
int start)
Get parameters from command line. |
protected static java.lang.String |
readQuery(java.lang.String file)
Reads in the contents of a file and converts it to a string object. |
protected static void |
saveProperties(java.lang.String userSave,
java.lang.String passwdSave,
java.lang.String uriSave)
Saves the user parameters to PROPERTIES_FILE_NAME |
protected static void |
saveProperties(java.lang.String userSave,
java.lang.String passwdSave,
java.lang.String uriSave,
java.lang.String metaSave)
Saves the user parameters to PROPERTIES_FILE_NAME |
static void |
setDefaultProperties()
Set default properties into the PROPERTIES_FILE, which include username, password, uri and metadataTable. |
static void |
setMetadataTable(java.lang.String meta)
Set the metadataTable using given string. |
static void |
setPassword(java.lang.String newPassword)
Set the metadataTable using given string. |
static void |
setUri(java.lang.String newUri)
Set the metadataTable using given string. |
static void |
setUsername(java.lang.String newUsername)
Set the username using given string. |
static XATTree |
treeCut(XATTree treeCut)
Cut the unused operator within the tree. |
static XATTree |
treeDecorrelation(XATTree treeDecor)
Get rid of recursive operator in the tree, such as groupBy, For. |
static XATTree |
treeExec(XATTree treeExec)
Execute the tree. |
static XATTree |
treeGeneration(java.lang.String query,
XATTree genTree)
Generate XAT for given query |
static XATTree |
treeMerge(XATTree userTree,
XATTree viewTree)
Merge the two XATs. |
static XATTree |
treeRewrite(XATTree treeRewrite)
Rewrite the XAT for optimization. |
static XATTree |
treeSchema(XATTree treeSchema)
Do schema cleanup for given XAT. |
static XATTree |
treeSQLGen(XATTree treeSQL)
Generate SQL for "relational" algebra part within given XAT. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static boolean decor
public static boolean newProp
public static boolean merge
public static boolean cut
public static boolean rewrite
public static boolean time
public static boolean schema
public static boolean sql
public static boolean exec
public static boolean debug
public static boolean nooutput
protected static final java.lang.String PROPERTIES_FILE_NAME
protected static long timeBegin
protected static long timeGen
protected static long timeMerge
protected static long timeDecor
protected static long timeSchema
protected static long timeRewrite
protected static long timeSQL
protected static long timeExec
protected static long timeCut
protected static long timeTotal
protected static java.lang.String username
protected static java.lang.String password
protected static java.lang.String uri
protected static java.util.Properties defaultProperties
protected static java.lang.String metadataTable
Constructor Detail |
public TestSXE()
Method Detail |
public java.util.Properties getDefaultProperties()
public static java.lang.String getMetadataTable()
public static java.lang.String getPassword()
public static java.lang.String getUri()
public static java.lang.String getUsername()
public static void main(java.lang.String[] args) throws java.lang.Exception
public static void printTime(java.lang.String prefix)
perfix
- The perfix for helping output.public static void readParameters(java.lang.String[] args, int start)
args
- java.lang.String[] The array containing all the parameters.start
- The number of the first paramters.protected static java.lang.String readQuery(java.lang.String file) throws java.lang.Exception
file
- The name of file opening.protected static void saveProperties(java.lang.String userSave, java.lang.String passwdSave, java.lang.String uriSave)
userSave
- The username.passwdSave
- The password.uriSave
- The JDBC connecting string to database.protected static void saveProperties(java.lang.String userSave, java.lang.String passwdSave, java.lang.String uriSave, java.lang.String metaSave)
userSave
- The username.passwdSave
- The password.uriSave
- The JDBC connecting string to database.public static void setDefaultProperties()
public static void setMetadataTable(java.lang.String meta)
meta
- The meta string.public static void setPassword(java.lang.String newPassword)
newPassword
- The new password.public static void setUri(java.lang.String newUri)
newUri
- The JDBC connection string.public static void setUsername(java.lang.String newUsername)
newUsername
- The new user name.public static XATTree treeCut(XATTree treeCut)
debugCut
- The tree need to be optimized.public static XATTree treeDecorrelation(XATTree treeDecor)
treeDecor
- The tree need to be optimized.public static XATTree treeExec(XATTree treeExec)
debugExec
- The tree needs to be executed.public static XATTree treeGeneration(java.lang.String query, XATTree genTree)
genTree
- The generated XAT tree.query
- The XQuery for tree generation.public static XATTree treeMerge(XATTree userTree, XATTree viewTree)
userTree
- The generated user XAT tree.query
- The generated view XATTree.public static XATTree treeRewrite(XATTree treeRewrite)
treeRewrite
- The tree need to be optimized.public static XATTree treeSchema(XATTree treeSchema)
treeSchema
- Cleanup the XATTree.public static XATTree treeSQLGen(XATTree treeSQL)
treeSQL
- The XATTree used for SQL generation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |