textclassifier.database
Class AdultDBLoaderBC

java.lang.Object
  extended by textclassifier.database.AdultDBLoaderBC
All Implemented Interfaces:
documentConnecterBC

public class AdultDBLoaderBC
extends java.lang.Object
implements documentConnecterBC


Constructor Summary
AdultDBLoaderBC()
           
 
Method Summary
 java.lang.String getAttributes()
          Returns SQL command that gets all attributes names sql command returns only one column - attribute name!
 java.lang.String getCategories()
          Returns array of all categories (objects Category)
 java.lang.String getDistinctValues(java.lang.String att)
           
 java.lang.String getSqlQueryGetCategoriesAndCountsOfItemset(largeItemset oneItemset, Category cat)
           
 java.lang.String getSqlQueryGetFromDiscInterval(DiscInterval disc, Category cat, java.lang.String att_name)
           
 java.lang.String getSqlQueryGetValuesAndCountsOfAttribute(java.lang.String attribute, int totalTransCount, Category cat)
           
 java.lang.String getTableName()
           
 java.lang.String getTotalTransCount(Category cat)
          Returns SQL command that returns total count of transactions
 java.lang.String getTransInCategory(Category cat)
          Returns transactions thats are in category cat
 java.lang.String hasHigherSupportThanMinsupp(java.lang.String condition, double min_supp, Category cat)
           
 java.lang.String inCategories(largeItemset oneItemset)
           
 java.lang.String inCategories2(largeItemset oneItemset)
           
 boolean isDiscretizableAttribute(java.lang.String att_name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface textclassifier.database.documentConnecterBC
isTarget
 

Constructor Detail

AdultDBLoaderBC

public AdultDBLoaderBC()
Method Detail

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