|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.io.TimedRatingData
public class TimedRatingData
Class that offers methods for reading in rating data with time information.
Method Summary | |
---|---|
static ITimedRatings |
read(java.io.BufferedReader reader,
IEntityMapping user_mapping,
IEntityMapping item_mapping,
boolean ignore_first_line)
Read in rating data from a TextReader. |
static ITimedRatings |
read(java.lang.String filename,
IEntityMapping user_mapping,
IEntityMapping item_mapping,
boolean ignore_first_line)
Read in rating data from a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ITimedRatings read(java.lang.String filename, IEntityMapping user_mapping, IEntityMapping item_mapping, boolean ignore_first_line) throws java.lang.Exception
filename
- the name of the file to read fromuser_mapping
- mapping object for user IDsitem_mapping
- mapping object for item IDsignore_first_line
- if true, ignore the first line
java.io.FileNotFoundException
java.lang.Exception
public static ITimedRatings read(java.io.BufferedReader reader, IEntityMapping user_mapping, IEntityMapping item_mapping, boolean ignore_first_line) throws java.lang.Exception
reader
- the user_mapping
- mapping object for user IDsitem_mapping
- mapping object for item IDsignore_first_line
- if true, ignore the first line
java.text.ParseException
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |