blob: be560d6e2327c6238950c41630cf008342a1f0b0 [file] [log] [blame]
<!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>OpenLongHashSet (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="OpenLongHashSet (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};
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/OpenLongHashSet.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/set/OpenIntHashSet.html" title="class in org.apache.mahout.math.set"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/mahout/math/set/OpenShortHashSet.html" title="class in org.apache.mahout.math.set"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/mahout/math/set/OpenLongHashSet.html" target="_top">Frames</a></li>
<li><a href="OpenLongHashSet.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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.set</div>
<h2 title="Class OpenLongHashSet" class="title">Class OpenLongHashSet</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/set/AbstractLongSet.html" title="class in org.apache.mahout.math.set">org.apache.mahout.math.set.AbstractLongSet</a></li>
<li>
<ul class="inheritance">
<li>org.apache.mahout.math.set.OpenLongHashSet</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">OpenLongHashSet</span>
extends <a href="../../../../../org/apache/mahout/math/set/AbstractLongSet.html" title="class in org.apache.mahout.math.set">AbstractLongSet</a></pre>
<div class="block">Open hash set of long items;</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../serialized-form.html#org.apache.mahout.math.set.OpenLongHashSet">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>
<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">&nbsp;</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/set/OpenLongHashSet.html#FREE">FREE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#FULL">FULL</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#NO_KEY_VALUE">NO_KEY_VALUE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#REMOVED">REMOVED</a></span></code>&nbsp;</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&nbsp;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">&nbsp;</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/set/OpenLongHashSet.html#OpenLongHashSet--">OpenLongHashSet</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/set/OpenLongHashSet.html#OpenLongHashSet-int-">OpenLongHashSet</a></span>(int&nbsp;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/set/OpenLongHashSet.html#OpenLongHashSet-int-double-double-">OpenLongHashSet</a></span>(int&nbsp;initialCapacity,
double&nbsp;minLoadFactor,
double&nbsp;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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#add-long-">add</a></span>(long&nbsp;key)</code>
<div class="block">Associates the given key with the given value.</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/set/OpenLongHashSet.html#clear--">clear</a></span>()</code>
<div class="block">Removes all values 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/set/OpenLongHashSet.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/set/OpenLongHashSet.html#contains-long-">contains</a></span>(long&nbsp;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>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#ensureCapacity-int-">ensureCapacity</a></span>(int&nbsp;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="i5" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#forEachKey-org.apache.mahout.math.function.LongProcedure-">forEachKey</a></span>(<a href="../../../../../org/apache/mahout/math/function/LongProcedure.html" title="interface in org.apache.mahout.math.function">LongProcedure</a>&nbsp;procedure)</code>
<div class="block">Applies a procedure to each key of the receiver, if any.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#getInternalFactors-int:A-double:A-double:A-">getInternalFactors</a></span>(int[]&nbsp;capacity,
double[]&nbsp;minLoadFactor,
double[]&nbsp;maxLoadFactor)</code>
<div class="block">Access for unit tests.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#indexOfInsertion-long-">indexOfInsertion</a></span>(long&nbsp;key)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#indexOfKey-long-">indexOfKey</a></span>(long&nbsp;key)</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#keys-org.apache.mahout.math.list.LongArrayList-">keys</a></span>(<a href="../../../../../org/apache/mahout/math/list/LongArrayList.html" title="class in org.apache.mahout.math.list">LongArrayList</a>&nbsp;list)</code>
<div class="block">Fills all keys contained in the receiver into the specified list.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#rehash-int-">rehash</a></span>(int&nbsp;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="i11" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#remove-long-">remove</a></span>(long&nbsp;key)</code>
<div class="block">Removes the given key with its associated element from the receiver, if present.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/set/OpenLongHashSet.html#setUp-int-double-double-">setUp</a></span>(int&nbsp;initialCapacity,
double&nbsp;minLoadFactor,
double&nbsp;maxLoadFactor)</code>
<div class="block">Initializes the receiver.</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/math/set/OpenLongHashSet.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>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.math.set.AbstractLongSet">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.mahout.math.set.<a href="../../../../../org/apache/mahout/math/set/AbstractLongSet.html" title="class in org.apache.mahout.math.set">AbstractLongSet</a></h3>
<code><a href="../../../../../org/apache/mahout/math/set/AbstractLongSet.html#copy--">copy</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractLongSet.html#equals-java.lang.Object-">equals</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractLongSet.html#hashCode--">hashCode</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractLongSet.html#keys--">keys</a>, <a href="../../../../../org/apache/mahout/math/set/AbstractLongSet.html#toString--">toString</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&nbsp;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&nbsp;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&nbsp;byte FREE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.mahout.math.set.OpenLongHashSet.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&nbsp;byte FULL</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.mahout.math.set.OpenLongHashSet.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&nbsp;byte REMOVED</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.mahout.math.set.OpenLongHashSet.REMOVED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="NO_KEY_VALUE">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>NO_KEY_VALUE</h4>
<pre>protected static final&nbsp;long NO_KEY_VALUE</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.mahout.math.set.OpenLongHashSet.NO_KEY_VALUE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="OpenLongHashSet--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>OpenLongHashSet</h4>
<pre>public&nbsp;OpenLongHashSet()</pre>
<div class="block">Constructs an empty map with default capacity and default load factors.</div>
</li>
</ul>
<a name="OpenLongHashSet-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>OpenLongHashSet</h4>
<pre>public&nbsp;OpenLongHashSet(int&nbsp;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="OpenLongHashSet-int-double-double-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>OpenLongHashSet</h4>
<pre>public&nbsp;OpenLongHashSet(int&nbsp;initialCapacity,
double&nbsp;minLoadFactor,
double&nbsp;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&nbsp;void&nbsp;clear()</pre>
<div class="block">Removes all values 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>&nbsp;in class&nbsp;<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&nbsp;<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>&nbsp;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>&nbsp;in class&nbsp;<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="contains-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>contains</h4>
<pre>public&nbsp;boolean&nbsp;contains(long&nbsp;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/set/AbstractLongSet.html#contains-long-">contains</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/set/AbstractLongSet.html" title="class in org.apache.mahout.math.set">AbstractLongSet</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="ensureCapacity-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ensureCapacity</h4>
<pre>public&nbsp;void&nbsp;ensureCapacity(int&nbsp;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>add()</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>&nbsp;in class&nbsp;<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.LongProcedure-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>forEachKey</h4>
<pre>public&nbsp;boolean&nbsp;forEachKey(<a href="../../../../../org/apache/mahout/math/function/LongProcedure.html" title="interface in org.apache.mahout.math.function">LongProcedure</a>&nbsp;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/set/AbstractLongSet.html#forEachKey-org.apache.mahout.math.function.LongProcedure-">forEachKey</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/set/AbstractLongSet.html" title="class in org.apache.mahout.math.set">AbstractLongSet</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="indexOfInsertion-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>indexOfInsertion</h4>
<pre>protected&nbsp;int&nbsp;indexOfInsertion(long&nbsp;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-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>indexOfKey</h4>
<pre>protected&nbsp;int&nbsp;indexOfKey(long&nbsp;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="keys-org.apache.mahout.math.list.LongArrayList-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>keys</h4>
<pre>public&nbsp;void&nbsp;keys(<a href="../../../../../org/apache/mahout/math/list/LongArrayList.html" title="class in org.apache.mahout.math.list">LongArrayList</a>&nbsp;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/set/OpenLongHashSet.html#forEachKey-org.apache.mahout.math.function.LongProcedure-"><code>forEachKey(LongProcedure)</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/set/AbstractLongSet.html#keys-org.apache.mahout.math.list.LongArrayList-">keys</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/set/AbstractLongSet.html" title="class in org.apache.mahout.math.set">AbstractLongSet</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="add-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;boolean&nbsp;add(long&nbsp;key)</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/set/AbstractLongSet.html#add-long-">add</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/set/AbstractLongSet.html" title="class in org.apache.mahout.math.set">AbstractLongSet</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>key</code> - the key the value shall be associated with.</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="rehash-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rehash</h4>
<pre>protected&nbsp;void&nbsp;rehash(int&nbsp;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="remove-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remove</h4>
<pre>public&nbsp;boolean&nbsp;remove(long&nbsp;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/set/AbstractLongSet.html#remove-long-">remove</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/mahout/math/set/AbstractLongSet.html" title="class in org.apache.mahout.math.set">AbstractLongSet</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&nbsp;void&nbsp;setUp(int&nbsp;initialCapacity,
double&nbsp;minLoadFactor,
double&nbsp;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>&nbsp;in class&nbsp;<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&nbsp;void&nbsp;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>&nbsp;in class&nbsp;<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="getInternalFactors-int:A-double:A-double:A-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getInternalFactors</h4>
<pre>protected&nbsp;void&nbsp;getInternalFactors(int[]&nbsp;capacity,
double[]&nbsp;minLoadFactor,
double[]&nbsp;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/OpenLongHashSet.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/set/OpenIntHashSet.html" title="class in org.apache.mahout.math.set"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/mahout/math/set/OpenShortHashSet.html" title="class in org.apache.mahout.math.set"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/mahout/math/set/OpenLongHashSet.html" target="_top">Frames</a></li>
<li><a href="OpenLongHashSet.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 2008&#x2013;2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>