|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.io.StaticRatingData
public class StaticRatingData
Class that offers methods for reading in static rating data.
Method Summary | |
---|---|
static IRatings |
read(java.io.BufferedReader reader,
int size,
IEntityMapping user_mapping,
IEntityMapping item_mapping,
RatingType rating_type,
boolean ignore_first_line)
Read in static rating data from a TextReader. |
static IRatings |
read(java.lang.String filename,
IEntityMapping user_mapping,
IEntityMapping item_mapping,
RatingType rating_type,
boolean ignore_first_line)
Read in static 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 IRatings read(java.lang.String filename, IEntityMapping user_mapping, IEntityMapping item_mapping, RatingType rating_type, boolean ignore_first_line) throws java.io.IOException
filename
- the name of the file to read fromuser_mapping
- mapping object for user IDsitem_mapping
- mapping object for item IDsrating_type
- the data type to be used for storing the ratingsignore_first_line
- if true, ignore the first line
java.io.IOException
public static IRatings read(java.io.BufferedReader reader, int size, IEntityMapping user_mapping, IEntityMapping item_mapping, RatingType rating_type, boolean ignore_first_line) throws java.io.IOException
reader
- the size
- the number of ratings in the fileuser_mapping
- mapping object for user IDsitem_mapping
- mapping object for item IDsrating_type
- the data type to be used for storing the ratingsignore_first_line
- if true, ignore the first line
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |