mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r956467 - in /mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model: AbstractDataModel.java file/FileDataModel.java
Date Mon, 21 Jun 2010 06:37:05 GMT
Author: srowen
Date: Mon Jun 21 06:37:04 2010
New Revision: 956467

URL: http://svn.apache.org/viewvc?rev=956467&view=rev
Log:
Make superclass serializable to make sure its fields are serializable too

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/AbstractDataModel.java
    mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/AbstractDataModel.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/AbstractDataModel.java?rev=956467&r1=956466&r2=956467&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/AbstractDataModel.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/AbstractDataModel.java
Mon Jun 21 06:37:04 2010
@@ -17,12 +17,14 @@
 
 package org.apache.mahout.cf.taste.impl.model;
 
+import java.io.Serializable;
+
 import org.apache.mahout.cf.taste.model.DataModel;
 
 /**
  * Contains some features common to all implementations.
  */
-public abstract class AbstractDataModel implements DataModel {
+public abstract class AbstractDataModel implements DataModel, Serializable {
 
   private float maxPreference;
   private float minPreference;

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java?rev=956467&r1=956466&r2=956467&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/file/FileDataModel.java
Mon Jun 21 06:37:04 2010
@@ -20,6 +20,7 @@ package org.apache.mahout.cf.taste.impl.
 import java.io.File;
 import java.io.FileNotFoundException;
 import java.io.IOException;
+import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
@@ -100,7 +101,7 @@ import org.slf4j.LoggerFactory;
  * application-specific needs and input formats. See {@link #processLine(String, FastByIDMap,
boolean)} and
  * {@link #processLineWithoutID(String, FastByIDMap)}
  */
-public class FileDataModel extends AbstractDataModel {
+public class FileDataModel extends AbstractDataModel implements Serializable {
 
   private static final Logger log = LoggerFactory.getLogger(FileDataModel.class);
 



Mime
View raw message