Skip to content

Commit 1ce8e1f

Browse files
committed
Deploying to gh-pages from @ b16605c 🚀
1 parent 3f87493 commit 1ce8e1f

3 files changed

Lines changed: 66 additions & 6 deletions

File tree

docs/main/index-all.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8416,9 +8416,13 @@ <h2 class="title" id="I:W">W</h2>
84168416
<div class="block">Returns a single weight from the samples contained in the sketch.</div>
84178417
</dd>
84188418
<dt><a href="org/apache/datasketches/theta/CompactSketch.html#wrap(byte%5B%5D)" class="member-name-link">wrap(byte[])</a> - Static method in class org.apache.datasketches.theta.<a href="org/apache/datasketches/theta/CompactSketch.html" title="class in org.apache.datasketches.theta">CompactSketch</a></dt>
8419-
<dd>&nbsp;</dd>
8419+
<dd>
8420+
<div class="block">Wrap takes the sketch image in the given Memory and refers to it directly.</div>
8421+
</dd>
84208422
<dt><a href="org/apache/datasketches/theta/CompactSketch.html#wrap(byte%5B%5D,long)" class="member-name-link">wrap(byte[], long)</a> - Static method in class org.apache.datasketches.theta.<a href="org/apache/datasketches/theta/CompactSketch.html" title="class in org.apache.datasketches.theta">CompactSketch</a></dt>
8421-
<dd>&nbsp;</dd>
8423+
<dd>
8424+
<div class="block">Wrap takes the sketch image in the given Memory and refers to it directly.</div>
8425+
</dd>
84228426
<dt><a href="org/apache/datasketches/filters/bloomfilter/BloomFilter.html#wrap(org.apache.datasketches.memory.Memory)" class="member-name-link">wrap(Memory)</a> - Static method in class org.apache.datasketches.filters.bloomfilter.<a href="org/apache/datasketches/filters/bloomfilter/BloomFilter.html" title="class in org.apache.datasketches.filters.bloomfilter">BloomFilter</a></dt>
84238427
<dd>
84248428
<div class="block">Wraps the given Memory into this filter class.</div>

docs/main/org/apache/datasketches/theta/CompactSketch.html

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,15 @@ <h2>Method Summary</h2>
184184
</div>
185185
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="CompactSketch.html" title="class in org.apache.datasketches.theta">CompactSketch</a></code></div>
186186
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#wrap(byte%5B%5D)" class="member-name-link">wrap</a><wbr>(byte[]&nbsp;bytes)</code></div>
187-
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
187+
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
188+
<div class="block">Wrap takes the sketch image in the given Memory and refers to it directly.</div>
189+
</div>
188190
<div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="CompactSketch.html" title="class in org.apache.datasketches.theta">CompactSketch</a></code></div>
189191
<div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#wrap(byte%5B%5D,long)" class="member-name-link">wrap</a><wbr>(byte[]&nbsp;bytes,
190192
long&nbsp;expectedSeed)</code></div>
191-
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">&nbsp;</div>
193+
<div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
194+
<div class="block">Wrap takes the sketch image in the given Memory and refers to it directly.</div>
195+
</div>
192196
<div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <a href="CompactSketch.html" title="class in org.apache.datasketches.theta">CompactSketch</a></code></div>
193197
<div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#wrap(org.apache.datasketches.memory.Memory)" class="member-name-link">wrap</a><wbr>(org.apache.datasketches.memory.Memory&nbsp;srcMem)</code></div>
194198
<div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4">
@@ -348,13 +352,61 @@ <h3>wrap</h3>
348352
<section class="detail" id="wrap(byte[])">
349353
<h3>wrap</h3>
350354
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="CompactSketch.html" title="class in org.apache.datasketches.theta">CompactSketch</a></span>&nbsp;<span class="element-name">wrap</span><wbr><span class="parameters">(byte[]&nbsp;bytes)</span></div>
355+
<div class="block">Wrap takes the sketch image in the given Memory and refers to it directly.
356+
There is no data copying onto the java heap.
357+
The wrap operation enables fast read-only merging and access to all the public read-only API.
358+
359+
<p>Only "Direct" Serialization Version 3 (i.e, OpenSource) sketches that have
360+
been explicitly stored as direct sketches can be wrapped.
361+
Wrapping earlier serial version sketches will result in a heapify operation.
362+
These early versions were never designed to "wrap".</p>
363+
364+
<p>Wrapping any subclass of this class that is empty or contains only a single item will
365+
result in heapified forms of empty and single item sketch respectively.
366+
This is actually faster and consumes less overall memory.</p>
367+
368+
<p>This method checks if the DEFAULT_UPDATE_SEED was used to create the source Memory image.
369+
Note that SerialVersion 1 sketches cannot be checked as they don't have a seedHash field,
370+
so the resulting heapified CompactSketch will be given the hash of DEFAULT_UPDATE_SEED.</p></div>
371+
<dl class="notes">
372+
<dt>Parameters:</dt>
373+
<dd><code>bytes</code> - a byte array image of a Sketch that was created using the DEFAULT_UPDATE_SEED.
374+
<a href="../../../../resources/dictionary.html#mem">See Memory</a></dd>
375+
<dt>Returns:</dt>
376+
<dd>a CompactSketch backed by the given Memory except as above.</dd>
377+
</dl>
351378
</section>
352379
</li>
353380
<li>
354381
<section class="detail" id="wrap(byte[],long)">
355382
<h3>wrap</h3>
356383
<div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type"><a href="CompactSketch.html" title="class in org.apache.datasketches.theta">CompactSketch</a></span>&nbsp;<span class="element-name">wrap</span><wbr><span class="parameters">(byte[]&nbsp;bytes,
357384
long&nbsp;expectedSeed)</span></div>
385+
<div class="block">Wrap takes the sketch image in the given Memory and refers to it directly.
386+
There is no data copying onto the java heap.
387+
The wrap operation enables fast read-only merging and access to all the public read-only API.
388+
389+
<p>Only "Direct" Serialization Version 3 (i.e, OpenSource) sketches that have
390+
been explicitly stored as direct sketches can be wrapped.
391+
Wrapping earlier serial version sketches will result in a heapify operation.
392+
These early versions were never designed to "wrap".</p>
393+
394+
<p>Wrapping any subclass of this class that is empty or contains only a single item will
395+
result in heapified forms of empty and single item sketch respectively.
396+
This is actually faster and consumes less overall memory.</p>
397+
398+
<p>This method checks if the given expectedSeed was used to create the source Memory image.
399+
Note that SerialVersion 1 sketches cannot be checked as they don't have a seedHash field,
400+
so the resulting heapified CompactSketch will be given the hash of the expectedSeed.</p></div>
401+
<dl class="notes">
402+
<dt>Parameters:</dt>
403+
<dd><code>bytes</code> - a byte array image of a Sketch that was created using the given expectedSeed.
404+
<a href="../../../../resources/dictionary.html#mem">See Memory</a></dd>
405+
<dd><code>expectedSeed</code> - the seed used to validate the given Memory image.
406+
<a href="../../../../resources/dictionary.html#seed">See Update Hash Seed</a>.</dd>
407+
<dt>Returns:</dt>
408+
<dd>a CompactSketch backed by the given Memory except as above.</dd>
409+
</dl>
358410
</section>
359411
</li>
360412
<li>

