uk.ac.ed.inf.enzml.weka
Class ArffPropsTableManager
java.lang.Object
uk.ac.ed.inf.utils.database.DbManaged
uk.ac.ed.inf.utils.database.TableManager
uk.ac.ed.inf.enzml.weka.ArffPropsTableManager
public class ArffPropsTableManager
- extends uk.ac.ed.inf.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.utils.database.TableManager |
m_writer |
|
Constructor Summary |
ArffPropsTableManager(Arff arffGenerator)
Constructor 1: initialises the table manager to point to the arff table. |
ArffPropsTableManager(uk.ac.ed.inf.utils.database.DbManager db)
Constructor 2: initialises the table manager to point to the arff table. |
| Methods inherited from class uk.ac.ed.inf.utils.database.TableManager |
getTableCreator, getTableName, getTableReader, getTableWriter |
| Methods inherited from class uk.ac.ed.inf.utils.database.DbManaged |
getDbConnection, getDbManager |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArffPropsTableManager
public ArffPropsTableManager(Arff arffGenerator)
- Constructor 1: initialises the table manager to point to the arff table.
Can be used for writing and reading.
ArffPropsTableManager
public ArffPropsTableManager(uk.ac.ed.inf.utils.database.DbManager db)
- Constructor 2: initialises the table manager to point to the arff table.
Can be used for reading only.
createRow
public uk.ac.ed.inf.utils.database.TableRow createRow()
getArffGenerator
public Arff getArffGenerator()
getArffRecordId
public int getArffRecordId()
getReader
public ArffPropsTableReader getReader()
writeArffRecordToDb
public int writeArffRecordToDb()
main
public static void main(java.lang.String[] args)
- Main for recreating table
- Parameters:
args -
- Throws:
java.sql.SQLException