Package edu.gsu.cs.dmlab.databases
Class SingleFeatureDBCreator
- java.lang.Object
-
- edu.gsu.cs.dmlab.databases.SingleFeatureDBCreator
-
- All Implemented Interfaces:
IFeatureDBCreator
public class SingleFeatureDBCreator extends Object implements IFeatureDBCreator
Class that creates tables and stores feature scores for each event type in our dataset.- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description SingleFeatureDBCreator(DataSource dsourc)
Constructor for this database creator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
createFeatureScoreTable(EventType type)
Creates the table for holding the scoring of a particular feature for a particular event type.void
finalize()
boolean
insertParamFeatureStatVal(EventType type, ImageDBWaveParamPair id, float statVal)
Inserts the statistic value for the feature of a particular wavelength and event type.
-
-
-
Constructor Detail
-
SingleFeatureDBCreator
public SingleFeatureDBCreator(DataSource dsourc)
Constructor for this database creator.- Parameters:
dsourc
- The data source that connects to the database schema in which we will be creating the tables.
-
-
Method Detail
-
finalize
public void finalize() throws Throwable
-
createFeatureScoreTable
public boolean createFeatureScoreTable(EventType type) throws SQLException
Description copied from interface:IFeatureDBCreator
Creates the table for holding the scoring of a particular feature for a particular event type.- Specified by:
createFeatureScoreTable
in interfaceIFeatureDBCreator
- Parameters:
type
- The event type to create the table for- Returns:
- True if successful, else false
- Throws:
SQLException
- If an error occurs
-
insertParamFeatureStatVal
public boolean insertParamFeatureStatVal(EventType type, ImageDBWaveParamPair id, float statVal) throws SQLException
Description copied from interface:IFeatureDBCreator
Inserts the statistic value for the feature of a particular wavelength and event type.- Specified by:
insertParamFeatureStatVal
in interfaceIFeatureDBCreator
- Parameters:
type
- The event type to insert the statistic value forid
- The feature to insert the statistic value forstatVal
- The value to insert- Returns:
- True when successful
- Throws:
SQLException
- If an error occurs
-
-