uk.ac.ed.inf.csb.taweka
Class ArffPropsTableManager
java.lang.Object
uk.ac.ed.inf.csb.utils.database.DbManaged
uk.ac.ed.inf.csb.utils.database.TableManager
uk.ac.ed.inf.csb.taweka.ArffPropsTableManager
public class ArffPropsTableManager
- extends uk.ac.ed.inf.csb.utils.database.TableManager
Writes into a database table the pointers needed to build an arff file (the
name of the arff file, the query to select instances, attributes, class
values etc)
TODO integrate arff recording to database with mulan experiment recording
- Version:
- 16 Jun 2010
- Author:
- Luna De Ferrari luna.deferrari-at-ed.ac.uk
| Fields inherited from class uk.ac.ed.inf.csb.utils.database.TableManager |
m_writer |
| Methods inherited from class uk.ac.ed.inf.csb.utils.database.TableManager |
getTableCreator, getTableName, getTableReader, getTableWriter |
| Methods inherited from class uk.ac.ed.inf.csb.utils.database.DbManaged |
getDbConnection, getDbManager |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArffPropsTableManager
public ArffPropsTableManager(ArffGenerator arffGenerator)
- Constructor 1: initialises the table (uses given database connection
file)
- Throws:
java.sql.SQLException
createRow
public uk.ac.ed.inf.csb.utils.database.TableRow createRow()
getArffGenerator
public ArffGenerator getArffGenerator()
getArffPathFrobDb
public java.lang.String getArffPathFrobDb(int recordId)
getArffRecordId
public int getArffRecordId()
getPropertyValueFromTable
public java.lang.String getPropertyValueFromTable(java.lang.String propertyName,
int id)
writeArffRecordToDb
public void writeArffRecordToDb()
main
public static void main(java.lang.String[] args)
- Main for recreating table
- Parameters:
args -
- Throws:
java.sql.SQLException