org.apache.mahout.cf.taste.example.jester
Class JesterDataModel

java.lang.Object
  extended by org.apache.mahout.cf.taste.impl.model.file.FileDataModel
      extended by org.apache.mahout.cf.taste.example.jester.JesterDataModel
All Implemented Interfaces:
Refreshable, DataModel

public final class JesterDataModel
extends FileDataModel


Constructor Summary
JesterDataModel()
           
JesterDataModel(java.io.File ratingsFile)
           
 
Method Summary
protected  DataModel buildModel()
           
protected  void processLine(java.lang.String line, FastByIDMap<?> rawData, boolean fromPriorData)
           
 void reload()
           
 
Methods inherited from class org.apache.mahout.cf.taste.impl.model.file.FileDataModel
determineDelimiter, getDataFile, getDelimiter, getItemIDs, getItemIDsFromUser, getNumItems, getNumUsers, getNumUsersWithPreferenceFor, getPreferencesForItem, getPreferencesFromUser, getPreferenceValue, getUserIDs, hasPreferenceValues, processFile, processFileWithoutID, processLineWithoutID, readItemIDFromString, readUserIDFromString, refresh, removePreference, setPreference, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JesterDataModel

public JesterDataModel()
                throws java.io.IOException
Throws:
java.io.IOException

JesterDataModel

public JesterDataModel(java.io.File ratingsFile)
                throws java.io.IOException
Parameters:
ratingsFile - Jester ratings file in CSV format
Throws:
java.io.IOException - if an error occurs while reading or writing files
Method Detail

reload

public void reload()
Overrides:
reload in class FileDataModel

buildModel

protected DataModel buildModel()
                        throws java.io.IOException
Overrides:
buildModel in class FileDataModel
Throws:
java.io.IOException

processLine

protected void processLine(java.lang.String line,
                           FastByIDMap<?> rawData,
                           boolean fromPriorData)
Overrides:
processLine in class FileDataModel


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.