mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r685742 - in /lucene/mahout/trunk/core/src/main/examples/org/apache/mahout/cf/taste/ejb: RecommenderEJB.java RecommenderEJBLocal.java
Date Thu, 14 Aug 2008 01:36:19 GMT
Author: srowen
Date: Wed Aug 13 18:36:19 2008
New Revision: 685742

URL: http://svn.apache.org/viewvc?rev=685742&view=rev
Log:
More fixes to refresh() API in EJB implementation

Modified:
    lucene/mahout/trunk/core/src/main/examples/org/apache/mahout/cf/taste/ejb/RecommenderEJB.java
    lucene/mahout/trunk/core/src/main/examples/org/apache/mahout/cf/taste/ejb/RecommenderEJBLocal.java

Modified: lucene/mahout/trunk/core/src/main/examples/org/apache/mahout/cf/taste/ejb/RecommenderEJB.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/examples/org/apache/mahout/cf/taste/ejb/RecommenderEJB.java?rev=685742&r1=685741&r2=685742&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/examples/org/apache/mahout/cf/taste/ejb/RecommenderEJB.java
(original)
+++ lucene/mahout/trunk/core/src/main/examples/org/apache/mahout/cf/taste/ejb/RecommenderEJB.java
Wed Aug 13 18:36:19 2008
@@ -18,12 +18,14 @@
 package org.apache.mahout.cf.taste.ejb;
 
 import org.apache.mahout.cf.taste.common.TasteException;
+import org.apache.mahout.cf.taste.common.Refreshable;
 import org.apache.mahout.cf.taste.model.Item;
 import org.apache.mahout.cf.taste.recommender.Rescorer;
 
 import javax.ejb.EJBObject;
 import java.rmi.RemoteException;
 import java.util.List;
+import java.util.Collection;
 
 /**
  * <p>Recommender EJB component interface.</p>
@@ -39,7 +41,7 @@
   List<Item> recommend(Object userID, int howMany) throws TasteException, RemoteException;
 
   /**
-   * @see org.apache.mahout.cf.taste.recommender.Recommender#recommend(Object, int, org.apache.mahout.cf.taste.recommender.Rescorer)
+   * @see org.apache.mahout.cf.taste.recommender.Recommender#recommend(Object, int, Rescorer)
    */
   List<Item> recommend(Object userID, int howMany, Rescorer<Item> rescorer) throws
TasteException, RemoteException;
 
@@ -60,8 +62,8 @@
   void removePreference(Object userID, Object itemID) throws TasteException, RemoteException;
 
   /**
-   * @see org.apache.mahout.cf.taste.recommender.Recommender#refresh()
+   * @see org.apache.mahout.cf.taste.recommender.Recommender#refresh(Collection<Refreshable>)
    */
-  void refresh();
+  void refresh(Collection<Refreshable> alreadyRefreshed);
 
 }

Modified: lucene/mahout/trunk/core/src/main/examples/org/apache/mahout/cf/taste/ejb/RecommenderEJBLocal.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/examples/org/apache/mahout/cf/taste/ejb/RecommenderEJBLocal.java?rev=685742&r1=685741&r2=685742&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/examples/org/apache/mahout/cf/taste/ejb/RecommenderEJBLocal.java
(original)
+++ lucene/mahout/trunk/core/src/main/examples/org/apache/mahout/cf/taste/ejb/RecommenderEJBLocal.java
Wed Aug 13 18:36:19 2008
@@ -18,11 +18,13 @@
 package org.apache.mahout.cf.taste.ejb;
 
 import org.apache.mahout.cf.taste.common.TasteException;
+import org.apache.mahout.cf.taste.common.Refreshable;
 import org.apache.mahout.cf.taste.model.Item;
 import org.apache.mahout.cf.taste.recommender.Rescorer;
 
 import javax.ejb.EJBLocalObject;
 import java.util.List;
+import java.util.Collection;
 
 /**
  * <p>Recommender EJB local component interface.</p>
@@ -58,8 +60,8 @@
   void removePreference(Object userID, Object itemID) throws TasteException;
 
   /**
-   * @see org.apache.mahout.cf.taste.recommender.Recommender#refresh()
+   * @see org.apache.mahout.cf.taste.recommender.Recommender#refresh(Collection<Refreshable>)
    */
-  void refresh();
+  void refresh(Collection<Refreshable> alreadyRefreshed);
 
 }



Mime
View raw message