public final class JesterDataModel extends FileDataModel
DEFAULT_MIN_RELOAD_INTERVAL_MS| Constructor and Description |
|---|
JesterDataModel() |
JesterDataModel(File ratingsFile) |
| Modifier and Type | Method and Description |
|---|---|
protected DataModel |
buildModel() |
protected void |
processLine(String line,
FastByIDMap<?> rawData,
FastByIDMap<FastByIDMap<Long>> timestamps,
boolean fromPriorData) |
void |
reload() |
determineDelimiter, getDataFile, getDelimiter, getItemIDs, getItemIDsFromUser, getMaxPreference, getMinPreference, getNumItems, getNumUsers, getNumUsersWithPreferenceFor, getNumUsersWithPreferenceFor, getPreferencesForItem, getPreferencesFromUser, getPreferenceTime, getPreferenceValue, getUserIDs, hasPreferenceValues, processFile, processFileWithoutID, processLineWithoutID, readItemIDFromString, readTimestampFromString, readUserIDFromString, refresh, removePreference, setPreference, toStringsetMaxPreference, setMinPreferencepublic JesterDataModel()
throws IOException
IOExceptionpublic JesterDataModel(File ratingsFile) throws IOException
ratingsFile - Jester ratings file in CSV formatIOException - if an error occurs while reading or writing filespublic void reload()
reload in class FileDataModelprotected DataModel buildModel() throws IOException
buildModel in class FileDataModelIOExceptionprotected void processLine(String line, FastByIDMap<?> rawData, FastByIDMap<FastByIDMap<Long>> timestamps, boolean fromPriorData)
processLine in class FileDataModelCopyright © 2008–2013 The Apache Software Foundation. All rights reserved.