org.mymedialite.io.kddcup2011
Class Items

java.lang.Object
  extended by org.mymedialite.io.kddcup2011.Items

public class Items
extends java.lang.Object

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

Items

public Items()
Method Detail

read

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
Read in the item data from several files.

Parameters:
tracks_filename - name of the tracks file
albums_filename - name of the album/record file
artists_filename - name of the artists file
genres_filename - name of the genre file
track_no - 1 or 2
Returns:
the rating data
Throws:
java.io.IOException

readTracks

public static void readTracks(java.io.BufferedReader reader,
                              KDDCupItems items)
                       throws java.io.IOException
Read the track data.

Parameters:
reader - a reader object to read the data from
items - the object
Throws:
java.io.IOException

readAlbums

public static void readAlbums(java.io.BufferedReader reader,
                              KDDCupItems items)
                       throws java.io.IOException
Read the album data.

Parameters:
reader - a reader object to read the data from
items - the object
Throws:
java.io.IOException

readArtists

public static void readArtists(java.io.BufferedReader reader,
                               KDDCupItems items)
                        throws java.io.IOException
Read the artist data.

Parameters:
reader - a reader object to read the data from
items - the object
Throws:
java.io.IOException

readGenres

public static void readGenres(java.io.BufferedReader reader,
                              KDDCupItems items)
                       throws java.io.IOException
Read the genre data.

Parameters:
reader - a reader object to read the data from
items - the object
Throws:
java.io.IOException