blob: e37c6677282742228157cf3206e79ceb16f7b0f0 [file]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>iceberg-cpp: iceberg::PositionDeleteIndex Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">iceberg-cpp
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceiceberg.html">iceberg</a></li><li class="navelem"><a class="el" href="classiceberg_1_1PositionDeleteIndex.html">PositionDeleteIndex</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classiceberg_1_1PositionDeleteIndex-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">iceberg::PositionDeleteIndex Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Tracks deleted row positions using a bitmap.
<a href="classiceberg_1_1PositionDeleteIndex.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="position__delete__index_8h_source.html">position_delete_index.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9cb498ceddb325ed9e009b3c05d7a3e4" id="r_a9cb498ceddb325ed9e009b3c05d7a3e4"><td class="memItemLeft" align="right" valign="top"><a id="a9cb498ceddb325ed9e009b3c05d7a3e4" name="a9cb498ceddb325ed9e009b3c05d7a3e4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>PositionDeleteIndex</b> (std::shared_ptr&lt; <a class="el" href="structiceberg_1_1DataFile.html">DataFile</a> &gt; delete_file)</td></tr>
<tr class="separator:a9cb498ceddb325ed9e009b3c05d7a3e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6675349e7e83d9b153d9de1592bfbf43" id="r_a6675349e7e83d9b153d9de1592bfbf43"><td class="memItemLeft" align="right" valign="top"><a id="a6675349e7e83d9b153d9de1592bfbf43" name="a6675349e7e83d9b153d9de1592bfbf43"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>PositionDeleteIndex</b> (std::vector&lt; std::shared_ptr&lt; <a class="el" href="structiceberg_1_1DataFile.html">DataFile</a> &gt; &gt; <a class="el" href="classiceberg_1_1PositionDeleteIndex.html#afb6e4011e345b92d866e76f54d82c50f">delete_files</a>)</td></tr>
<tr class="separator:a6675349e7e83d9b153d9de1592bfbf43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4078511b75595e77d8d47c8e85a8fcbd" id="r_a4078511b75595e77d8d47c8e85a8fcbd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1PositionDeleteIndex.html#a4078511b75595e77d8d47c8e85a8fcbd">Delete</a> (int64_t pos)</td></tr>
<tr class="memdesc:a4078511b75595e77d8d47c8e85a8fcbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mark a position as deleted. <br /></td></tr>
<tr class="separator:a4078511b75595e77d8d47c8e85a8fcbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ff544576c6284abdc12ab91384a0c01" id="r_a5ff544576c6284abdc12ab91384a0c01"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1PositionDeleteIndex.html#a5ff544576c6284abdc12ab91384a0c01">Delete</a> (int64_t pos_start, int64_t pos_end)</td></tr>
<tr class="memdesc:a5ff544576c6284abdc12ab91384a0c01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mark a range of positions as deleted [pos_start, pos_end). <br /></td></tr>
<tr class="separator:a5ff544576c6284abdc12ab91384a0c01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67bf98430cba048156adff4051099172" id="r_a67bf98430cba048156adff4051099172"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1PositionDeleteIndex.html#a67bf98430cba048156adff4051099172">IsDeleted</a> (int64_t pos) const</td></tr>
<tr class="memdesc:a67bf98430cba048156adff4051099172"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if a position is deleted. <br /></td></tr>
<tr class="separator:a67bf98430cba048156adff4051099172"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73ddcaffa882c13194514305a4dfa4fd" id="r_a73ddcaffa882c13194514305a4dfa4fd"><td class="memItemLeft" align="right" valign="top"><a id="a73ddcaffa882c13194514305a4dfa4fd" name="a73ddcaffa882c13194514305a4dfa4fd"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>IsEmpty</b> () const</td></tr>
<tr class="memdesc:a73ddcaffa882c13194514305a4dfa4fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the index is empty (no positions deleted). <br /></td></tr>
<tr class="separator:a73ddcaffa882c13194514305a4dfa4fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97cda60087c06b15ff255f5b706b60d3" id="r_a97cda60087c06b15ff255f5b706b60d3"><td class="memItemLeft" align="right" valign="top"><a id="a97cda60087c06b15ff255f5b706b60d3" name="a97cda60087c06b15ff255f5b706b60d3"></a>
int64_t&#160;</td><td class="memItemRight" valign="bottom"><b>Cardinality</b> () const</td></tr>
<tr class="memdesc:a97cda60087c06b15ff255f5b706b60d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of deleted positions. <br /></td></tr>
<tr class="separator:a97cda60087c06b15ff255f5b706b60d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c2251ce5f2303e48ab3e624d806781b" id="r_a5c2251ce5f2303e48ab3e624d806781b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1PositionDeleteIndex.html#a5c2251ce5f2303e48ab3e624d806781b">Merge</a> (const <a class="el" href="classiceberg_1_1PositionDeleteIndex.html">PositionDeleteIndex</a> &amp;other)</td></tr>
<tr class="memdesc:a5c2251ce5f2303e48ab3e624d806781b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Merge another index into this one. <br /></td></tr>
<tr class="separator:a5c2251ce5f2303e48ab3e624d806781b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb6e4011e345b92d866e76f54d82c50f" id="r_afb6e4011e345b92d866e76f54d82c50f"><td class="memItemLeft" align="right" valign="top">const std::vector&lt; std::shared_ptr&lt; <a class="el" href="structiceberg_1_1DataFile.html">DataFile</a> &gt; &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1PositionDeleteIndex.html#afb6e4011e345b92d866e76f54d82c50f">delete_files</a> () const</td></tr>
<tr class="memdesc:afb6e4011e345b92d866e76f54d82c50f"><td class="mdescLeft">&#160;</td><td class="mdescRight">The delete files whose positions were merged into this index. <br /></td></tr>
<tr class="separator:afb6e4011e345b92d866e76f54d82c50f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6e466107cbe480f7b8f0fcd657ca232" id="r_af6e466107cbe480f7b8f0fcd657ca232"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result</a>&lt; std::vector&lt; uint8_t &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1PositionDeleteIndex.html#af6e466107cbe480f7b8f0fcd657ca232">Serialize</a> ()</td></tr>
<tr class="memdesc:af6e466107cbe480f7b8f0fcd657ca232"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serialize the index into a <code>deletion-vector-v1</code> blob. <br /></td></tr>
<tr class="separator:af6e466107cbe480f7b8f0fcd657ca232"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a8ac5a77a19287b5953467e4764ee6e8d" id="r_a8ac5a77a19287b5953467e4764ee6e8d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result</a>&lt; <a class="el" href="classiceberg_1_1PositionDeleteIndex.html">PositionDeleteIndex</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1PositionDeleteIndex.html#a8ac5a77a19287b5953467e4764ee6e8d">Deserialize</a> (std::span&lt; const uint8_t &gt; blob, std::shared_ptr&lt; <a class="el" href="structiceberg_1_1DataFile.html">DataFile</a> &gt; delete_file)</td></tr>
<tr class="memdesc:a8ac5a77a19287b5953467e4764ee6e8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deserialize a <code>deletion-vector-v1</code> blob into an index. <br /></td></tr>
<tr class="separator:a8ac5a77a19287b5953467e4764ee6e8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a3a228d6ac85c9d162cfc6f37225896fd" id="r_a3a228d6ac85c9d162cfc6f37225896fd"><td class="memItemLeft" align="right" valign="top">void ICEBERG_EXPORT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1PositionDeleteIndex.html#a3a228d6ac85c9d162cfc6f37225896fd">ForEachPositionDelete</a> (std::span&lt; const int64_t &gt; positions, <a class="el" href="classiceberg_1_1PositionDeleteIndex.html">PositionDeleteIndex</a> &amp;target, std::vector&lt; uint32_t &gt; &amp;scratch)</td></tr>
<tr class="memdesc:a3a228d6ac85c9d162cfc6f37225896fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply <code>positions</code> to <code>target</code> as deletes; semantically equivalent to calling <code>target.Delete(pos)</code> for each entry. Out-of-range positions are silently ignored. Sorted, mostly-contiguous input is fastest. <br /></td></tr>
<tr class="separator:a3a228d6ac85c9d162cfc6f37225896fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Tracks deleted row positions using a bitmap. </p>
<p>This class provides a domain-specific API for position deletes in Iceberg MOR (merge-on-read) tables. Positions are 0-based row indices within a data file. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a4078511b75595e77d8d47c8e85a8fcbd" name="a4078511b75595e77d8d47c8e85a8fcbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4078511b75595e77d8d47c8e85a8fcbd">&#9670;&#160;</a></span>Delete() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void iceberg::PositionDeleteIndex::Delete </td>
<td>(</td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>pos</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Mark a position as deleted. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">pos</td><td>The 0-based row position to delete </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a5ff544576c6284abdc12ab91384a0c01" name="a5ff544576c6284abdc12ab91384a0c01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ff544576c6284abdc12ab91384a0c01">&#9670;&#160;</a></span>Delete() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void iceberg::PositionDeleteIndex::Delete </td>
<td>(</td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>pos_start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>pos_end</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Mark a range of positions as deleted [pos_start, pos_end). </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">pos_start</td><td>Start position (inclusive) </td></tr>
<tr><td class="paramname">pos_end</td><td>End position (exclusive) </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="afb6e4011e345b92d866e76f54d82c50f" name="afb6e4011e345b92d866e76f54d82c50f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb6e4011e345b92d866e76f54d82c50f">&#9670;&#160;</a></span>delete_files()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const std::vector&lt; std::shared_ptr&lt; <a class="el" href="structiceberg_1_1DataFile.html">DataFile</a> &gt; &gt; &amp; iceberg::PositionDeleteIndex::delete_files </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The delete files whose positions were merged into this index. </p>
<p>Populated by constructors and Deserialize, and preserved across Merge. Callers use these to report the delete files that were rewritten when replacing them with a new deletion vector. </p>
</div>
</div>
<a id="a8ac5a77a19287b5953467e4764ee6e8d" name="a8ac5a77a19287b5953467e4764ee6e8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ac5a77a19287b5953467e4764ee6e8d">&#9670;&#160;</a></span>Deserialize()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result</a>&lt; <a class="el" href="classiceberg_1_1PositionDeleteIndex.html">PositionDeleteIndex</a> &gt; iceberg::PositionDeleteIndex::Deserialize </td>
<td>(</td>
<td class="paramtype">std::span&lt; const uint8_t &gt;&#160;</td>
<td class="paramname"><em>blob</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::shared_ptr&lt; <a class="el" href="structiceberg_1_1DataFile.html">DataFile</a> &gt;&#160;</td>
<td class="paramname"><em>delete_file</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Deserialize a <code>deletion-vector-v1</code> blob into an index. </p>
<p>Validates the blob framing (length prefix, magic sequence, CRC-32) and, against the source delete file, that the blob length matches <code>content_size_in_bytes</code> and the bitmap cardinality matches <code>record_count</code>. The source delete file is retained and exposed via <a class="el" href="classiceberg_1_1PositionDeleteIndex.html#afb6e4011e345b92d866e76f54d82c50f" title="The delete files whose positions were merged into this index.">delete_files()</a>. </p>
</div>
</div>
<a id="a67bf98430cba048156adff4051099172" name="a67bf98430cba048156adff4051099172"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a67bf98430cba048156adff4051099172">&#9670;&#160;</a></span>IsDeleted()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool iceberg::PositionDeleteIndex::IsDeleted </td>
<td>(</td>
<td class="paramtype">int64_t&#160;</td>
<td class="paramname"><em>pos</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Check if a position is deleted. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">pos</td><td>The 0-based row position to check </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the position is deleted, false otherwise </dd></dl>
</div>
</div>
<a id="a5c2251ce5f2303e48ab3e624d806781b" name="a5c2251ce5f2303e48ab3e624d806781b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5c2251ce5f2303e48ab3e624d806781b">&#9670;&#160;</a></span>Merge()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void iceberg::PositionDeleteIndex::Merge </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classiceberg_1_1PositionDeleteIndex.html">PositionDeleteIndex</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Merge another index into this one. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">other</td><td>The index to merge (union operation) </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="af6e466107cbe480f7b8f0fcd657ca232" name="af6e466107cbe480f7b8f0fcd657ca232"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6e466107cbe480f7b8f0fcd657ca232">&#9670;&#160;</a></span>Serialize()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result</a>&lt; std::vector&lt; uint8_t &gt; &gt; iceberg::PositionDeleteIndex::Serialize </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Serialize the index into a <code>deletion-vector-v1</code> blob. </p>
<p>The positions are run-length encoded, then framed per the Puffin spec: <a href="https://iceberg.apache.org/puffin-spec/#deletion-vector-v1-blob-type">https://iceberg.apache.org/puffin-spec/#deletion-vector-v1-blob-type</a> </p>
</div>
</div>
<h2 class="groupheader">Friends And Related Symbol Documentation</h2>
<a id="a3a228d6ac85c9d162cfc6f37225896fd" name="a3a228d6ac85c9d162cfc6f37225896fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a228d6ac85c9d162cfc6f37225896fd">&#9670;&#160;</a></span>ForEachPositionDelete</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void ICEBERG_EXPORT ForEachPositionDelete </td>
<td>(</td>
<td class="paramtype">std::span&lt; const int64_t &gt;&#160;</td>
<td class="paramname"><em>positions</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classiceberg_1_1PositionDeleteIndex.html">PositionDeleteIndex</a> &amp;&#160;</td>
<td class="paramname"><em>target</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; uint32_t &gt; &amp;&#160;</td>
<td class="paramname"><em>scratch</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Apply <code>positions</code> to <code>target</code> as deletes; semantically equivalent to calling <code>target.Delete(pos)</code> for each entry. Out-of-range positions are silently ignored. Sorted, mostly-contiguous input is fastest. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">scratch</td><td>Caller-owned reusable buffer for the bulk dispatch path. Cleared and reused per key group; retain across calls to amortize allocations. Pass a distinct <code>scratch</code> per thread when calling concurrently with disjoint <code>target</code>. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>iceberg/deletes/<a class="el" href="position__delete__index_8h_source.html">position_delete_index.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>