|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.io.kddcup2011.Items
public class Items
Routines for reading in the item taxonomy of the KDD Cup 2011 data.
Constructor Summary | |
---|---|
Items()
|
Method Summary | |
---|---|
static KDDCupItems |
read(java.lang.String tracks_filename,
java.lang.String albums_filename,
java.lang.String artists_filename,
java.lang.String genres_filename,
int track_no)
Read in the item data from several files. |
static void |
readAlbums(java.io.BufferedReader reader,
KDDCupItems items)
Read the album data. |
static void |
readArtists(java.io.BufferedReader reader,
KDDCupItems items)
Read the artist data. |
static void |
readGenres(java.io.BufferedReader reader,
KDDCupItems items)
Read the genre data. |
static void |
readTracks(java.io.BufferedReader reader,
KDDCupItems items)
Read the track data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Items()
Method Detail |
---|
public static KDDCupItems read(java.lang.String tracks_filename, java.lang.String albums_filename, java.lang.String artists_filename, java.lang.String genres_filename, int track_no) throws java.io.IOException
tracks_filename
- name of the tracks filealbums_filename
- name of the album/record fileartists_filename
- name of the artists filegenres_filename
- name of the genre filetrack_no
- 1 or 2
java.io.IOException
public static void readTracks(java.io.BufferedReader reader, KDDCupItems items) throws java.io.IOException
reader
- a reader object to read the data fromitems
- the java.io.IOException
public static void readAlbums(java.io.BufferedReader reader, KDDCupItems items) throws java.io.IOException
reader
- a reader object to read the data fromitems
- the java.io.IOException
public static void readArtists(java.io.BufferedReader reader, KDDCupItems items) throws java.io.IOException
reader
- a reader object to read the data fromitems
- the java.io.IOException
public static void readGenres(java.io.BufferedReader reader, KDDCupItems items) throws java.io.IOException
reader
- a reader object to read the data fromitems
- the java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |