textclassifier.database
Class AdultDBLoaderBC
java.lang.Object
textclassifier.database.AdultDBLoaderBC
- All Implemented Interfaces:
- documentConnecterBC
public class AdultDBLoaderBC
- extends java.lang.Object
- implements documentConnecterBC
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdultDBLoaderBC
public AdultDBLoaderBC()
getTableName
public java.lang.String getTableName()
- Specified by:
getTableName
in interface documentConnecterBC
getCategories
public java.lang.String getCategories()
- Description copied from interface:
documentConnecterBC
- Returns array of all categories (objects Category)
- Specified by:
getCategories
in interface documentConnecterBC
getTotalTransCount
public java.lang.String getTotalTransCount(Category cat)
- Returns SQL command that returns total count of transactions
getAttributes
public java.lang.String getAttributes()
- Returns SQL command that gets all attributes names
sql command returns only one column - attribute name!
- Specified by:
getAttributes
in interface documentConnecterBC
getTransInCategory
public java.lang.String getTransInCategory(Category cat)
- Returns transactions thats are in category cat
- Specified by:
getTransInCategory
in interface documentConnecterBC
hasHigherSupportThanMinsupp
public java.lang.String hasHigherSupportThanMinsupp(java.lang.String condition,
double min_supp,
Category cat)
- Specified by:
hasHigherSupportThanMinsupp
in interface documentConnecterBC
getSqlQueryGetValuesAndCountsOfAttribute
public java.lang.String getSqlQueryGetValuesAndCountsOfAttribute(java.lang.String attribute,
int totalTransCount,
Category cat)
- Specified by:
getSqlQueryGetValuesAndCountsOfAttribute
in interface documentConnecterBC
getSqlQueryGetCategoriesAndCountsOfItemset
public java.lang.String getSqlQueryGetCategoriesAndCountsOfItemset(largeItemset oneItemset,
Category cat)
- Specified by:
getSqlQueryGetCategoriesAndCountsOfItemset
in interface documentConnecterBC
getSqlQueryGetFromDiscInterval
public java.lang.String getSqlQueryGetFromDiscInterval(DiscInterval disc,
Category cat,
java.lang.String att_name)
- Specified by:
getSqlQueryGetFromDiscInterval
in interface documentConnecterBC
inCategories
public java.lang.String inCategories(largeItemset oneItemset)
- Specified by:
inCategories
in interface documentConnecterBC
inCategories2
public java.lang.String inCategories2(largeItemset oneItemset)
- Specified by:
inCategories2
in interface documentConnecterBC
getDistinctValues
public java.lang.String getDistinctValues(java.lang.String att)
- Specified by:
getDistinctValues
in interface documentConnecterBC
isDiscretizableAttribute
public boolean isDiscretizableAttribute(java.lang.String att_name)
- Specified by:
isDiscretizableAttribute
in interface documentConnecterBC
- Returns:
- true, if att is discreted, else returns false