docs/main/org/apache/datasketches/theta/class-use/CompactSketch.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,15 @@ <h2>Uses of <a href="../CompactSketch.html" title="class in org.apache.datasketc
198198
</div>
199199
<div class="col-first even-row-color"><code>static <a href="../CompactSketch.html" title="class in org.apache.datasketches.theta">CompactSketch</a></code></div>
200200
<div class="col-second even-row-color"><span class="type-name-label">CompactSketch.</span><code><a href="../CompactSketch.html#wrap(byte%5B%5D)" class="member-name-link">wrap</a><wbr>(byte[]&nbsp;bytes)</code></div>
201-
<div class="col-last even-row-color">&nbsp;</div>
201+
<div class="col-last even-row-color">
202+
<div class="block">Wrap takes the sketch image in the given Memory and refers to it directly.</div>
203+
</div>
202204
<div class="col-first odd-row-color"><code>static <a href="../CompactSketch.html" title="class in org.apache.datasketches.theta">CompactSketch</a></code></div>
203205
<div class="col-second odd-row-color"><span class="type-name-label">CompactSketch.</span><code><a href="../CompactSketch.html#wrap(byte%5B%5D,long)" class="member-name-link">wrap</a><wbr>(byte[]&nbsp;bytes,
204206
long&nbsp;expectedSeed)</code></div>
205-
<div class="col-last odd-row-color">&nbsp;</div>
207+
<div class="col-last odd-row-color">
208+
<div class="block">Wrap takes the sketch image in the given Memory and refers to it directly.</div>
209+
</div>
206210
<div class="col-first even-row-color"><code>static <a href="../CompactSketch.html" title="class in org.apache.datasketches.theta">CompactSketch</a></code></div>
207211
<div class="col-second even-row-color"><span class="type-name-label">CompactSketch.</span><code><a href="../CompactSketch.html#wrap(org.apache.datasketches.memory.Memory)" class="member-name-link">wrap</a><wbr>(org.apache.datasketches.memory.Memory&nbsp;srcMem)</code></div>
208212
<div class="col-last even-row-color">

0 commit comments

Comments
 (0)