mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r1055233 - /mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericDataModel.java
Date Tue, 04 Jan 2011 22:55:05 GMT
Author: srowen
Date: Tue Jan  4 22:55:05 2011
New Revision: 1055233

URL: http://svn.apache.org/viewvc?rev=1055233&view=rev
Log:
Minor change to allow (use-at-your-own-risk) access to internal data structure of in-memory
model.

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

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericDataModel.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericDataModel.java?rev=1055233&r1=1055232&r2=1055233&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericDataModel.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/impl/model/GenericDataModel.java
Tue Jan  4 22:55:05 2011
@@ -189,7 +189,14 @@ public final class GenericDataModel exte
   public FastByIDMap<PreferenceArray> getRawUserData() {
     return this.preferenceFromUsers;
   }
-  
+
+  /**
+   * This is used mostly internally to the framework, and shouldn't be relied upon otherwise.
+   */
+  public FastByIDMap<PreferenceArray> getRawItemData() {
+    return this.preferenceForItems;
+  }
+
   @Override
   public LongPrimitiveArrayIterator getUserIDs() {
     return new LongPrimitiveArrayIterator(userIDs);



Mime
View raw message