blob: 963d699991a067a0fad5a7bd4cf546e47d2ffe8d [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_162) on Thu Oct 25 17:06:10 PDT 2018 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Sketches (com.yahoo.datasketches:sketches-core 0.12.1-SNAPSHOT API)</title>
<meta name="date" content="2018-10-25">
<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="Sketches (com.yahoo.datasketches:sketches-core 0.12.1-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static 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/Sketches.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="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/yahoo/sketches/theta/Union.html" title="class in com.yahoo.sketches.theta"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/yahoo/sketches/theta/Sketches.html" target="_top">Frames</a></li>
<li><a href="Sketches.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>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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">com.yahoo.sketches.theta</div>
<h2 title="Class Sketches" class="title">Class Sketches</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/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>com.yahoo.sketches.theta.Sketches</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public final class <span class="typeNameLabel">Sketches</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">This class brings together the common sketch and set operation creation methods and
the public static methods into one place.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Lee Rhodes</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== 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="t1" class="tableTab"><span><a href="javascript:show(1);">Static 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>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#getEstimate-com.yahoo.memory.Memory-">getEstimate</a></span>(com.yahoo.memory.Memory&nbsp;srcMem)</code>
<div class="block">Gets the unique count estimate from a valid memory image of a Sketch</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#getLowerBound-int-com.yahoo.memory.Memory-">getLowerBound</a></span>(int&nbsp;numStdDev,
com.yahoo.memory.Memory&nbsp;srcMem)</code>
<div class="block">Gets the approximate lower error bound from a valid memory image of a Sketch
given the specified number of Standard Deviations.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#getMaxCompactSketchBytes-int-">getMaxCompactSketchBytes</a></span>(int&nbsp;numberOfEntries)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#getMaxCompactSketchBytes-int-"><code>Sketch.getMaxCompactSketchBytes(int)</code></a></div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#getMaxIntersectionBytes-int-">getMaxIntersectionBytes</a></span>(int&nbsp;nomEntries)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#getMaxIntersectionBytes-int-"><code>SetOperation.getMaxIntersectionBytes(int)</code></a></div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#getMaxUnionBytes-int-">getMaxUnionBytes</a></span>(int&nbsp;nomEntries)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#getMaxUnionBytes-int-"><code>SetOperation.getMaxUnionBytes(int)</code></a></div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#getMaxUpdateSketchBytes-int-">getMaxUpdateSketchBytes</a></span>(int&nbsp;nomEntries)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#getMaxUpdateSketchBytes-int-"><code>Sketch.getMaxUpdateSketchBytes(int)</code></a></div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#getSerializationVersion-com.yahoo.memory.Memory-">getSerializationVersion</a></span>(com.yahoo.memory.Memory&nbsp;srcMem)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#getSerializationVersion-com.yahoo.memory.Memory-"><code>Sketch.getSerializationVersion(Memory)</code></a></div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static double</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#getUpperBound-int-com.yahoo.memory.Memory-">getUpperBound</a></span>(int&nbsp;numStdDev,
com.yahoo.memory.Memory&nbsp;srcMem)</code>
<div class="block">Gets the approximate upper error bound from a valid memory image of a Sketch
given the specified number of Standard Deviations.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta">SetOperation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#heapifySetOperation-com.yahoo.memory.Memory-">heapifySetOperation</a></span>(com.yahoo.memory.Memory&nbsp;srcMem)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#heapify-com.yahoo.memory.Memory-"><code>SetOperation.heapify(Memory)</code></a></div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta">SetOperation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#heapifySetOperation-com.yahoo.memory.Memory-long-">heapifySetOperation</a></span>(com.yahoo.memory.Memory&nbsp;srcMem,
long&nbsp;seed)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#heapify-com.yahoo.memory.Memory-long-"><code>SetOperation.heapify(Memory, long)</code></a></div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta">Sketch</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#heapifySketch-com.yahoo.memory.Memory-">heapifySketch</a></span>(com.yahoo.memory.Memory&nbsp;srcMem)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#heapify-com.yahoo.memory.Memory-"><code>Sketch.heapify(Memory)</code></a></div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta">Sketch</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#heapifySketch-com.yahoo.memory.Memory-long-">heapifySketch</a></span>(com.yahoo.memory.Memory&nbsp;srcMem,
long&nbsp;seed)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#heapify-com.yahoo.memory.Memory-long-"><code>Sketch.heapify(Memory, long)</code></a></div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html" title="class in com.yahoo.sketches.theta">UpdateSketch</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#heapifyUpdateSketch-com.yahoo.memory.Memory-">heapifyUpdateSketch</a></span>(com.yahoo.memory.Memory&nbsp;srcMem)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html#heapify-com.yahoo.memory.Memory-"><code>UpdateSketch.heapify(Memory)</code></a></div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html" title="class in com.yahoo.sketches.theta">UpdateSketch</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#heapifyUpdateSketch-com.yahoo.memory.Memory-long-">heapifyUpdateSketch</a></span>(com.yahoo.memory.Memory&nbsp;srcMem,
long&nbsp;seed)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html#heapify-com.yahoo.memory.Memory-long-"><code>UpdateSketch.heapify(Memory, long)</code></a></div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/SetOperationBuilder.html" title="class in com.yahoo.sketches.theta">SetOperationBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#setOperationBuilder--">setOperationBuilder</a></span>()</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperationBuilder.html" title="class in com.yahoo.sketches.theta"><code>SetOperationBuilder</code></a></div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/UpdateSketchBuilder.html" title="class in com.yahoo.sketches.theta">UpdateSketchBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#updateSketchBuilder--">updateSketchBuilder</a></span>()</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/UpdateSketchBuilder.html" title="class in com.yahoo.sketches.theta"><code>UpdateSketchBuilder</code></a></div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/Intersection.html" title="class in com.yahoo.sketches.theta">Intersection</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#wrapIntersection-com.yahoo.memory.Memory-">wrapIntersection</a></span>(com.yahoo.memory.Memory&nbsp;srcMem)</code>
<div class="block">Convenience method, calls <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> and casts the result to a Intersection</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/Intersection.html" title="class in com.yahoo.sketches.theta">Intersection</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#wrapIntersection-com.yahoo.memory.WritableMemory-">wrapIntersection</a></span>(com.yahoo.memory.WritableMemory&nbsp;srcMem)</code>
<div class="block">Convenience method, calls <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> and casts the result to a Intersection</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta">SetOperation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#wrapSetOperation-com.yahoo.memory.Memory-">wrapSetOperation</a></span>(com.yahoo.memory.Memory&nbsp;srcMem)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a></div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta">SetOperation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#wrapSetOperation-com.yahoo.memory.Memory-long-">wrapSetOperation</a></span>(com.yahoo.memory.Memory&nbsp;srcMem,
long&nbsp;seed)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-long-"><code>SetOperation.wrap(Memory, long)</code></a></div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta">SetOperation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#wrapSetOperation-com.yahoo.memory.WritableMemory-">wrapSetOperation</a></span>(com.yahoo.memory.WritableMemory&nbsp;srcMem)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a></div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta">SetOperation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#wrapSetOperation-com.yahoo.memory.WritableMemory-long-">wrapSetOperation</a></span>(com.yahoo.memory.WritableMemory&nbsp;srcMem,
long&nbsp;seed)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-long-"><code>SetOperation.wrap(Memory, long)</code></a></div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta">Sketch</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#wrapSketch-com.yahoo.memory.Memory-">wrapSketch</a></span>(com.yahoo.memory.Memory&nbsp;srcMem)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-"><code>Sketch.wrap(Memory)</code></a></div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta">Sketch</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#wrapSketch-com.yahoo.memory.Memory-long-">wrapSketch</a></span>(com.yahoo.memory.Memory&nbsp;srcMem,
long&nbsp;seed)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-long-"><code>Sketch.wrap(Memory, long)</code></a></div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/Union.html" title="class in com.yahoo.sketches.theta">Union</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#wrapUnion-com.yahoo.memory.Memory-">wrapUnion</a></span>(com.yahoo.memory.Memory&nbsp;srcMem)</code>
<div class="block">Convenience method, calls <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> and casts the result to a Union</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/Union.html" title="class in com.yahoo.sketches.theta">Union</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#wrapUnion-com.yahoo.memory.WritableMemory-">wrapUnion</a></span>(com.yahoo.memory.WritableMemory&nbsp;srcMem)</code>
<div class="block">Convenience method, calls <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> and casts the result to a Union</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html" title="class in com.yahoo.sketches.theta">UpdateSketch</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#wrapUpdateSketch-com.yahoo.memory.WritableMemory-">wrapUpdateSketch</a></span>(com.yahoo.memory.WritableMemory&nbsp;srcMem)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-"><code>UpdateSketch.wrap(Memory)</code></a></div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html" title="class in com.yahoo.sketches.theta">UpdateSketch</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/yahoo/sketches/theta/Sketches.html#wrapUpdateSketch-com.yahoo.memory.WritableMemory-long-">wrapUpdateSketch</a></span>(com.yahoo.memory.WritableMemory&nbsp;srcMem,
long&nbsp;seed)</code>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-long-"><code>UpdateSketch.wrap(Memory, long)</code></a></div>
</td>
</tr>
</table>
<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/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">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="updateSketchBuilder--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>updateSketchBuilder</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/UpdateSketchBuilder.html" title="class in com.yahoo.sketches.theta">UpdateSketchBuilder</a>&nbsp;updateSketchBuilder()</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/UpdateSketchBuilder.html" title="class in com.yahoo.sketches.theta"><code>UpdateSketchBuilder</code></a></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/UpdateSketchBuilder.html" title="class in com.yahoo.sketches.theta"><code>UpdateSketchBuilder</code></a></dd>
</dl>
</li>
</ul>
<a name="heapifySketch-com.yahoo.memory.Memory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>heapifySketch</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta">Sketch</a>&nbsp;heapifySketch(com.yahoo.memory.Memory&nbsp;srcMem)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#heapify-com.yahoo.memory.Memory-"><code>Sketch.heapify(Memory)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#heapify-com.yahoo.memory.Memory-"><code>Sketch.heapify(Memory)</code></a> <code>srcMem</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta"><code>Sketch</code></a></dd>
</dl>
</li>
</ul>
<a name="heapifySketch-com.yahoo.memory.Memory-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>heapifySketch</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta">Sketch</a>&nbsp;heapifySketch(com.yahoo.memory.Memory&nbsp;srcMem,
long&nbsp;seed)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#heapify-com.yahoo.memory.Memory-long-"><code>Sketch.heapify(Memory, long)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#heapify-com.yahoo.memory.Memory-long-"><code>Sketch.heapify(Memory, long)</code></a> <code>srcMem</code></dd>
<dd><code>seed</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#heapify-com.yahoo.memory.Memory-long-"><code>Sketch.heapify(Memory, long)</code></a> <code>seed</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta"><code>Sketch</code></a></dd>
</dl>
</li>
</ul>
<a name="heapifyUpdateSketch-com.yahoo.memory.Memory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>heapifyUpdateSketch</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html" title="class in com.yahoo.sketches.theta">UpdateSketch</a>&nbsp;heapifyUpdateSketch(com.yahoo.memory.Memory&nbsp;srcMem)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html#heapify-com.yahoo.memory.Memory-"><code>UpdateSketch.heapify(Memory)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html#heapify-com.yahoo.memory.Memory-"><code>UpdateSketch.heapify(Memory)</code></a> <code>srcMem</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html" title="class in com.yahoo.sketches.theta"><code>UpdateSketch</code></a></dd>
</dl>
</li>
</ul>
<a name="heapifyUpdateSketch-com.yahoo.memory.Memory-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>heapifyUpdateSketch</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html" title="class in com.yahoo.sketches.theta">UpdateSketch</a>&nbsp;heapifyUpdateSketch(com.yahoo.memory.Memory&nbsp;srcMem,
long&nbsp;seed)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html#heapify-com.yahoo.memory.Memory-long-"><code>UpdateSketch.heapify(Memory, long)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html#heapify-com.yahoo.memory.Memory-long-"><code>UpdateSketch.heapify(Memory, long)</code></a>
<code>srcMem</code></dd>
<dd><code>seed</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html#heapify-com.yahoo.memory.Memory-long-"><code>UpdateSketch.heapify(Memory, long)</code></a>
<code>seed</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html" title="class in com.yahoo.sketches.theta"><code>UpdateSketch</code></a></dd>
</dl>
</li>
</ul>
<a name="wrapSketch-com.yahoo.memory.Memory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapSketch</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta">Sketch</a>&nbsp;wrapSketch(com.yahoo.memory.Memory&nbsp;srcMem)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-"><code>Sketch.wrap(Memory)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-"><code>Sketch.wrap(Memory)</code></a> <code>srcMem</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta"><code>Sketch</code></a></dd>
</dl>
</li>
</ul>
<a name="wrapSketch-com.yahoo.memory.Memory-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapSketch</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta">Sketch</a>&nbsp;wrapSketch(com.yahoo.memory.Memory&nbsp;srcMem,
long&nbsp;seed)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-long-"><code>Sketch.wrap(Memory, long)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-long-"><code>Sketch.wrap(Memory, long)</code></a> <code>srcMem</code></dd>
<dd><code>seed</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-long-"><code>Sketch.wrap(Memory, long)</code></a> <code>seed</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta"><code>Sketch</code></a></dd>
</dl>
</li>
</ul>
<a name="wrapUpdateSketch-com.yahoo.memory.WritableMemory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapUpdateSketch</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html" title="class in com.yahoo.sketches.theta">UpdateSketch</a>&nbsp;wrapUpdateSketch(com.yahoo.memory.WritableMemory&nbsp;srcMem)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-"><code>UpdateSketch.wrap(Memory)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-"><code>UpdateSketch.wrap(Memory)</code></a> <code>srcMem</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html" title="class in com.yahoo.sketches.theta"><code>UpdateSketch</code></a></dd>
</dl>
</li>
</ul>
<a name="wrapUpdateSketch-com.yahoo.memory.WritableMemory-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapUpdateSketch</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html" title="class in com.yahoo.sketches.theta">UpdateSketch</a>&nbsp;wrapUpdateSketch(com.yahoo.memory.WritableMemory&nbsp;srcMem,
long&nbsp;seed)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-long-"><code>UpdateSketch.wrap(Memory, long)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-long-"><code>UpdateSketch.wrap(Memory, long)</code></a> <code>srcMem</code></dd>
<dd><code>seed</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#wrap-com.yahoo.memory.Memory-long-"><code>UpdateSketch.wrap(Memory, long)</code></a> <code>seed</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/UpdateSketch.html" title="class in com.yahoo.sketches.theta"><code>UpdateSketch</code></a></dd>
</dl>
</li>
</ul>
<a name="setOperationBuilder--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOperationBuilder</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/SetOperationBuilder.html" title="class in com.yahoo.sketches.theta">SetOperationBuilder</a>&nbsp;setOperationBuilder()</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperationBuilder.html" title="class in com.yahoo.sketches.theta"><code>SetOperationBuilder</code></a></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/SetOperationBuilder.html" title="class in com.yahoo.sketches.theta"><code>SetOperationBuilder</code></a></dd>
</dl>
</li>
</ul>
<a name="heapifySetOperation-com.yahoo.memory.Memory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>heapifySetOperation</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta">SetOperation</a>&nbsp;heapifySetOperation(com.yahoo.memory.Memory&nbsp;srcMem)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#heapify-com.yahoo.memory.Memory-"><code>SetOperation.heapify(Memory)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#heapify-com.yahoo.memory.Memory-"><code>SetOperation.heapify(Memory)</code></a> <code>srcMem</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta"><code>SetOperation</code></a></dd>
</dl>
</li>
</ul>
<a name="heapifySetOperation-com.yahoo.memory.Memory-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>heapifySetOperation</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta">SetOperation</a>&nbsp;heapifySetOperation(com.yahoo.memory.Memory&nbsp;srcMem,
long&nbsp;seed)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#heapify-com.yahoo.memory.Memory-long-"><code>SetOperation.heapify(Memory, long)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#heapify-com.yahoo.memory.Memory-long-"><code>SetOperation.heapify(Memory, long)</code></a>
<code>srcMem</code></dd>
<dd><code>seed</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#heapify-com.yahoo.memory.Memory-long-"><code>SetOperation.heapify(Memory, long)</code></a>
<code>seed</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta"><code>SetOperation</code></a></dd>
</dl>
</li>
</ul>
<a name="wrapSetOperation-com.yahoo.memory.Memory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapSetOperation</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta">SetOperation</a>&nbsp;wrapSetOperation(com.yahoo.memory.Memory&nbsp;srcMem)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> <code>srcMem</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta"><code>SetOperation</code></a></dd>
</dl>
</li>
</ul>
<a name="wrapSetOperation-com.yahoo.memory.WritableMemory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapSetOperation</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta">SetOperation</a>&nbsp;wrapSetOperation(com.yahoo.memory.WritableMemory&nbsp;srcMem)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> <code>srcMem</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta"><code>SetOperation</code></a></dd>
</dl>
</li>
</ul>
<a name="wrapUnion-com.yahoo.memory.Memory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapUnion</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/Union.html" title="class in com.yahoo.sketches.theta">Union</a>&nbsp;wrapUnion(com.yahoo.memory.Memory&nbsp;srcMem)</pre>
<div class="block">Convenience method, calls <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> and casts the result to a Union</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> <code>srcMem</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a Union backed by the given Memory</dd>
</dl>
</li>
</ul>
<a name="wrapUnion-com.yahoo.memory.WritableMemory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapUnion</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/Union.html" title="class in com.yahoo.sketches.theta">Union</a>&nbsp;wrapUnion(com.yahoo.memory.WritableMemory&nbsp;srcMem)</pre>
<div class="block">Convenience method, calls <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> and casts the result to a Union</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> <code>srcMem</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a Union backed by the given Memory</dd>
</dl>
</li>
</ul>
<a name="wrapIntersection-com.yahoo.memory.Memory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapIntersection</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/Intersection.html" title="class in com.yahoo.sketches.theta">Intersection</a>&nbsp;wrapIntersection(com.yahoo.memory.Memory&nbsp;srcMem)</pre>
<div class="block">Convenience method, calls <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> and casts the result to a Intersection</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> <code>srcMem</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a Intersection backed by the given Memory</dd>
</dl>
</li>
</ul>
<a name="wrapIntersection-com.yahoo.memory.WritableMemory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapIntersection</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/Intersection.html" title="class in com.yahoo.sketches.theta">Intersection</a>&nbsp;wrapIntersection(com.yahoo.memory.WritableMemory&nbsp;srcMem)</pre>
<div class="block">Convenience method, calls <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> and casts the result to a Intersection</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-"><code>SetOperation.wrap(Memory)</code></a> <code>srcMem</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a Intersection backed by the given Memory</dd>
</dl>
</li>
</ul>
<a name="wrapSetOperation-com.yahoo.memory.Memory-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapSetOperation</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta">SetOperation</a>&nbsp;wrapSetOperation(com.yahoo.memory.Memory&nbsp;srcMem,
long&nbsp;seed)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-long-"><code>SetOperation.wrap(Memory, long)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-long-"><code>SetOperation.wrap(Memory, long)</code></a>
<code>srcMem</code></dd>
<dd><code>seed</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-long-"><code>SetOperation.wrap(Memory, long)</code></a>
<code>seed</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta"><code>SetOperation</code></a></dd>
</dl>
</li>
</ul>
<a name="wrapSetOperation-com.yahoo.memory.WritableMemory-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>wrapSetOperation</h4>
<pre>public static&nbsp;<a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta">SetOperation</a>&nbsp;wrapSetOperation(com.yahoo.memory.WritableMemory&nbsp;srcMem,
long&nbsp;seed)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-long-"><code>SetOperation.wrap(Memory, long)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-long-"><code>SetOperation.wrap(Memory, long)</code></a>
<code>srcMem</code></dd>
<dd><code>seed</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#wrap-com.yahoo.memory.Memory-long-"><code>SetOperation.wrap(Memory, long)</code></a>
<code>seed</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../../../com/yahoo/sketches/theta/SetOperation.html" title="class in com.yahoo.sketches.theta"><code>SetOperation</code></a></dd>
</dl>
</li>
</ul>
<a name="getMaxCompactSketchBytes-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxCompactSketchBytes</h4>
<pre>public static&nbsp;int&nbsp;getMaxCompactSketchBytes(int&nbsp;numberOfEntries)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#getMaxCompactSketchBytes-int-"><code>Sketch.getMaxCompactSketchBytes(int)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>numberOfEntries</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#getMaxCompactSketchBytes-int-"><code>Sketch.getMaxCompactSketchBytes(int)</code></a>
<code>numberOfEntries</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#getMaxCompactSketchBytes-int-"><code>Sketch.getMaxCompactSketchBytes(int)</code></a></dd>
</dl>
</li>
</ul>
<a name="getMaxUpdateSketchBytes-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxUpdateSketchBytes</h4>
<pre>public static&nbsp;int&nbsp;getMaxUpdateSketchBytes(int&nbsp;nomEntries)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#getMaxUpdateSketchBytes-int-"><code>Sketch.getMaxUpdateSketchBytes(int)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nomEntries</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#getMaxUpdateSketchBytes-int-"><code>Sketch.getMaxUpdateSketchBytes(int)</code></a> <code>nomEntries</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#getMaxUpdateSketchBytes-int-"><code>Sketch.getMaxUpdateSketchBytes(int)</code></a></dd>
</dl>
</li>
</ul>
<a name="getSerializationVersion-com.yahoo.memory.Memory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSerializationVersion</h4>
<pre>public static&nbsp;int&nbsp;getSerializationVersion(com.yahoo.memory.Memory&nbsp;srcMem)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#getSerializationVersion-com.yahoo.memory.Memory-"><code>Sketch.getSerializationVersion(Memory)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#getSerializationVersion-com.yahoo.memory.Memory-"><code>Sketch.getSerializationVersion(Memory)</code></a> <code>srcMem</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Ref: <a href="../../../../com/yahoo/sketches/theta/Sketch.html#getSerializationVersion-com.yahoo.memory.Memory-"><code>Sketch.getSerializationVersion(Memory)</code></a></dd>
</dl>
</li>
</ul>
<a name="getMaxUnionBytes-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxUnionBytes</h4>
<pre>public static&nbsp;int&nbsp;getMaxUnionBytes(int&nbsp;nomEntries)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#getMaxUnionBytes-int-"><code>SetOperation.getMaxUnionBytes(int)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nomEntries</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#getMaxUnionBytes-int-"><code>SetOperation.getMaxUnionBytes(int)</code></a> <code>nomEntries</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#getMaxUnionBytes-int-"><code>SetOperation.getMaxUnionBytes(int)</code></a></dd>
</dl>
</li>
</ul>
<a name="getMaxIntersectionBytes-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxIntersectionBytes</h4>
<pre>public static&nbsp;int&nbsp;getMaxIntersectionBytes(int&nbsp;nomEntries)</pre>
<div class="block">Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#getMaxIntersectionBytes-int-"><code>SetOperation.getMaxIntersectionBytes(int)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>nomEntries</code> - Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#getMaxIntersectionBytes-int-"><code>SetOperation.getMaxIntersectionBytes(int)</code></a> <code>nomEntries</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Ref: <a href="../../../../com/yahoo/sketches/theta/SetOperation.html#getMaxIntersectionBytes-int-"><code>SetOperation.getMaxIntersectionBytes(int)</code></a></dd>
</dl>
</li>
</ul>
<a name="getEstimate-com.yahoo.memory.Memory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEstimate</h4>
<pre>public static&nbsp;double&nbsp;getEstimate(com.yahoo.memory.Memory&nbsp;srcMem)</pre>
<div class="block">Gets the unique count estimate from a valid memory image of a Sketch</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>srcMem</code> - <a href="../../../../resources/dictionary.html#mem">See Memory</a></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the sketch's best estimate of the cardinality of the input stream.</dd>
</dl>
</li>
</ul>
<a name="getUpperBound-int-com.yahoo.memory.Memory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUpperBound</h4>
<pre>public static&nbsp;double&nbsp;getUpperBound(int&nbsp;numStdDev,
com.yahoo.memory.Memory&nbsp;srcMem)</pre>
<div class="block">Gets the approximate upper error bound from a valid memory image of a Sketch
given the specified number of Standard Deviations.
This will return getEstimate() if isEmpty() is true.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>numStdDev</code> - <a href="../../../../resources/dictionary.html#numStdDev">See Number of Standard Deviations</a></dd>
<dd><code>srcMem</code> - <a href="../../../../resources/dictionary.html#mem">See Memory</a></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the upper bound.</dd>
</dl>
</li>
</ul>
<a name="getLowerBound-int-com.yahoo.memory.Memory-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getLowerBound</h4>
<pre>public static&nbsp;double&nbsp;getLowerBound(int&nbsp;numStdDev,
com.yahoo.memory.Memory&nbsp;srcMem)</pre>
<div class="block">Gets the approximate lower error bound from a valid memory image of a Sketch
given the specified number of Standard Deviations.
This will return getEstimate() if isEmpty() is true.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>numStdDev</code> - <a href="../../../../resources/dictionary.html#numStdDev">See Number of Standard Deviations</a></dd>
<dd><code>srcMem</code> - <a href="../../../../resources/dictionary.html#mem">See Memory</a></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the lower bound.</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/Sketches.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="../../../../com/yahoo/sketches/theta/Sketch.html" title="class in com.yahoo.sketches.theta"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/yahoo/sketches/theta/Union.html" title="class in com.yahoo.sketches.theta"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/yahoo/sketches/theta/Sketches.html" target="_top">Frames</a></li>
<li><a href="Sketches.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>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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; 2015&#x2013;2018. All rights reserved.</small></p>
</body>
</html>