| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_121) on Fri Apr 14 22:11:35 PDT 2017 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>PlusAnonymousConcurrentUserDataModel (Mahout Map-Reduce 0.13.0 API)</title> |
| <meta name="date" content="2017-04-14"> |
| <link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="PlusAnonymousConcurrentUserDataModel (Mahout Map-Reduce 0.13.0 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/PlusAnonymousConcurrentUserDataModel.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/MySQLJDBCIDMigrator.html" title="class in org.apache.mahout.cf.taste.impl.model"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../../index.html?org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html" target="_top">Frames</a></li> |
| <li><a href="PlusAnonymousConcurrentUserDataModel.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#fields.inherited.from.class.org.apache.mahout.cf.taste.impl.model.PlusAnonymousUserDataModel">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.mahout.cf.taste.impl.model</div> |
| <h2 title="Class PlusAnonymousConcurrentUserDataModel" class="title">Class PlusAnonymousConcurrentUserDataModel</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">org.apache.mahout.cf.taste.impl.model.PlusAnonymousUserDataModel</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.mahout.cf.taste.impl.model.PlusAnonymousConcurrentUserDataModel</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/common/Refreshable.html" title="interface in org.apache.mahout.cf.taste.common">Refreshable</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public final class <span class="typeNameLabel">PlusAnonymousConcurrentUserDataModel</span> |
| extends <a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></pre> |
| <div class="block"><p> |
| This is a special thread-safe version of <a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model"><code>PlusAnonymousUserDataModel</code></a> |
| which allow multiple concurrent anonymous requests. |
| </p> |
| |
| <p> |
| To use it, you have to estimate the number of concurrent anonymous users of your application. |
| The pool of users with the given size will be created. For each anonymous recommendations request, |
| a user has to be taken from the pool and returned back immediately afterwards. |
| </p> |
| |
| <p> |
| If no more users are available in the pool, anonymous recommendations cannot be produced. |
| </p> |
| |
| </p> |
| |
| Setup: |
| <pre> |
| int concurrentUsers = 100; |
| DataModel realModel = .. |
| PlusAnonymousConcurrentUserDataModel plusModel = |
| new PlusAnonymousConcurrentUserDataModel(realModel, concurrentUsers); |
| Recommender recommender = ...; |
| </pre> |
| |
| Real-time recommendation: |
| <pre> |
| PlusAnonymousConcurrentUserDataModel plusModel = |
| (PlusAnonymousConcurrentUserDataModel) recommender.getDataModel(); |
| |
| // Take the next available anonymous user from the pool |
| Long anonymousUserID = plusModel.takeAvailableUser(); |
| |
| PreferenceArray tempPrefs = .. |
| tempPrefs.setUserID(0, anonymousUserID); |
| tempPrefs.setItemID(0, itemID); |
| plusModel.setTempPrefs(tempPrefs, anonymousUserID); |
| |
| // Produce recommendations |
| recommender.recommend(anonymousUserID, howMany); |
| |
| // It is very IMPORTANT to release user back to the pool |
| plusModel.releaseUser(anonymousUserID); |
| </pre> |
| |
| </p></div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../../../serialized-form.html#org.apache.mahout.cf.taste.impl.model.PlusAnonymousConcurrentUserDataModel">Serialized Form</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.apache.mahout.cf.taste.impl.model.PlusAnonymousUserDataModel"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.apache.mahout.cf.taste.impl.model.<a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></h3> |
| <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#TEMP_USER_ID">TEMP_USER_ID</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#PlusAnonymousConcurrentUserDataModel-org.apache.mahout.cf.taste.model.DataModel-int-">PlusAnonymousConcurrentUserDataModel</a></span>(<a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a> delegate, |
| int maxConcurrentUsers)</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#clearTempPrefs-long-">clearTempPrefs</a></span>(long anonymousUserID)</code> |
| <div class="block">Clears temporary preferences for a given anonymous user.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/common/FastIDSet.html" title="class in org.apache.mahout.cf.taste.impl.common">FastIDSet</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#getItemIDsFromUser-long-">getItemIDsFromUser</a></span>(long userID)</code> </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#getNumUsers--">getNumUsers</a></span>()</code> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#getNumUsersWithPreferenceFor-long-">getNumUsersWithPreferenceFor</a></span>(long itemID)</code> </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#getNumUsersWithPreferenceFor-long-long-">getNumUsersWithPreferenceFor</a></span>(long itemID1, |
| long itemID2)</code> </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/PreferenceArray.html" title="interface in org.apache.mahout.cf.taste.model">PreferenceArray</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#getPreferencesForItem-long-">getPreferencesForItem</a></span>(long itemID)</code> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/PreferenceArray.html" title="interface in org.apache.mahout.cf.taste.model">PreferenceArray</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#getPreferencesFromUser-long-">getPreferencesFromUser</a></span>(long userID)</code> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#getPreferenceTime-long-long-">getPreferenceTime</a></span>(long userID, |
| long itemID)</code> |
| <div class="block">Retrieves the time at which a preference value from a user and item was set, if known.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang">Float</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#getPreferenceValue-long-long-">getPreferenceValue</a></span>(long userID, |
| long itemID)</code> |
| <div class="block">Retrieves the preference value for a single user and item.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/common/LongPrimitiveIterator.html" title="interface in org.apache.mahout.cf.taste.impl.common">LongPrimitiveIterator</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#getUserIDs--">getUserIDs</a></span>()</code> </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#releaseUser-java.lang.Long-">releaseUser</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a> userID)</code> |
| <div class="block">Release previously taken anonymous user and return it to the pool.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#removePreference-long-long-">removePreference</a></span>(long userID, |
| long itemID)</code> |
| <div class="block"> |
| Removes a particular preference for a user.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#setPreference-long-long-float-">setPreference</a></span>(long userID, |
| long itemID, |
| float value)</code> |
| <div class="block"> |
| Sets a particular preference (item plus rating) for a user.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#setTempPrefs-org.apache.mahout.cf.taste.model.PreferenceArray-long-">setTempPrefs</a></span>(<a href="../../../../../../../org/apache/mahout/cf/taste/model/PreferenceArray.html" title="interface in org.apache.mahout.cf.taste.model">PreferenceArray</a> prefs, |
| long anonymousUserID)</code> |
| <div class="block">Sets temporary preferences for a given anonymous user.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html#takeAvailableUser--">takeAvailableUser</a></span>()</code> |
| <div class="block">Take the next available concurrent anonymous users from the pool.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.cf.taste.impl.model.PlusAnonymousUserDataModel"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.mahout.cf.taste.impl.model.<a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></h3> |
| <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#clearTempPrefs--">clearTempPrefs</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getDelegate--">getDelegate</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getItemIDs--">getItemIDs</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getMaxPreference--">getMaxPreference</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getMinPreference--">getMinPreference</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getNumItems--">getNumItems</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#hasPreferenceValues--">hasPreferenceValues</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#refresh-java.util.Collection-">refresh</a>, <a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#setTempPrefs-org.apache.mahout.cf.taste.model.PreferenceArray-">setTempPrefs</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="PlusAnonymousConcurrentUserDataModel-org.apache.mahout.cf.taste.model.DataModel-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>PlusAnonymousConcurrentUserDataModel</h4> |
| <pre>public PlusAnonymousConcurrentUserDataModel(<a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a> delegate, |
| int maxConcurrentUsers)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>delegate</code> - Real model where anonymous users will be added to</dd> |
| <dd><code>maxConcurrentUsers</code> - Maximum allowed number of concurrent anonymous users</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="takeAvailableUser--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>takeAvailableUser</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a> takeAvailableUser()</pre> |
| <div class="block">Take the next available concurrent anonymous users from the pool.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>User ID or null if no more users are available</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="releaseUser-java.lang.Long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>releaseUser</h4> |
| <pre>public boolean releaseUser(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a> userID)</pre> |
| <div class="block">Release previously taken anonymous user and return it to the pool.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>userID</code> - ID of a previously taken anonymous user</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if the user was previously taken, false otherwise</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setTempPrefs-org.apache.mahout.cf.taste.model.PreferenceArray-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setTempPrefs</h4> |
| <pre>public void setTempPrefs(<a href="../../../../../../../org/apache/mahout/cf/taste/model/PreferenceArray.html" title="interface in org.apache.mahout.cf.taste.model">PreferenceArray</a> prefs, |
| long anonymousUserID)</pre> |
| <div class="block">Sets temporary preferences for a given anonymous user.</div> |
| </li> |
| </ul> |
| <a name="clearTempPrefs-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>clearTempPrefs</h4> |
| <pre>public void clearTempPrefs(long anonymousUserID)</pre> |
| <div class="block">Clears temporary preferences for a given anonymous user.</div> |
| </li> |
| </ul> |
| <a name="getUserIDs--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getUserIDs</h4> |
| <pre>public <a href="../../../../../../../org/apache/mahout/cf/taste/impl/common/LongPrimitiveIterator.html" title="interface in org.apache.mahout.cf.taste.impl.common">LongPrimitiveIterator</a> getUserIDs() |
| throws <a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#getUserIDs--">getUserIDs</a></code> in interface <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getUserIDs--">getUserIDs</a></code> in class <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>all user IDs in the model, in order</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code> - if an error occurs while accessing the data</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPreferencesFromUser-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPreferencesFromUser</h4> |
| <pre>public <a href="../../../../../../../org/apache/mahout/cf/taste/model/PreferenceArray.html" title="interface in org.apache.mahout.cf.taste.model">PreferenceArray</a> getPreferencesFromUser(long userID) |
| throws <a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#getPreferencesFromUser-long-">getPreferencesFromUser</a></code> in interface <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getPreferencesFromUser-long-">getPreferencesFromUser</a></code> in class <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>userID</code> - ID of user to get prefs for</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>user's preferences, ordered by item ID</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/NoSuchUserException.html" title="class in org.apache.mahout.cf.taste.common">NoSuchUserException</a></code> - if the user does not exist</dd> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code> - if an error occurs while accessing the data</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getItemIDsFromUser-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getItemIDsFromUser</h4> |
| <pre>public <a href="../../../../../../../org/apache/mahout/cf/taste/impl/common/FastIDSet.html" title="class in org.apache.mahout.cf.taste.impl.common">FastIDSet</a> getItemIDsFromUser(long userID) |
| throws <a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#getItemIDsFromUser-long-">getItemIDsFromUser</a></code> in interface <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getItemIDsFromUser-long-">getItemIDsFromUser</a></code> in class <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>userID</code> - ID of user to get prefs for</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>IDs of items user expresses a preference for</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/NoSuchUserException.html" title="class in org.apache.mahout.cf.taste.common">NoSuchUserException</a></code> - if the user does not exist</dd> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code> - if an error occurs while accessing the data</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPreferencesForItem-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPreferencesForItem</h4> |
| <pre>public <a href="../../../../../../../org/apache/mahout/cf/taste/model/PreferenceArray.html" title="interface in org.apache.mahout.cf.taste.model">PreferenceArray</a> getPreferencesForItem(long itemID) |
| throws <a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#getPreferencesForItem-long-">getPreferencesForItem</a></code> in interface <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getPreferencesForItem-long-">getPreferencesForItem</a></code> in class <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>itemID</code> - item ID</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>all existing <a href="../../../../../../../org/apache/mahout/cf/taste/model/Preference.html" title="interface in org.apache.mahout.cf.taste.model"><code>Preference</code></a>s expressed for that item, ordered by user ID, as an array</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/NoSuchItemException.html" title="class in org.apache.mahout.cf.taste.common">NoSuchItemException</a></code> - if the item does not exist</dd> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code> - if an error occurs while accessing the data</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPreferenceValue-long-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPreferenceValue</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Float.html?is-external=true" title="class or interface in java.lang">Float</a> getPreferenceValue(long userID, |
| long itemID) |
| throws <a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#getPreferenceValue-long-long-">DataModel</a></code></span></div> |
| <div class="block">Retrieves the preference value for a single user and item.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#getPreferenceValue-long-long-">getPreferenceValue</a></code> in interface <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getPreferenceValue-long-long-">getPreferenceValue</a></code> in class <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>userID</code> - user ID to get pref value from</dd> |
| <dd><code>itemID</code> - item ID to get pref value for</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>preference value from the given user for the given item or null if none exists</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/NoSuchUserException.html" title="class in org.apache.mahout.cf.taste.common">NoSuchUserException</a></code> - if the user does not exist</dd> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code> - if an error occurs while accessing the data</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPreferenceTime-long-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPreferenceTime</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a> getPreferenceTime(long userID, |
| long itemID) |
| throws <a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#getPreferenceTime-long-long-">DataModel</a></code></span></div> |
| <div class="block">Retrieves the time at which a preference value from a user and item was set, if known. |
| Time is expressed in the usual way, as a number of milliseconds since the epoch.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#getPreferenceTime-long-long-">getPreferenceTime</a></code> in interface <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getPreferenceTime-long-long-">getPreferenceTime</a></code> in class <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>userID</code> - user ID for preference in question</dd> |
| <dd><code>itemID</code> - item ID for preference in question</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>time at which preference was set or null if no preference exists or its time is not known</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/NoSuchUserException.html" title="class in org.apache.mahout.cf.taste.common">NoSuchUserException</a></code> - if the user does not exist</dd> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code> - if an error occurs while accessing the data</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNumUsers--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNumUsers</h4> |
| <pre>public int getNumUsers() |
| throws <a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#getNumUsers--">getNumUsers</a></code> in interface <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getNumUsers--">getNumUsers</a></code> in class <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>total number of users known to the model.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code> - if an error occurs while accessing the data</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNumUsersWithPreferenceFor-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNumUsersWithPreferenceFor</h4> |
| <pre>public int getNumUsersWithPreferenceFor(long itemID) |
| throws <a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#getNumUsersWithPreferenceFor-long-">getNumUsersWithPreferenceFor</a></code> in interface <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getNumUsersWithPreferenceFor-long-">getNumUsersWithPreferenceFor</a></code> in class <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>itemID</code> - item ID to check for</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the number of users who have expressed a preference for the item</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code> - if an error occurs while accessing the data</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNumUsersWithPreferenceFor-long-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNumUsersWithPreferenceFor</h4> |
| <pre>public int getNumUsersWithPreferenceFor(long itemID1, |
| long itemID2) |
| throws <a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#getNumUsersWithPreferenceFor-long-long-">getNumUsersWithPreferenceFor</a></code> in interface <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#getNumUsersWithPreferenceFor-long-long-">getNumUsersWithPreferenceFor</a></code> in class <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>itemID1</code> - first item ID to check for</dd> |
| <dd><code>itemID2</code> - second item ID to check for</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the number of users who have expressed a preference for the items</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code> - if an error occurs while accessing the data</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setPreference-long-long-float-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setPreference</h4> |
| <pre>public void setPreference(long userID, |
| long itemID, |
| float value) |
| throws <a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#setPreference-long-long-float-">DataModel</a></code></span></div> |
| <div class="block"><p> |
| Sets a particular preference (item plus rating) for a user. |
| </p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#setPreference-long-long-float-">setPreference</a></code> in interface <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#setPreference-long-long-float-">setPreference</a></code> in class <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>userID</code> - user to set preference for</dd> |
| <dd><code>itemID</code> - item to set preference for</dd> |
| <dd><code>value</code> - preference value</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/NoSuchItemException.html" title="class in org.apache.mahout.cf.taste.common">NoSuchItemException</a></code> - if the item does not exist</dd> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/NoSuchUserException.html" title="class in org.apache.mahout.cf.taste.common">NoSuchUserException</a></code> - if the user does not exist</dd> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code> - if an error occurs while accessing the data</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="removePreference-long-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>removePreference</h4> |
| <pre>public void removePreference(long userID, |
| long itemID) |
| throws <a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#removePreference-long-long-">DataModel</a></code></span></div> |
| <div class="block"><p> |
| Removes a particular preference for a user. |
| </p></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html#removePreference-long-long-">removePreference</a></code> in interface <code><a href="../../../../../../../org/apache/mahout/cf/taste/model/DataModel.html" title="interface in org.apache.mahout.cf.taste.model">DataModel</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html#removePreference-long-long-">removePreference</a></code> in class <code><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model">PlusAnonymousUserDataModel</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>userID</code> - user from which to remove preference</dd> |
| <dd><code>itemID</code> - item to remove preference for</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/NoSuchItemException.html" title="class in org.apache.mahout.cf.taste.common">NoSuchItemException</a></code> - if the item does not exist</dd> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/NoSuchUserException.html" title="class in org.apache.mahout.cf.taste.common">NoSuchUserException</a></code> - if the user does not exist</dd> |
| <dd><code><a href="../../../../../../../org/apache/mahout/cf/taste/common/TasteException.html" title="class in org.apache.mahout.cf.taste.common">TasteException</a></code> - if an error occurs while accessing the data</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/PlusAnonymousConcurrentUserDataModel.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/MySQLJDBCIDMigrator.html" title="class in org.apache.mahout.cf.taste.impl.model"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../../../org/apache/mahout/cf/taste/impl/model/PlusAnonymousUserDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../../index.html?org/apache/mahout/cf/taste/impl/model/PlusAnonymousConcurrentUserDataModel.html" target="_top">Frames</a></li> |
| <li><a href="PlusAnonymousConcurrentUserDataModel.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#fields.inherited.from.class.org.apache.mahout.cf.taste.impl.model.PlusAnonymousUserDataModel">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2008–2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |