Package edu.gsu.cs.dmlab.databases
Class SingleFeatureDBConnection
- java.lang.Object
-
- edu.gsu.cs.dmlab.databases.SingleFeatureDBConnection
-
- All Implemented Interfaces:
IFeatureDBConnection
public class SingleFeatureDBConnection extends Object implements IFeatureDBConnection
This class is used to access feature descriptors ranked by some ranking method and inserted into the database by theSingleFeatureDBCreator
.- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description SingleFeatureDBConnection(DataSource dsourc)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
featureTableExists(EventType type)
Checks to see if the feature table for the particular event type exists.void
finalize()
ImageDBWaveParamPair[]
getBestFeatures(EventType type, int num)
Selects the top features in the database and returns the array of their descriptors
-
-
-
Constructor Detail
-
SingleFeatureDBConnection
public SingleFeatureDBConnection(DataSource dsourc)
Constructor- Parameters:
dsourc
- The database connection object that we use to query the database.
-
-
Method Detail
-
finalize
public void finalize() throws Throwable
-
getBestFeatures
public ImageDBWaveParamPair[] getBestFeatures(EventType type, int num) throws SQLException
Description copied from interface:IFeatureDBConnection
Selects the top features in the database and returns the array of their descriptors- Specified by:
getBestFeatures
in interfaceIFeatureDBConnection
- Parameters:
type
- The event type to select features fornum
- The number of features to return- Returns:
- The array of the top features in the database
- Throws:
SQLException
- If an error occurs
-
featureTableExists
public boolean featureTableExists(EventType type) throws SQLException
Description copied from interface:IFeatureDBConnection
Checks to see if the feature table for the particular event type exists.- Specified by:
featureTableExists
in interfaceIFeatureDBConnection
- Parameters:
type
- The event type to check for.- Returns:
- True if exists, else false.
- Throws:
SQLException
- If an error occurs
-
-