| <!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:10:58 PDT 2017 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>OpenCharFloatHashMap (Mahout Math 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="OpenCharFloatHashMap (Mahout Math 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,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":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/OpenCharFloatHashMap.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/math/map/OpenCharDoubleHashMap.MapIterator.html" title="class in org.apache.mahout.math.map"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.MapElement.html" title="class in org.apache.mahout.math.map"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/mahout/math/map/OpenCharFloatHashMap.html" target="_top">Frames</a></li> |
| <li><a href="OpenCharFloatHashMap.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><a href="#nested.class.summary">Nested</a> | </li> |
| <li><a href="#field.summary">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><a href="#field.detail">Field</a> | </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.math.map</div> |
| <h2 title="Class OpenCharFloatHashMap" class="title">Class OpenCharFloatHashMap</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/math/PersistentObject.html" title="class in org.apache.mahout.math">org.apache.mahout.math.PersistentObject</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">org.apache.mahout.math.set.AbstractSet</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">org.apache.mahout.math.map.AbstractCharFloatMap</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.mahout.math.map.OpenCharFloatHashMap</li> |
| </ul> |
| </li> |
| </ul> |
| </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="http://docs.oracle.com/javase/7/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">OpenCharFloatHashMap</span> |
| extends <a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></pre> |
| <div class="block">Open hash map from char keys to float values.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../serialized-form.html#org.apache.mahout.math.map.OpenCharFloatHashMap">Serialized Form</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Class and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.MapElement.html" title="class in org.apache.mahout.math.map">OpenCharFloatHashMap.MapElement</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.MapIterator.html" title="class in org.apache.mahout.math.map">OpenCharFloatHashMap.MapIterator</a></span></code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#FREE">FREE</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#freeEntries">freeEntries</a></span></code> |
| <div class="block">The number of table entries in state==FREE.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#FULL">FULL</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected static char</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#NO_KEY_VALUE">NO_KEY_VALUE</a></span></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#REMOVED">REMOVED</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#state">state</a></span></code> |
| <div class="block">The state of each hash table entry (FREE, FULL, REMOVED).</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected char[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#table">table</a></span></code> |
| <div class="block">The hash table keys.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected float[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#values">values</a></span></code> |
| <div class="block">The hash table values.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.apache.mahout.math.set.AbstractSet"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.apache.mahout.math.set.<a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">AbstractSet</a></h3> |
| <code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#DEFAULT_CAPACITY">DEFAULT_CAPACITY</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#DEFAULT_MAX_LOAD_FACTOR">DEFAULT_MAX_LOAD_FACTOR</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#DEFAULT_MIN_LOAD_FACTOR">DEFAULT_MIN_LOAD_FACTOR</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#distinct">distinct</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#highWaterMark">highWaterMark</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#lowWaterMark">lowWaterMark</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#maxLoadFactor">maxLoadFactor</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#minLoadFactor">minLoadFactor</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/math/map/OpenCharFloatHashMap.html#OpenCharFloatHashMap--">OpenCharFloatHashMap</a></span>()</code> |
| <div class="block">Constructs an empty map with default capacity and default load factors.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#OpenCharFloatHashMap-int-">OpenCharFloatHashMap</a></span>(int initialCapacity)</code> |
| <div class="block">Constructs an empty map with the specified initial capacity and default load factors.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#OpenCharFloatHashMap-int-double-double-">OpenCharFloatHashMap</a></span>(int initialCapacity, |
| double minLoadFactor, |
| double maxLoadFactor)</code> |
| <div class="block">Constructs an empty map with the specified initial capacity and the specified minimum and maximum load factor.</div> |
| </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>float</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#adjustOrPutValue-char-float-float-">adjustOrPutValue</a></span>(char key, |
| float newValue, |
| float incrValue)</code> |
| <div class="block">Check the map for a key.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#clear--">clear</a></span>()</code> |
| <div class="block">Removes all (key,value) associations from the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><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></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#clone--">clone</a></span>()</code> |
| <div class="block">Returns a deep copy of the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#containsKey-char-">containsKey</a></span>(char key)</code> |
| <div class="block">Returns <tt>true</tt> if the receiver contains the specified key.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#containsValue-float-">containsValue</a></span>(float value)</code> |
| <div class="block">Returns <tt>true</tt> if the receiver contains the specified value.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#ensureCapacity-int-">ensureCapacity</a></span>(int minCapacity)</code> |
| <div class="block">Ensures that the receiver can hold at least the specified number of associations without needing to allocate new |
| internal memory.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#forEachKey-org.apache.mahout.math.function.CharProcedure-">forEachKey</a></span>(<a href="../../../../../org/apache/mahout/math/function/CharProcedure.html" title="interface in org.apache.mahout.math.function">CharProcedure</a> procedure)</code> |
| <div class="block">Applies a procedure to each key of the receiver, if any.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#forEachPair-org.apache.mahout.math.function.CharFloatProcedure-">forEachPair</a></span>(<a href="../../../../../org/apache/mahout/math/function/CharFloatProcedure.html" title="interface in org.apache.mahout.math.function">CharFloatProcedure</a> procedure)</code> |
| <div class="block">Applies a procedure to each (key,value) pair of the receiver, if any.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>float</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#get-char-">get</a></span>(char key)</code> |
| <div class="block">Returns the value associated with the specified key.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#getInternalFactors-int:A-double:A-double:A-">getInternalFactors</a></span>(int[] capacity, |
| double[] minLoadFactor, |
| double[] maxLoadFactor)</code> |
| <div class="block">Access for unit tests.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>protected int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#indexOfInsertion-char-">indexOfInsertion</a></span>(char key)</code> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>protected int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#indexOfKey-char-">indexOfKey</a></span>(char key)</code> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>protected int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#indexOfValue-float-">indexOfValue</a></span>(float value)</code> </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.MapElement.html" title="class in org.apache.mahout.math.map">OpenCharFloatHashMap.MapElement</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#iterator--">iterator</a></span>()</code> </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#keys-org.apache.mahout.math.list.CharArrayList-">keys</a></span>(<a href="../../../../../org/apache/mahout/math/list/CharArrayList.html" title="class in org.apache.mahout.math.list">CharArrayList</a> list)</code> |
| <div class="block">Fills all keys contained in the receiver into the specified list.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#pairsMatching-org.apache.mahout.math.function.CharFloatProcedure-org.apache.mahout.math.list.CharArrayList-org.apache.mahout.math.list.FloatArrayList-">pairsMatching</a></span>(<a href="../../../../../org/apache/mahout/math/function/CharFloatProcedure.html" title="interface in org.apache.mahout.math.function">CharFloatProcedure</a> condition, |
| <a href="../../../../../org/apache/mahout/math/list/CharArrayList.html" title="class in org.apache.mahout.math.list">CharArrayList</a> keyList, |
| <a href="../../../../../org/apache/mahout/math/list/FloatArrayList.html" title="class in org.apache.mahout.math.list">FloatArrayList</a> valueList)</code> |
| <div class="block">Fills all pairs satisfying a given condition into the specified lists.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#put-char-float-">put</a></span>(char key, |
| float value)</code> |
| <div class="block">Associates the given key with the given value.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#rehash-int-">rehash</a></span>(int newCapacity)</code> |
| <div class="block">Rehashes the contents of the receiver into a new table with a smaller or larger capacity.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#removeKey-char-">removeKey</a></span>(char key)</code> |
| <div class="block">Removes the given key with its associated element from the receiver, if present.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#setUp-int-double-double-">setUp</a></span>(int initialCapacity, |
| double minLoadFactor, |
| double maxLoadFactor)</code> |
| <div class="block">Initializes the receiver.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#trimToSize--">trimToSize</a></span>()</code> |
| <div class="block">Trims the capacity of the receiver to be the receiver's current size.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#values-org.apache.mahout.math.list.FloatArrayList-">values</a></span>(<a href="../../../../../org/apache/mahout/math/list/FloatArrayList.html" title="class in org.apache.mahout.math.list">FloatArrayList</a> list)</code> |
| <div class="block">Fills all values contained in the receiver into the specified list.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.math.map.AbstractCharFloatMap"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.mahout.math.map.<a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></h3> |
| <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#assign-org.apache.mahout.math.map.AbstractCharFloatMap-">assign</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#assign-org.apache.mahout.math.function.FloatFunction-">assign</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#copy--">copy</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#equals-java.lang.Object-">equals</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#hashCode--">hashCode</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#keys--">keys</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#keysSortedByValue-org.apache.mahout.math.list.CharArrayList-">keysSortedByValue</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#pairsSortedByKey-org.apache.mahout.math.list.CharArrayList-org.apache.mahout.math.list.FloatArrayList-">pairsSortedByKey</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#pairsSortedByValue-org.apache.mahout.math.list.CharArrayList-org.apache.mahout.math.list.FloatArrayList-">pairsSortedByValue</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#toString--">toString</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#toStringByValue--">toStringByValue</a>, <a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#values--">values</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.math.set.AbstractSet"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.mahout.math.set.<a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">AbstractSet</a></h3> |
| <code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#chooseGrowCapacity-int-double-double-">chooseGrowCapacity</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#chooseHighWaterMark-int-double-">chooseHighWaterMark</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#chooseLowWaterMark-int-double-">chooseLowWaterMark</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#chooseMeanCapacity-int-double-double-">chooseMeanCapacity</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#chooseShrinkCapacity-int-double-double-">chooseShrinkCapacity</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#equalsMindTheNull-java.lang.Object-java.lang.Object-">equalsMindTheNull</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#isEmpty--">isEmpty</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#nextPrime-int-">nextPrime</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#size--">size</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#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#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#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"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="FREE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>FREE</h4> |
| <pre>protected static final byte FREE</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.mahout.math.map.OpenCharFloatHashMap.FREE">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="FULL"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>FULL</h4> |
| <pre>protected static final byte FULL</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.mahout.math.map.OpenCharFloatHashMap.FULL">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="REMOVED"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>REMOVED</h4> |
| <pre>protected static final byte REMOVED</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.mahout.math.map.OpenCharFloatHashMap.REMOVED">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="NO_KEY_VALUE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>NO_KEY_VALUE</h4> |
| <pre>protected static final char NO_KEY_VALUE</pre> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../constant-values.html#org.apache.mahout.math.map.OpenCharFloatHashMap.NO_KEY_VALUE">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="table"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>table</h4> |
| <pre>protected char[] table</pre> |
| <div class="block">The hash table keys.</div> |
| </li> |
| </ul> |
| <a name="values"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>values</h4> |
| <pre>protected float[] values</pre> |
| <div class="block">The hash table values.</div> |
| </li> |
| </ul> |
| <a name="state"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>state</h4> |
| <pre>protected byte[] state</pre> |
| <div class="block">The state of each hash table entry (FREE, FULL, REMOVED).</div> |
| </li> |
| </ul> |
| <a name="freeEntries"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>freeEntries</h4> |
| <pre>protected int freeEntries</pre> |
| <div class="block">The number of table entries in state==FREE.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="OpenCharFloatHashMap--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>OpenCharFloatHashMap</h4> |
| <pre>public OpenCharFloatHashMap()</pre> |
| <div class="block">Constructs an empty map with default capacity and default load factors.</div> |
| </li> |
| </ul> |
| <a name="OpenCharFloatHashMap-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>OpenCharFloatHashMap</h4> |
| <pre>public OpenCharFloatHashMap(int initialCapacity)</pre> |
| <div class="block">Constructs an empty map with the specified initial capacity and default load factors.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>initialCapacity</code> - the initial capacity of the map.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the initial capacity is less than zero.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="OpenCharFloatHashMap-int-double-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>OpenCharFloatHashMap</h4> |
| <pre>public OpenCharFloatHashMap(int initialCapacity, |
| double minLoadFactor, |
| double maxLoadFactor)</pre> |
| <div class="block">Constructs an empty map with the specified initial capacity and the specified minimum and maximum load factor.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>initialCapacity</code> - the initial capacity.</dd> |
| <dd><code>minLoadFactor</code> - the minimum load factor.</dd> |
| <dd><code>maxLoadFactor</code> - the maximum load factor.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <tt>initialCapacity < 0 || (minLoadFactor < 0.0 || minLoadFactor >= 1.0) || |
| (maxLoadFactor <= 0.0 || maxLoadFactor >= 1.0) || (minLoadFactor >= |
| maxLoadFactor)</tt>.</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="clear--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>clear</h4> |
| <pre>public void clear()</pre> |
| <div class="block">Removes all (key,value) associations from the receiver. Implicitly calls <tt>trimToSize()</tt>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#clear--">clear</a></code> in class <code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">AbstractSet</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="clone--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>clone</h4> |
| <pre>public <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> clone()</pre> |
| <div class="block">Returns a deep copy of the receiver.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/PersistentObject.html#clone--">clone</a></code> in class <code><a href="../../../../../org/apache/mahout/math/PersistentObject.html" title="class in org.apache.mahout.math">PersistentObject</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a deep copy of the receiver.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="containsKey-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>containsKey</h4> |
| <pre>public boolean containsKey(char key)</pre> |
| <div class="block">Returns <tt>true</tt> if the receiver contains the specified key.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#containsKey-char-">containsKey</a></code> in class <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><tt>true</tt> if the receiver contains the specified key.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="containsValue-float-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>containsValue</h4> |
| <pre>public boolean containsValue(float value)</pre> |
| <div class="block">Returns <tt>true</tt> if the receiver contains the specified value.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#containsValue-float-">containsValue</a></code> in class <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><tt>true</tt> if the receiver contains the specified value.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ensureCapacity-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ensureCapacity</h4> |
| <pre>public void ensureCapacity(int minCapacity)</pre> |
| <div class="block">Ensures that the receiver can hold at least the specified number of associations without needing to allocate new |
| internal memory. If necessary, allocates new internal memory and increases the capacity of the receiver. <p> This |
| method never need be called; it is for performance tuning only. Calling this method before <tt>put()</tt>ing a |
| large number of associations boosts performance, because the receiver will grow only once instead of potentially |
| many times and hash collisions get less probable.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#ensureCapacity-int-">ensureCapacity</a></code> in class <code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">AbstractSet</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>minCapacity</code> - the desired minimum capacity.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="forEachKey-org.apache.mahout.math.function.CharProcedure-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>forEachKey</h4> |
| <pre>public boolean forEachKey(<a href="../../../../../org/apache/mahout/math/function/CharProcedure.html" title="interface in org.apache.mahout.math.function">CharProcedure</a> procedure)</pre> |
| <div class="block">Applies a procedure to each key of the receiver, if any. Note: Iterates over the keys in no particular order. |
| Subclasses can define a particular order, for example, "sorted by key". All methods which <i>can</i> be expressed |
| in terms of this method (most methods can) <i>must guarantee</i> to use the <i>same</i> order defined by this |
| method, even if it is no particular order. This is necessary so that, for example, methods <tt>keys</tt> and |
| <tt>values</tt> will yield association pairs, not two uncorrelated lists.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#forEachKey-org.apache.mahout.math.function.CharProcedure-">forEachKey</a></code> in class <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>procedure</code> - the procedure to be applied. Stops iteration if the procedure returns <tt>false</tt>, otherwise |
| continues.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><tt>false</tt> if the procedure stopped before all keys where iterated over, <tt>true</tt> otherwise.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="forEachPair-org.apache.mahout.math.function.CharFloatProcedure-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>forEachPair</h4> |
| <pre>public boolean forEachPair(<a href="../../../../../org/apache/mahout/math/function/CharFloatProcedure.html" title="interface in org.apache.mahout.math.function">CharFloatProcedure</a> procedure)</pre> |
| <div class="block">Applies a procedure to each (key,value) pair of the receiver, if any. Iteration order is guaranteed to be |
| <i>identical</i> to the order used by method <a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#forEachKey-org.apache.mahout.math.function.CharProcedure-"><code>forEachKey(CharProcedure)</code></a>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#forEachPair-org.apache.mahout.math.function.CharFloatProcedure-">forEachPair</a></code> in class <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>procedure</code> - the procedure to be applied. Stops iteration if the procedure returns <tt>false</tt>, otherwise |
| continues.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><tt>false</tt> if the procedure stopped before all keys where iterated over, <tt>true</tt> otherwise.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="get-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre>public float get(char key)</pre> |
| <div class="block">Returns the value associated with the specified key. It is often a good idea to first check with |
| containsKey(char) whether the given key has a value associated or not, i.e. whether there exists an association |
| for the given key or not.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#get-char-">get</a></code> in class <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the key to be searched for.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the value associated with the specified key; <tt>0</tt> if no such key is present.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="indexOfInsertion-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexOfInsertion</h4> |
| <pre>protected int indexOfInsertion(char key)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the key to be added to the receiver.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the index where the key would need to be inserted, if it is not already contained. Returns -index-1 if the |
| key is already contained at slot index. Therefore, if the returned index < 0, then it is already contained |
| at slot -index-1. If the returned index >= 0, then it is NOT already contained and should be inserted at |
| slot index.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="indexOfKey-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexOfKey</h4> |
| <pre>protected int indexOfKey(char key)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the key to be searched in the receiver.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the index where the key is contained in the receiver, returns -1 if the key was not found.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="indexOfValue-float-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexOfValue</h4> |
| <pre>protected int indexOfValue(float value)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the value to be searched in the receiver.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the index where the value is contained in the receiver, returns -1 if the value was not found.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="keys-org.apache.mahout.math.list.CharArrayList-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>keys</h4> |
| <pre>public void keys(<a href="../../../../../org/apache/mahout/math/list/CharArrayList.html" title="class in org.apache.mahout.math.list">CharArrayList</a> list)</pre> |
| <div class="block">Fills all keys contained in the receiver into the specified list. Fills the list, starting at index 0. After this |
| call returns the specified list has a new size that equals <tt>this.size()</tt>. Iteration order is guaranteed to |
| be <i>identical</i> to the order used by method <a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#forEachKey-org.apache.mahout.math.function.CharProcedure-"><code>forEachKey(CharProcedure)</code></a>. |
| <p> This method can be used |
| to iterate over the keys of the receiver.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#keys-org.apache.mahout.math.list.CharArrayList-">keys</a></code> in class <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>list</code> - the list to be filled, can have any size.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="iterator--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>iterator</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.MapElement.html" title="class in org.apache.mahout.math.map">OpenCharFloatHashMap.MapElement</a>> iterator()</pre> |
| </li> |
| </ul> |
| <a name="pairsMatching-org.apache.mahout.math.function.CharFloatProcedure-org.apache.mahout.math.list.CharArrayList-org.apache.mahout.math.list.FloatArrayList-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pairsMatching</h4> |
| <pre>public void pairsMatching(<a href="../../../../../org/apache/mahout/math/function/CharFloatProcedure.html" title="interface in org.apache.mahout.math.function">CharFloatProcedure</a> condition, |
| <a href="../../../../../org/apache/mahout/math/list/CharArrayList.html" title="class in org.apache.mahout.math.list">CharArrayList</a> keyList, |
| <a href="../../../../../org/apache/mahout/math/list/FloatArrayList.html" title="class in org.apache.mahout.math.list">FloatArrayList</a> valueList)</pre> |
| <div class="block">Fills all pairs satisfying a given condition into the specified lists. Fills into the lists, starting at index 0. |
| After this call returns the specified lists both have a new size, the number of pairs satisfying the condition. |
| Iteration order is guaranteed to be <i>identical</i> to the order used by method <a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#forEachKey-org.apache.mahout.math.function.CharProcedure-"><code>forEachKey(CharProcedure)</code></a>. <p> <b>Example:</b> <br> |
| <pre> |
| CharFloatProcedure condition = new CharFloatProcedure() { // match even values only |
| public boolean apply(char key, float value) { return value%2==0; } |
| } |
| keys = (8,7,6), values = (1,2,2) --> keyList = (6,8), valueList = (2,1)</tt> |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#pairsMatching-org.apache.mahout.math.function.CharFloatProcedure-org.apache.mahout.math.list.CharArrayList-org.apache.mahout.math.list.FloatArrayList-">pairsMatching</a></code> in class <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>condition</code> - the condition to be matched. Takes the current key as first and the current value as second |
| argument.</dd> |
| <dd><code>keyList</code> - the list to be filled with keys, can have any size.</dd> |
| <dd><code>valueList</code> - the list to be filled with values, can have any size.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="put-char-float-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public boolean put(char key, |
| float value)</pre> |
| <div class="block">Associates the given key with the given value. Replaces any old <tt>(key,someOtherValue)</tt> association, if |
| existing.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#put-char-float-">put</a></code> in class <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the key the value shall be associated with.</dd> |
| <dd><code>value</code> - the value to be associated.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><tt>true</tt> if the receiver did not already contain such a key; <tt>false</tt> if the receiver did |
| already contain such a key - the new value has now replaced the formerly associated value.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="adjustOrPutValue-char-float-float-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>adjustOrPutValue</h4> |
| <pre>public float adjustOrPutValue(char key, |
| float newValue, |
| float incrValue)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#adjustOrPutValue-char-float-float-">AbstractCharFloatMap</a></code></span></div> |
| <div class="block">Check the map for a key. If present, add an increment to the value. If absent, |
| store a specified value.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#adjustOrPutValue-char-float-float-">adjustOrPutValue</a></code> in class <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the key.</dd> |
| <dd><code>newValue</code> - the value to store if the key is not currently in the map.</dd> |
| <dd><code>incrValue</code> - the value to be added to the current value in the map.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="rehash-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>rehash</h4> |
| <pre>protected void rehash(int newCapacity)</pre> |
| <div class="block">Rehashes the contents of the receiver into a new table with a smaller or larger capacity. This method is called |
| automatically when the number of keys in the receiver exceeds the high water mark or falls below the low water |
| mark.</div> |
| </li> |
| </ul> |
| <a name="removeKey-char-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeKey</h4> |
| <pre>public boolean removeKey(char key)</pre> |
| <div class="block">Removes the given key with its associated element from the receiver, if present.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#removeKey-char-">removeKey</a></code> in class <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the key to be removed from the receiver.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><tt>true</tt> if the receiver contained the specified key, <tt>false</tt> otherwise.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setUp-int-double-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setUp</h4> |
| <pre>protected final void setUp(int initialCapacity, |
| double minLoadFactor, |
| double maxLoadFactor)</pre> |
| <div class="block">Initializes the receiver.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#setUp-int-double-double-">setUp</a></code> in class <code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">AbstractSet</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>initialCapacity</code> - the initial capacity of the receiver.</dd> |
| <dd><code>minLoadFactor</code> - the minLoadFactor of the receiver.</dd> |
| <dd><code>maxLoadFactor</code> - the maxLoadFactor of the receiver.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <tt>initialCapacity < 0 || (minLoadFactor < 0.0 || minLoadFactor >= 1.0) || |
| (maxLoadFactor <= 0.0 || maxLoadFactor >= 1.0) || (minLoadFactor >= |
| maxLoadFactor)</tt>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="trimToSize--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>trimToSize</h4> |
| <pre>public void trimToSize()</pre> |
| <div class="block">Trims the capacity of the receiver to be the receiver's current size. Releases any superfluous internal memory. An |
| application can use this operation to minimize the storage of the receiver.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html#trimToSize--">trimToSize</a></code> in class <code><a href="../../../../../org/apache/mahout/math/set/AbstractSet.html" title="class in org.apache.mahout.math.set">AbstractSet</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="values-org.apache.mahout.math.list.FloatArrayList-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>values</h4> |
| <pre>public void values(<a href="../../../../../org/apache/mahout/math/list/FloatArrayList.html" title="class in org.apache.mahout.math.list">FloatArrayList</a> list)</pre> |
| <div class="block">Fills all values contained in the receiver into the specified list. Fills the list, starting at index 0. After this |
| call returns the specified list has a new size that equals <tt>this.size()</tt>. Iteration order is guaranteed to |
| be <i>identical</i> to the order used by method <a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.html#forEachKey-org.apache.mahout.math.function.CharProcedure-"><code>forEachKey(CharProcedure)</code></a>. |
| <p> This method can be used |
| to iterate over the values of the receiver.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html#values-org.apache.mahout.math.list.FloatArrayList-">values</a></code> in class <code><a href="../../../../../org/apache/mahout/math/map/AbstractCharFloatMap.html" title="class in org.apache.mahout.math.map">AbstractCharFloatMap</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>list</code> - the list to be filled, can have any size.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getInternalFactors-int:A-double:A-double:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getInternalFactors</h4> |
| <pre>protected void getInternalFactors(int[] capacity, |
| double[] minLoadFactor, |
| double[] maxLoadFactor)</pre> |
| <div class="block">Access for unit tests.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>capacity</code> - </dd> |
| <dd><code>minLoadFactor</code> - </dd> |
| <dd><code>maxLoadFactor</code> - </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/OpenCharFloatHashMap.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/math/map/OpenCharDoubleHashMap.MapIterator.html" title="class in org.apache.mahout.math.map"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/mahout/math/map/OpenCharFloatHashMap.MapElement.html" title="class in org.apache.mahout.math.map"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/mahout/math/map/OpenCharFloatHashMap.html" target="_top">Frames</a></li> |
| <li><a href="OpenCharFloatHashMap.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><a href="#nested.class.summary">Nested</a> | </li> |
| <li><a href="#field.summary">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><a href="#field.detail">Field</a> | </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> |