|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmerja.data.CsvLoader
Chargeur de fichier au format csv
Constructor Summary | |
CsvLoader(java.lang.String filePath)
Constructeur |
Method Summary | |
Item[] |
getAttributes()
Retourne l'ensemble des attributs avec leurs valeurs |
int |
getNbAttributes()
Retourne le nombre d'attributs |
int |
getNbItems()
Retourne le nombre d'items total |
int |
getNbItemsDiff()
Retourne le nombre d'items ayant des valeurs différentes |
int |
getNbTransactions()
Retourne le nombre de transactions de la base de données |
java.lang.String |
getRelationName()
Retourne le nom du fichier ou de la base de données |
void |
goToFirstTransaction()
Place le pointeur sur la première transaction de la base de données |
static void |
main(java.lang.String[] argv)
Main pour tester la classe |
Item[] |
nextTransaction()
Retourne la prochaine transaction (tableau d'items) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CsvLoader(java.lang.String filePath) throws java.io.IOException
filePath
- chemin d'accès du fichier
java.io.IOException
- erreur lors du chargement du fichierMethod Detail |
public Item[] getAttributes()
getAttributes
in interface TransactionsReader
public void goToFirstTransaction()
goToFirstTransaction
in interface TransactionsReader
public Item[] nextTransaction()
nextTransaction
in interface TransactionsReader
public int getNbAttributes()
getNbAttributes
in interface TransactionsReader
public java.lang.String getRelationName()
getRelationName
in interface TransactionsReader
public static void main(java.lang.String[] argv)
argv
- arguments de la ligne de commandepublic int getNbTransactions()
getNbTransactions
in interface TransactionsReader
public int getNbItems()
getNbItems
in interface TransactionsReader
public int getNbItemsDiff()
getNbItemsDiff
in interface TransactionsReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |