public final class GroupLensDataModel extends FileDataModel
DEFAULT_MIN_RELOAD_INTERVAL_MS
Constructor and Description |
---|
GroupLensDataModel() |
GroupLensDataModel(File ratingsFile) |
Modifier and Type | Method and Description |
---|---|
static File |
readResourceToTempFile(String resourceName) |
String |
toString() |
buildModel, determineDelimiter, getDataFile, getItemIDs, getItemIDsFromUser, getMaxPreference, getMinPreference, getNumItems, getNumUsers, getNumUsersWithPreferenceFor, getNumUsersWithPreferenceFor, getPreferencesForItem, getPreferencesFromUser, getPreferenceTime, getPreferenceValue, getUserIDs, hasPreferenceValues, processFile, processFileWithoutID, processLine, processLineWithoutID, readItemIDFromString, readTimestampFromString, readUserIDFromString, refresh, reload, removePreference, setPreference
setMaxPreference, setMinPreference
public GroupLensDataModel() throws IOException
IOException
public GroupLensDataModel(File ratingsFile) throws IOException
ratingsFile
- GroupLens ratings.dat file in its native formatIOException
- if an error occurs while reading or writing filespublic static File readResourceToTempFile(String resourceName) throws IOException
IOException
public String toString()
toString
in class FileDataModel
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.