edu.wpi.cs.DSRG.xmldb.restructuring
Class Restructure
java.lang.Object
|
+--edu.wpi.cs.DSRG.xmldb.restructuring.Restructure
- public class Restructure
- extends java.lang.Object
Restructure.java reads from the mapping file that contains a list of desired operations.
It then creates the operator instances for each operation and executes these operators.
IMPORTANT NOTE: run the executable directly off of 'src', the directory path makes
it statically such.
- Since:
- 02/06/2000
Method Summary |
static void |
main(java.lang.String[] argvs)
The method main() initializes a RestructureComp instance for reading input. |
void |
materialize()
The method materialize() materializes the current data catalog. |
void |
readOperators(java.lang.String input_file)
The method readOperators() will read a set of operators from a specific file. |
void |
runOperators()
The method runOperators() runs all the operators in the operator Vector by calling their respective executes. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
jdbc
JDBCClient jdbc
operatorObjects
java.util.Vector operatorObjects
operatorEnum
java.util.Enumeration operatorEnum
unique_id
UniqueID unique_id
Restructure
public Restructure(JDBCClient jdbc,
UniqueID unique_id)
- This constructor keeps the JDBC connection references.
Initialize the "operators" vector.
- Parameters:
jdbc
- JDBCClient The JDBC client reference.unique_id
- UniqueID The generator for unique ids
main
public static void main(java.lang.String[] argvs)
throws java.lang.Exception
- The method main() initializes a RestructureComp instance for reading input.
reads in each operation, initialize operators, and finally executes these
operators.
readOperators
public void readOperators(java.lang.String input_file)
- The method readOperators() will read a set of operators from a specific file.
It will parse the input file and create each operator objects and
store those operators into the vector, and also pass an unique ID
to each operator.
- Parameters:
input_file
- String The file name of the file containing the operators.
materialize
public void materialize()
- The method materialize() materializes the current data catalog.
It will: Get all the tables /views from data view catalog, create a materialized view which is like
" create materialized view v1 refresh fast on commit build immediate as select * from ",
and update the data view catalog.
Note: So far the oracle cannot support refresh fast for complext queries.
So, instead, we use the "refresh complete" to recompute the view
whenever an update happens.
runOperators
public void runOperators()
- The method runOperators() runs all the operators in the operator Vector by calling their respective executes.