public class TANEjava
extends java.lang.Object
DatabaseConnection con = new DatabaseConnection();
try{
con.connect(DatabaseConnection.DBvendors.Oracle10gSeries,"localhost","1521","XE", USER, PASSWORD);
con.setTable("employees");
TANEjava tane = new TANEjava(con);
tane.getFD();
Modifier and Type | Method and Description |
---|---|
static ComparableSet<java.lang.String> |
closure(ComparableSet<FunctionalDependency> FD_SET,
ComparableSet<java.lang.String> ATTR_SET)
Computes the closure of an attribute set X under F where F is a set of
functional dependencies.
|
protected void |
finalize() |
void |
getFD()
This is the TANE main algorithm and returns all minimal non-trivial
functional dependencies.
|
void |
getKeys() |
static ComparableSet<FunctionalDependency> |
minimalCover(ComparableSet<FunctionalDependency> FD_SET)
Computes the minimal cover for a set of functional dependencies.
|
void |
setConsoleOutput(boolean debug)
Shows discovered functional dependencies on the console, if
debug
debug is true. |
void |
setTempFolder(java.lang.String tempFolder)
Sets the temporary folder for swapping stripped partitions.
|
public TANEjava(Data dt)
public static ComparableSet<FunctionalDependency> minimalCover(ComparableSet<FunctionalDependency> FD_SET)
FD_SET
- -a set of functional dependenciespublic static ComparableSet<java.lang.String> closure(ComparableSet<FunctionalDependency> FD_SET, ComparableSet<java.lang.String> ATTR_SET)
FD_SET
- ATTR_SET
- public void getFD() throws java.lang.Exception, java.lang.OutOfMemoryError
Before any use of this method, a table must be specified by using the setTable method.
DatabaseConnection con = new DatabaseConnection();
try{
con.connect(DatabaseConnection.DBvendors.Oracle10gSeries,"localhost","1521","XE", USER, PASSWORD);
con.setTable("employees");
TANEjava tane = new TANEjava(con);
tane.getFD();
java.lang.Exception
java.lang.OutOfMemoryError
java.lang.ArrayStoreException
public void setConsoleOutput(boolean debug)
debug
is true.debug
- protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void setTempFolder(java.lang.String tempFolder)
tempFolder
- - the new temporary folderpublic void getKeys()