mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r1039654 - /mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericBooleanPrefDataModel.java
Date Sat, 27 Nov 2010 11:18:25 GMT
Author: srowen
Date: Sat Nov 27 11:18:24 2010
New Revision: 1039654

URL: http://svn.apache.org/viewvc?rev=1039654&view=rev
Log:
Add raw access to item data for internal framework purposes

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

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericBooleanPrefDataModel.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericBooleanPrefDataModel.java?rev=1039654&r1=1039653&r2=1039654&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericBooleanPrefDataModel.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericBooleanPrefDataModel.java
Sat Nov 27 11:18:24 2010
@@ -160,6 +160,13 @@ public final class GenericBooleanPrefDat
   public FastByIDMap<FastIDSet> getRawUserData() {
     return this.preferenceFromUsers;
   }
+
+  /**
+   * This is used mostly internally to the framework, and shouldn't be relied upon otherwise.
+   */
+  public FastByIDMap<FastIDSet> getRawItemData() {
+    return this.preferenceForItems;
+  }
   
   @Override
   public LongPrimitiveArrayIterator getUserIDs() {



Mime
View raw message