| <!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/update/merging_snapshot_update.h Source File</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&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&dn=expat.txt MIT */ |
| $(function() { |
| initMenu('',true,false,'search.php','Search'); |
| $(document).ready(function() { init_search(); }); |
| }); |
| /* @license-end */ |
| </script> |
| <div id="main-nav"></div> |
| <script type="text/javascript"> |
| /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ |
| $(document).ready(function() { init_codefold(0); }); |
| /* @license-end */ |
| </script> |
| <!-- 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="dir_51d145386ec5f52aa06ebf5e46944abc.html">iceberg</a></li><li class="navelem"><a class="el" href="dir_6d010e03372010f41233a7d3a31e0117.html">update</a></li> </ul> |
| </div> |
| </div><!-- top --> |
| <div class="header"> |
| <div class="headertitle"><div class="title">merging_snapshot_update.h</div></div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="merging__snapshot__update_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div> |
| <div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div> |
| <div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div> |
| <div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * distributed with this work for additional information</span></div> |
| <div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div> |
| <div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div> |
| <div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * "License"); you may not use this file except in compliance</span></div> |
| <div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> * with the License. You may obtain a copy of the License at</span></div> |
| <div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> *</span></div> |
| <div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div> |
| <div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> *</span></div> |
| <div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div> |
| <div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * software distributed under the License is distributed on an</span></div> |
| <div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div> |
| <div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> * KIND, either express or implied. See the License for the</span></div> |
| <div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> * specific language governing permissions and limitations</span></div> |
| <div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"> * under the License.</span></div> |
| <div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> */</span></div> |
| <div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div> |
| <div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#pragma once</span></div> |
| <div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div> |
| <div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div> |
| <div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include <cstdint></span></div> |
| <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include <memory></span></div> |
| <div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include <optional></span></div> |
| <div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include <string></span></div> |
| <div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include <unordered_map></span></div> |
| <div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include <unordered_set></span></div> |
| <div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include <vector></span></div> |
| <div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div> |
| <div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include "<a class="code" href="delete__file__index_8h.html">iceberg/delete_file_index.h</a>"</span></div> |
| <div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include "<a class="code" href="iceberg__export_8h.html">iceberg/iceberg_export.h</a>"</span></div> |
| <div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor">#include "<a class="code" href="manifest__filter__manager_8h.html">iceberg/manifest/manifest_filter_manager.h</a>"</span></div> |
| <div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="preprocessor">#include "<a class="code" href="manifest__merge__manager_8h.html">iceberg/manifest/manifest_merge_manager.h</a>"</span></div> |
| <div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="preprocessor">#include "<a class="code" href="result_8h.html">iceberg/result.h</a>"</span></div> |
| <div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="preprocessor">#include "<a class="code" href="type__fwd_8h.html">iceberg/type_fwd.h</a>"</span></div> |
| <div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="preprocessor">#include "<a class="code" href="snapshot__update_8h.html">iceberg/update/snapshot_update.h</a>"</span></div> |
| <div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span><span class="preprocessor">#include "<a class="code" href="data__file__set_8h.html">iceberg/util/data_file_set.h</a>"</span></div> |
| <div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div> |
| <div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceiceberg.html">iceberg</a> {</div> |
| <div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div> |
| <div class="foldopen" id="foldopen00063" data-start="{" data-end="};"> |
| <div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html"> 63</a></span><span class="keyword">class </span>ICEBERG_EXPORT <a class="code hl_class" href="classiceberg_1_1MergingSnapshotUpdate.html">MergingSnapshotUpdate</a> : <span class="keyword">public</span> <a class="code hl_class" href="classiceberg_1_1SnapshotUpdate.html">SnapshotUpdate</a> {</div> |
| <div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <a class="code hl_class" href="classiceberg_1_1MergingSnapshotUpdate.html">~MergingSnapshotUpdate</a>() <span class="keyword">override</span> = <span class="keywordflow">default</span>;</div> |
| <div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div> |
| <div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keyword">protected</span>:</div> |
| <div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="comment">// SnapshotUpdate overrides</span></div> |
| <div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a8ab836f6fd8fcb7d09c176ff46e9fe05"> 69</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::vector<ManifestFile></a>> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a8ab836f6fd8fcb7d09c176ff46e9fe05">Apply</a>(</div> |
| <div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata_to_update,</div> |
| <div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keyword">const</span> std::shared_ptr<Snapshot>& snapshot) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div> |
| <div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#ab12c6ab278eca6482c616bec1e3e06b6"> 73</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#ab12c6ab278eca6482c616bec1e3e06b6">CleanUncommitted</a>(<span class="keyword">const</span> std::unordered_set<std::string>& committed) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div> |
| <div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a10f1d4df0ee98054df1ac7376addb88e"> 75</a></span> std::unordered_map<std::string, std::string> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a10f1d4df0ee98054df1ac7376addb88e">Summary</a>() <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div> |
| <div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#af4b34b89786b16250bd3f9ffacc411da"> 78</a></span> <span class="keyword">explicit</span> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#af4b34b89786b16250bd3f9ffacc411da">MergingSnapshotUpdate</a>(std::string table_name,</div> |
| <div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> std::shared_ptr<TransactionContext> ctx);</div> |
| <div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div> |
| <div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a0266af766468cf5b2b7d4aa1ec052aac"> 82</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a0266af766468cf5b2b7d4aa1ec052aac">AddDataFile</a>(std::shared_ptr<DataFile> file);</div> |
| <div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div> |
| <div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#aebbe7fcc662f2a0db9e2a3c7512b30ee"> 85</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#aebbe7fcc662f2a0db9e2a3c7512b30ee">AddDeleteFile</a>(std::shared_ptr<DataFile> file);</div> |
| <div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div> |
| <div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#acede83d5edfe71a1f92faa63b22277f3"> 92</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#acede83d5edfe71a1f92faa63b22277f3">ValidateNewDeleteFile</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata, <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1DataFile.html">DataFile</a>& file);</div> |
| <div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div> |
| <div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#ae05004358ba772aea11a5da6b9b0d5e3"> 96</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#ae05004358ba772aea11a5da6b9b0d5e3">AddDeleteFile</a>(std::shared_ptr<DataFile> file, int64_t data_sequence_number);</div> |
| <div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div> |
| <div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#ab1d1c8f97b681022ac8fb477ccd556a6"> 103</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#ab1d1c8f97b681022ac8fb477ccd556a6">AddManifest</a>(<a class="code hl_struct" href="structiceberg_1_1ManifestFile.html">ManifestFile</a> manifest);</div> |
| <div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div> |
| <div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#ad88a0a10d3bc73d5957737c1109eb56e"> 106</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#ad88a0a10d3bc73d5957737c1109eb56e">DeleteDataFile</a>(std::shared_ptr<DataFile> file);</div> |
| <div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div> |
| <div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a06b1398a5e8405f9a41f76988c252efe"> 109</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a06b1398a5e8405f9a41f76988c252efe">DeleteDeleteFile</a>(std::shared_ptr<DataFile> file);</div> |
| <div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div> |
| <div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a929ff0b8cf00e521c5fcfc7fca0a7deb"> 114</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a929ff0b8cf00e521c5fcfc7fca0a7deb">DeleteByPath</a>(std::string_view path);</div> |
| <div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> </div> |
| <div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a123d534f689c69b0f7d4c8272782229c"> 121</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a123d534f689c69b0f7d4c8272782229c">DeleteByRowFilter</a>(std::shared_ptr<Expression> expr);</div> |
| <div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div> |
| <div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#ae3917375fdd4a2ed0b1de56c44b2efd3"> 127</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#ae3917375fdd4a2ed0b1de56c44b2efd3">DropPartition</a>(int32_t spec_id, <a class="code hl_class" href="classiceberg_1_1PartitionValues.html">PartitionValues</a> partition);</div> |
| <div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div> |
| <div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#aaaf997610c4b83dd929a0bb93f5a96d8"> 130</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#aaaf997610c4b83dd929a0bb93f5a96d8">FailMissingDeletePaths</a>();</div> |
| <div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div> |
| <div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a28c4aaf1ce709e35b22f16f7291a5bfe"> 133</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a28c4aaf1ce709e35b22f16f7291a5bfe">FailAnyDelete</a>();</div> |
| <div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div> |
| <div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#aa068905355eea732bea88d3c5e9645e9"> 136</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#aa068905355eea732bea88d3c5e9645e9">SetNewDataFilesDataSequenceNumber</a>(int64_t sequence_number);</div> |
| <div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div> |
| <div class="foldopen" id="foldopen00139" data-start="{" data-end="}"> |
| <div class="line"><a id="l00139" name="l00139"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#ab3c350125340cd08180d11b4bf643a53"> 139</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#ab3c350125340cd08180d11b4bf643a53">HasDataSequenceNumber</a>()<span class="keyword"> const </span>{</div> |
| <div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keywordflow">return</span> new_data_files_data_seq_number_.has_value();</div> |
| <div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> }</div> |
| </div> |
| <div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div> |
| <div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#ad171c2a68f8bf5375122471e264d652c"> 144</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#ad171c2a68f8bf5375122471e264d652c">CaseSensitive</a>(<span class="keywordtype">bool</span> case_sensitive);</div> |
| <div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div> |
| <div class="line"><a id="l00147" name="l00147"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a245f56b4ec9170c57d4cc06db7aefe41"> 147</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a245f56b4ec9170c57d4cc06db7aefe41">IsCaseSensitive</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> case_sensitive_; }</div> |
| <div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> </div> |
| <div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a650bfa9857e6a8a220dbd62a3cc465a7"> 150</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a650bfa9857e6a8a220dbd62a3cc465a7">AddsDataFiles</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div> |
| <div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#aee876bf36d5243521b8756f57aebec56"> 153</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#aee876bf36d5243521b8756f57aebec56">AddsDeleteFiles</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> </div> |
| <div class="line"><a id="l00156" name="l00156"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#abec17ce1f1b8e5b6735a119d051b040a"> 156</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#abec17ce1f1b8e5b6735a119d051b040a">DeletesDataFiles</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> </div> |
| <div class="line"><a id="l00159" name="l00159"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#ad3ec86452a15bee5d610865733f6c8e1"> 159</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#ad3ec86452a15bee5d610865733f6c8e1">DeletesDeleteFiles</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div> |
| <div class="line"><a id="l00162" name="l00162"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a2249c3e9bc624cc4fa77668266746ebd"> 162</a></span> <span class="keyword">const</span> std::shared_ptr<Expression>& <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a2249c3e9bc624cc4fa77668266746ebd">RowFilter</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> delete_expression_; }</div> |
| <div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> </div> |
| <div class="line"><a id="l00168" name="l00168"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a55bac0de3d16f0b69dbaa944d746f1fb"> 168</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<PartitionSpec></a>> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a55bac0de3d16f0b69dbaa944d746f1fb">DataSpec</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> </div> |
| <div class="line"><a id="l00171" name="l00171"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#ab6934c78daedb62ee5d035bbc81a05f2"> 171</a></span> std::vector<std::shared_ptr<DataFile>> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#ab6934c78daedb62ee5d035bbc81a05f2">AddedDataFiles</a>() <span class="keyword">const</span>;</div> |
| <div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div> |
| <div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a15f9e90ad117972d4f35fb09972cd3f4"> 175</a></span> <span class="keyword">static</span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a15f9e90ad117972d4f35fb09972cd3f4">ValidateAddedDataFiles</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata,</div> |
| <div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> std::shared_ptr<Expression> filter,</div> |
| <div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent,</div> |
| <div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> std::shared_ptr<FileIO> io,</div> |
| <div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <span class="keywordtype">bool</span> case_sensitive = <span class="keyword">true</span>);</div> |
| <div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> </div> |
| <div class="line"><a id="l00185" name="l00185"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#aa14653a29436f5d6bfae2939523512d6"> 185</a></span> <span class="keyword">static</span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#aa14653a29436f5d6bfae2939523512d6">ValidateAddedDataFiles</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata,</div> |
| <div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1PartitionSet.html">PartitionSet</a>& partition_set,</div> |
| <div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent,</div> |
| <div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> std::shared_ptr<FileIO> io);</div> |
| <div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> </div> |
| <div class="line"><a id="l00194" name="l00194"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a68a726abb45099834d119ac9c3097676"> 194</a></span> <span class="keyword">static</span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a68a726abb45099834d119ac9c3097676">ValidateDataFilesExist</a>(</div> |
| <div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata, std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keyword">const</span> std::unordered_set<std::string>& file_paths, <span class="keywordtype">bool</span> skip_deletes,</div> |
| <div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> std::shared_ptr<Expression> filter, <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent,</div> |
| <div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> std::shared_ptr<FileIO> io, <span class="keywordtype">bool</span> case_sensitive = <span class="keyword">true</span>);</div> |
| <div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> </div> |
| <div class="foldopen" id="foldopen00209" data-start="{" data-end="}"> |
| <div class="line"><a id="l00209" name="l00209"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#aabb44218199cdab4e6082fab0b5ef559"> 209</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#aabb44218199cdab4e6082fab0b5ef559">ValidateNoNewDeletesForDataFiles</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata,</div> |
| <div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1DataFileSet.html">DataFileSet</a>& replaced_files,</div> |
| <div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent,</div> |
| <div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> std::shared_ptr<FileIO> io)<span class="keyword"> const </span>{</div> |
| <div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> ignore_equality_deletes = new_data_files_data_seq_number_.has_value();</div> |
| <div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <span class="keywordflow">return</span> ValidateNoNewDeletesForDataFiles(metadata, starting_snapshot_id,</div> |
| <div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> replaced_files, parent, io,</div> |
| <div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> ignore_equality_deletes);</div> |
| <div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> }</div> |
| </div> |
| <div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> </div> |
| <div class="line"><a id="l00227" name="l00227"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#ae7439da6e58b4ee17f51c34260c38d75"> 227</a></span> <span class="keyword">static</span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#ae7439da6e58b4ee17f51c34260c38d75">ValidateNoNewDeletesForDataFiles</a>(</div> |
| <div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata, std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1DataFileSet.html">DataFileSet</a>& replaced_files, <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent,</div> |
| <div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> std::shared_ptr<FileIO> io, <span class="keywordtype">bool</span> ignore_equality_deletes = <span class="keyword">false</span>);</div> |
| <div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> </div> |
| <div class="line"><a id="l00235" name="l00235"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a7be18bce4880653b3277fa48fd5801c9"> 235</a></span> <span class="keyword">static</span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a7be18bce4880653b3277fa48fd5801c9">ValidateNoNewDeletesForDataFiles</a>(</div> |
| <div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata, std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> std::shared_ptr<Expression> data_filter, <span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1DataFileSet.html">DataFileSet</a>& replaced_files,</div> |
| <div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent, std::shared_ptr<FileIO> io,</div> |
| <div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="keywordtype">bool</span> case_sensitive = <span class="keyword">true</span>);</div> |
| <div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> </div> |
| <div class="line"><a id="l00244" name="l00244"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a48cd497619774328d2cd27fda892c097"> 244</a></span> <span class="keyword">static</span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a48cd497619774328d2cd27fda892c097">ValidateNoNewDeleteFiles</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata,</div> |
| <div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> std::shared_ptr<Expression> data_filter,</div> |
| <div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent,</div> |
| <div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> std::shared_ptr<FileIO> io,</div> |
| <div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> <span class="keywordtype">bool</span> case_sensitive = <span class="keyword">true</span>);</div> |
| <div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> </div> |
| <div class="line"><a id="l00254" name="l00254"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a7c3244f5f56beeca957e32a71b060eef"> 254</a></span> <span class="keyword">static</span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a7c3244f5f56beeca957e32a71b060eef">ValidateNoNewDeleteFiles</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata,</div> |
| <div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> <span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1PartitionSet.html">PartitionSet</a>& partition_set,</div> |
| <div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent,</div> |
| <div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> std::shared_ptr<FileIO> io);</div> |
| <div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> </div> |
| <div class="line"><a id="l00262" name="l00262"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a2ca7d5687a18d5c380bf65e9adb5ec8a"> 262</a></span> <span class="keyword">static</span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a2ca7d5687a18d5c380bf65e9adb5ec8a">ValidateDeletedDataFiles</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata,</div> |
| <div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> std::shared_ptr<Expression> data_filter,</div> |
| <div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent,</div> |
| <div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> std::shared_ptr<FileIO> io,</div> |
| <div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> <span class="keywordtype">bool</span> case_sensitive = <span class="keyword">true</span>);</div> |
| <div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> </div> |
| <div class="line"><a id="l00272" name="l00272"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a29b560a06884e0cf353a8219160f8a4a"> 272</a></span> <span class="keyword">static</span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a29b560a06884e0cf353a8219160f8a4a">ValidateDeletedDataFiles</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata,</div> |
| <div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> <span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1PartitionSet.html">PartitionSet</a>& partition_set,</div> |
| <div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent,</div> |
| <div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> std::shared_ptr<FileIO> io);</div> |
| <div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> </div> |
| <div class="line"><a id="l00279" name="l00279"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#af6104d186f95c6e1142207436c8f80d6"> 279</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::unique_ptr<DeleteFileIndex></a>> <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#af6104d186f95c6e1142207436c8f80d6">AddedDeleteFiles</a>(</div> |
| <div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata, std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> std::shared_ptr<Expression> data_filter,</div> |
| <div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> std::shared_ptr<PartitionSet> partition_set,</div> |
| <div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent, std::shared_ptr<FileIO> io,</div> |
| <div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="keywordtype">bool</span> case_sensitive = <span class="keyword">true</span>);</div> |
| <div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> </div> |
| <div class="line"><a id="l00289" name="l00289"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#ac8f92a9a51dc4872bb55897b0ecfee67"> 289</a></span> <span class="keyword">static</span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#ac8f92a9a51dc4872bb55897b0ecfee67">ValidateAddedDVs</a>(</div> |
| <div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata, std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> std::shared_ptr<Expression> conflict_filter,</div> |
| <div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <span class="keyword">const</span> std::unordered_set<std::string>& referenced_data_files,</div> |
| <div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent, std::shared_ptr<FileIO> io,</div> |
| <div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> <span class="keywordtype">bool</span> case_sensitive = <span class="keyword">true</span>);</div> |
| <div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> </div> |
| <div class="line"><a id="l00298" name="l00298"></a><span class="lineno"><a class="line" href="classiceberg_1_1MergingSnapshotUpdate.html#a343375d4508a23379eb1c8f3f000e3d1"> 298</a></span> Status <a class="code hl_function" href="classiceberg_1_1MergingSnapshotUpdate.html#a343375d4508a23379eb1c8f3f000e3d1">ValidateAddedDVs</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>& metadata,</div> |
| <div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> std::optional<int64_t> starting_snapshot_id,</div> |
| <div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> std::shared_ptr<Expression> conflict_filter,</div> |
| <div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> <span class="keyword">const</span> std::shared_ptr<Snapshot>& parent,</div> |
| <div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> std::shared_ptr<FileIO> io) <span class="keyword">const</span>;</div> |
| <div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> </div> |
| <div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> <span class="keyword">private</span>:</div> |
| <div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> <span class="keyword">struct </span>PendingDeleteFile {</div> |
| <div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span> std::shared_ptr<DataFile> file;</div> |
| <div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> std::optional<int64_t> data_sequence_number;</div> |
| <div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span> };</div> |
| <div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> </div> |
| <div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> <span class="keyword">struct </span>PendingDeleteFilesByReferencedFile {</div> |
| <div class="foldopen" id="foldopen00315" data-start="{" data-end="};"> |
| <div class="line"><a id="l00315" name="l00315"></a><span class="lineno"><a class="line" href="structiceberg_1_1MergingSnapshotUpdate_1_1PendingDeleteFilesByReferencedFile_1_1Entry.html"> 315</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structiceberg_1_1MergingSnapshotUpdate_1_1PendingDeleteFilesByReferencedFile_1_1Entry.html">Entry</a> {</div> |
| <div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> std::string referenced_file;</div> |
| <div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> std::vector<PendingDeleteFile> files;</div> |
| <div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> };</div> |
| </div> |
| <div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> </div> |
| <div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> <span class="keywordtype">void</span> Add(std::string referenced_file, PendingDeleteFile file);</div> |
| <div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> <span class="keywordtype">bool</span> empty()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> entries_.empty(); }</div> |
| <div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> <span class="keywordtype">size_t</span> size()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> entries_.size(); }</div> |
| <div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> <span class="keyword">const</span> std::vector<Entry>& entries()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> entries_; }</div> |
| <div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> </div> |
| <div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> <span class="keyword">private</span>:</div> |
| <div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> std::vector<Entry> entries_;</div> |
| <div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> std::unordered_map<std::string, size_t> index_by_referenced_file_;</div> |
| <div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> };</div> |
| <div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> </div> |
| <div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> <a class="code hl_typedef" href="namespaceiceberg.html#a0fcb4cda5197f4d8c18772a445455cc2">ManifestWriterFactory</a> MakeWriterFactory(<span class="keyword">const</span> std::shared_ptr<Schema>& schema);</div> |
| <div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> </div> |
| <div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> Result<ManifestFile> CopyManifest(<span class="keyword">const</span> ManifestFile& manifest, <span class="keywordtype">bool</span> update_summary);</div> |
| <div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> </div> |
| <div class="line"><a id="l00337" name="l00337"></a><span class="lineno"> 337</span> Status AddDeleteFile(std::shared_ptr<DataFile> file,</div> |
| <div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span> std::optional<int64_t> data_sequence_number);</div> |
| <div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> </div> |
| <div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> Status ManagersReady() <span class="keyword">const</span>;</div> |
| <div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span> </div> |
| <div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span> <span class="keywordtype">void</span> SetSummaryProperty(<span class="keyword">const</span> std::string& property, <span class="keyword">const</span> std::string& value) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span> </div> |
| <div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> Result<std::vector<PendingDeleteFile>> MergeDVs();</div> |
| <div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> </div> |
| <div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> Result<std::vector<ManifestFile>> WriteNewDataManifests();</div> |
| <div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span> </div> |
| <div class="line"><a id="l00350" name="l00350"></a><span class="lineno"> 350</span> Result<std::vector<ManifestFile>> WriteNewDeleteManifests();</div> |
| <div class="line"><a id="l00351" name="l00351"></a><span class="lineno"> 351</span> </div> |
| <div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span> Status CleanUncommittedAppends(<span class="keyword">const</span> std::unordered_set<std::string>& committed);</div> |
| <div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> </div> |
| <div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> Status DeleteUncommitted(std::vector<ManifestFile>& manifests,</div> |
| <div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> <span class="keyword">const</span> std::unordered_set<std::string>& committed, <span class="keywordtype">bool</span> clear);</div> |
| <div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> </div> |
| <div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> <span class="comment">// Used for commit event notifications and diagnostic log messages.</span></div> |
| <div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> std::string table_name_;</div> |
| <div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> std::shared_ptr<Expression> delete_expression_;</div> |
| <div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> <span class="keywordtype">bool</span> case_sensitive_ = <span class="keyword">true</span>;</div> |
| <div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span> </div> |
| <div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> <span class="comment">// Stable sub-builders for added files — accumulated across retries and merged</span></div> |
| <div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span> <span class="comment">// into summary_builder_ at the start of each Apply() call.</span></div> |
| <div class="line"><a id="l00364" name="l00364"></a><span class="lineno"> 364</span> SnapshotSummaryBuilder added_data_files_summary_;</div> |
| <div class="line"><a id="l00365" name="l00365"></a><span class="lineno"> 365</span> SnapshotSummaryBuilder added_delete_files_summary_;</div> |
| <div class="line"><a id="l00366" name="l00366"></a><span class="lineno"> 366</span> SnapshotSummaryBuilder appended_manifests_summary_;</div> |
| <div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> std::unordered_map<std::string, std::string> custom_summary_properties_;</div> |
| <div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> </div> |
| <div class="line"><a id="l00369" name="l00369"></a><span class="lineno"> 369</span> std::unique_ptr<ManifestFilterManager> data_filter_manager_;</div> |
| <div class="line"><a id="l00370" name="l00370"></a><span class="lineno"> 370</span> std::unique_ptr<ManifestFilterManager> delete_filter_manager_;</div> |
| <div class="line"><a id="l00371" name="l00371"></a><span class="lineno"> 371</span> std::unique_ptr<ManifestMergeManager> data_merge_manager_;</div> |
| <div class="line"><a id="l00372" name="l00372"></a><span class="lineno"> 372</span> std::unique_ptr<ManifestMergeManager> delete_merge_manager_;</div> |
| <div class="line"><a id="l00373" name="l00373"></a><span class="lineno"> 373</span> </div> |
| <div class="line"><a id="l00374" name="l00374"></a><span class="lineno"> 374</span> std::unordered_map<int32_t, DataFileSet> new_data_files_by_spec_;</div> |
| <div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span> std::vector<PendingDeleteFile> v2_deletes_;</div> |
| <div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> PendingDeleteFilesByReferencedFile dvs_by_referenced_file_;</div> |
| <div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span> std::optional<int64_t> new_data_files_data_seq_number_;</div> |
| <div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> </div> |
| <div class="line"><a id="l00379" name="l00379"></a><span class="lineno"> 379</span> <span class="comment">// Manifests passed via AddManifest(): inherit path (no copy needed) and</span></div> |
| <div class="line"><a id="l00380" name="l00380"></a><span class="lineno"> 380</span> <span class="comment">// rewrite path (must be copied with the current snapshot ID).</span></div> |
| <div class="line"><a id="l00381" name="l00381"></a><span class="lineno"> 381</span> std::vector<ManifestFile> append_manifests_;</div> |
| <div class="line"><a id="l00382" name="l00382"></a><span class="lineno"> 382</span> <span class="comment">// Original manifests kept to recreate copied manifests after retry cleanup.</span></div> |
| <div class="line"><a id="l00383" name="l00383"></a><span class="lineno"> 383</span> std::vector<ManifestFile> append_manifests_to_copy_;</div> |
| <div class="line"><a id="l00384" name="l00384"></a><span class="lineno"> 384</span> std::vector<ManifestFile> rewritten_append_manifests_;</div> |
| <div class="line"><a id="l00385" name="l00385"></a><span class="lineno"> 385</span> </div> |
| <div class="line"><a id="l00386" name="l00386"></a><span class="lineno"> 386</span> <span class="comment">// Set to true when new files are staged after the cache was populated, so the</span></div> |
| <div class="line"><a id="l00387" name="l00387"></a><span class="lineno"> 387</span> <span class="comment">// cache is invalidated and re-written on the next Apply() call (commit retry).</span></div> |
| <div class="line"><a id="l00388" name="l00388"></a><span class="lineno"> 388</span> <span class="keywordtype">bool</span> has_new_data_files_ = <span class="keyword">false</span>;</div> |
| <div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span> <span class="keywordtype">bool</span> has_new_delete_files_ = <span class="keyword">false</span>;</div> |
| <div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> </div> |
| <div class="line"><a id="l00391" name="l00391"></a><span class="lineno"> 391</span> std::vector<ManifestFile> cached_new_data_manifests_;</div> |
| <div class="line"><a id="l00392" name="l00392"></a><span class="lineno"> 392</span> std::vector<ManifestFile> cached_new_delete_manifests_;</div> |
| <div class="line"><a id="l00393" name="l00393"></a><span class="lineno"> 393</span> std::vector<PendingDeleteFile> merged_dvs_;</div> |
| <div class="line"><a id="l00394" name="l00394"></a><span class="lineno"> 394</span> int32_t dv_merge_attempt_ = 0;</div> |
| <div class="line"><a id="l00395" name="l00395"></a><span class="lineno"> 395</span>};</div> |
| </div> |
| <div class="line"><a id="l00396" name="l00396"></a><span class="lineno"> 396</span> </div> |
| <div class="line"><a id="l00397" name="l00397"></a><span class="lineno"> 397</span>} <span class="comment">// namespace iceberg</span></div> |
| <div class="ttc" id="aclassiceberg_1_1DataFileSet_html"><div class="ttname"><a href="classiceberg_1_1DataFileSet.html">iceberg::DataFileSet</a></div><div class="ttdoc">A set of DataFile pointers with insertion order preserved and deduplicated by file path.</div><div class="ttdef"><b>Definition</b> data_file_set.h:44</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html">iceberg::MergingSnapshotUpdate</a></div><div class="ttdoc">Abstract base class for merge-based snapshot write operations.</div><div class="ttdef"><b>Definition</b> merging_snapshot_update.h:63</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a0266af766468cf5b2b7d4aa1ec052aac"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a0266af766468cf5b2b7d4aa1ec052aac">iceberg::MergingSnapshotUpdate::AddDataFile</a></div><div class="ttdeci">Status AddDataFile(std::shared_ptr< DataFile > file)</div><div class="ttdoc">Stage a data file to be added to the table.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a06b1398a5e8405f9a41f76988c252efe"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a06b1398a5e8405f9a41f76988c252efe">iceberg::MergingSnapshotUpdate::DeleteDeleteFile</a></div><div class="ttdeci">Status DeleteDeleteFile(std::shared_ptr< DataFile > file)</div><div class="ttdoc">Register a delete file (by object) to be removed from the table.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a10f1d4df0ee98054df1ac7376addb88e"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a10f1d4df0ee98054df1ac7376addb88e">iceberg::MergingSnapshotUpdate::Summary</a></div><div class="ttdeci">std::unordered_map< std::string, std::string > Summary() override</div><div class="ttdoc">Get the summary map for this operation.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a123d534f689c69b0f7d4c8272782229c"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a123d534f689c69b0f7d4c8272782229c">iceberg::MergingSnapshotUpdate::DeleteByRowFilter</a></div><div class="ttdeci">Status DeleteByRowFilter(std::shared_ptr< Expression > expr)</div><div class="ttdoc">Register an expression to delete matching rows.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a15f9e90ad117972d4f35fb09972cd3f4"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a15f9e90ad117972d4f35fb09972cd3f4">iceberg::MergingSnapshotUpdate::ValidateAddedDataFiles</a></div><div class="ttdeci">static Status ValidateAddedDataFiles(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, std::shared_ptr< Expression > filter, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io, bool case_sensitive=true)</div><div class="ttdoc">Return an error if any snapshot after starting_snapshot_id, or from the beginning if unset,...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a2249c3e9bc624cc4fa77668266746ebd"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a2249c3e9bc624cc4fa77668266746ebd">iceberg::MergingSnapshotUpdate::RowFilter</a></div><div class="ttdeci">const std::shared_ptr< Expression > & RowFilter() const</div><div class="ttdoc">Returns the row-filter expression set via DeleteByRowFilter, or nullptr.</div><div class="ttdef"><b>Definition</b> merging_snapshot_update.h:162</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a245f56b4ec9170c57d4cc06db7aefe41"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a245f56b4ec9170c57d4cc06db7aefe41">iceberg::MergingSnapshotUpdate::IsCaseSensitive</a></div><div class="ttdeci">bool IsCaseSensitive() const</div><div class="ttdoc">Returns true if case-sensitive matching is enabled (default: true).</div><div class="ttdef"><b>Definition</b> merging_snapshot_update.h:147</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a28c4aaf1ce709e35b22f16f7291a5bfe"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a28c4aaf1ce709e35b22f16f7291a5bfe">iceberg::MergingSnapshotUpdate::FailAnyDelete</a></div><div class="ttdeci">void FailAnyDelete()</div><div class="ttdoc">Fail if any manifest entry matches a delete condition.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a29b560a06884e0cf353a8219160f8a4a"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a29b560a06884e0cf353a8219160f8a4a">iceberg::MergingSnapshotUpdate::ValidateDeletedDataFiles</a></div><div class="ttdeci">static Status ValidateDeletedDataFiles(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, const PartitionSet &partition_set, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io)</div><div class="ttdoc">Return an error if any snapshot after starting_snapshot_id, or from the beginning if unset,...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a2ca7d5687a18d5c380bf65e9adb5ec8a"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a2ca7d5687a18d5c380bf65e9adb5ec8a">iceberg::MergingSnapshotUpdate::ValidateDeletedDataFiles</a></div><div class="ttdeci">static Status ValidateDeletedDataFiles(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, std::shared_ptr< Expression > data_filter, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io, bool case_sensitive=true)</div><div class="ttdoc">Return an error if any snapshot after starting_snapshot_id, or from the beginning if unset,...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a343375d4508a23379eb1c8f3f000e3d1"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a343375d4508a23379eb1c8f3f000e3d1">iceberg::MergingSnapshotUpdate::ValidateAddedDVs</a></div><div class="ttdeci">Status ValidateAddedDVs(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, std::shared_ptr< Expression > conflict_filter, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io) const</div><div class="ttdoc">Return an error if a staged deletion vector conflicts with a deletion vector added since starting_sna...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a48cd497619774328d2cd27fda892c097"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a48cd497619774328d2cd27fda892c097">iceberg::MergingSnapshotUpdate::ValidateNoNewDeleteFiles</a></div><div class="ttdeci">static Status ValidateNoNewDeleteFiles(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, std::shared_ptr< Expression > data_filter, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io, bool case_sensitive=true)</div><div class="ttdoc">Return an error if any snapshot after starting_snapshot_id, or from the beginning if unset,...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a55bac0de3d16f0b69dbaa944d746f1fb"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a55bac0de3d16f0b69dbaa944d746f1fb">iceberg::MergingSnapshotUpdate::DataSpec</a></div><div class="ttdeci">Result< std::shared_ptr< PartitionSpec > > DataSpec() const</div><div class="ttdoc">Returns the single partition spec for all staged data files.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a650bfa9857e6a8a220dbd62a3cc465a7"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a650bfa9857e6a8a220dbd62a3cc465a7">iceberg::MergingSnapshotUpdate::AddsDataFiles</a></div><div class="ttdeci">bool AddsDataFiles() const</div><div class="ttdoc">Returns true if any data files have been staged for addition.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a68a726abb45099834d119ac9c3097676"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a68a726abb45099834d119ac9c3097676">iceberg::MergingSnapshotUpdate::ValidateDataFilesExist</a></div><div class="ttdeci">static Status ValidateDataFilesExist(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, const std::unordered_set< std::string > &file_paths, bool skip_deletes, std::shared_ptr< Expression > filter, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io, bool case_sensitive=true)</div><div class="ttdoc">Return an error if any snapshot after starting_snapshot_id, or from the beginning if unset,...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a7be18bce4880653b3277fa48fd5801c9"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a7be18bce4880653b3277fa48fd5801c9">iceberg::MergingSnapshotUpdate::ValidateNoNewDeletesForDataFiles</a></div><div class="ttdeci">static Status ValidateNoNewDeletesForDataFiles(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, std::shared_ptr< Expression > data_filter, const DataFileSet &replaced_files, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io, bool case_sensitive=true)</div><div class="ttdoc">Return an error if any snapshot after starting_snapshot_id, or from the beginning if unset,...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a7c3244f5f56beeca957e32a71b060eef"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a7c3244f5f56beeca957e32a71b060eef">iceberg::MergingSnapshotUpdate::ValidateNoNewDeleteFiles</a></div><div class="ttdeci">static Status ValidateNoNewDeleteFiles(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, const PartitionSet &partition_set, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io)</div><div class="ttdoc">Return an error if any snapshot after starting_snapshot_id, or from the beginning if unset,...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a8ab836f6fd8fcb7d09c176ff46e9fe05"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a8ab836f6fd8fcb7d09c176ff46e9fe05">iceberg::MergingSnapshotUpdate::Apply</a></div><div class="ttdeci">Result< std::vector< ManifestFile > > Apply(const TableMetadata &metadata_to_update, const std::shared_ptr< Snapshot > &snapshot) override</div><div class="ttdoc">Apply the update's changes to the given metadata and snapshot.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_a929ff0b8cf00e521c5fcfc7fca0a7deb"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#a929ff0b8cf00e521c5fcfc7fca0a7deb">iceberg::MergingSnapshotUpdate::DeleteByPath</a></div><div class="ttdeci">Status DeleteByPath(std::string_view path)</div><div class="ttdoc">Register a data file path to be deleted from the table.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_aa068905355eea732bea88d3c5e9645e9"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#aa068905355eea732bea88d3c5e9645e9">iceberg::MergingSnapshotUpdate::SetNewDataFilesDataSequenceNumber</a></div><div class="ttdeci">void SetNewDataFilesDataSequenceNumber(int64_t sequence_number)</div><div class="ttdoc">Override the data sequence number assigned to all newly-added data files.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_aa14653a29436f5d6bfae2939523512d6"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#aa14653a29436f5d6bfae2939523512d6">iceberg::MergingSnapshotUpdate::ValidateAddedDataFiles</a></div><div class="ttdeci">static Status ValidateAddedDataFiles(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, const PartitionSet &partition_set, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io)</div><div class="ttdoc">Return an error if any snapshot after starting_snapshot_id, or from the beginning if unset,...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_aaaf997610c4b83dd929a0bb93f5a96d8"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#aaaf997610c4b83dd929a0bb93f5a96d8">iceberg::MergingSnapshotUpdate::FailMissingDeletePaths</a></div><div class="ttdeci">void FailMissingDeletePaths()</div><div class="ttdoc">Fail if any registered delete path is not found in any manifest.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_aabb44218199cdab4e6082fab0b5ef559"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#aabb44218199cdab4e6082fab0b5ef559">iceberg::MergingSnapshotUpdate::ValidateNoNewDeletesForDataFiles</a></div><div class="ttdeci">Status ValidateNoNewDeletesForDataFiles(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, const DataFileSet &replaced_files, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io) const</div><div class="ttdoc">Return an error if any snapshot after starting_snapshot_id, or from the beginning if unset,...</div><div class="ttdef"><b>Definition</b> merging_snapshot_update.h:209</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_ab12c6ab278eca6482c616bec1e3e06b6"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#ab12c6ab278eca6482c616bec1e3e06b6">iceberg::MergingSnapshotUpdate::CleanUncommitted</a></div><div class="ttdeci">Status CleanUncommitted(const std::unordered_set< std::string > &committed) override</div><div class="ttdoc">Clean up any uncommitted manifests that were created.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_ab1d1c8f97b681022ac8fb477ccd556a6"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#ab1d1c8f97b681022ac8fb477ccd556a6">iceberg::MergingSnapshotUpdate::AddManifest</a></div><div class="ttdeci">Status AddManifest(ManifestFile manifest)</div><div class="ttdoc">Add all files in a pre-existing data manifest to the new snapshot.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_ab3c350125340cd08180d11b4bf643a53"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#ab3c350125340cd08180d11b4bf643a53">iceberg::MergingSnapshotUpdate::HasDataSequenceNumber</a></div><div class="ttdeci">bool HasDataSequenceNumber() const</div><div class="ttdoc">Returns true if SetNewDataFilesDataSequenceNumber was called.</div><div class="ttdef"><b>Definition</b> merging_snapshot_update.h:139</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_ab6934c78daedb62ee5d035bbc81a05f2"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#ab6934c78daedb62ee5d035bbc81a05f2">iceberg::MergingSnapshotUpdate::AddedDataFiles</a></div><div class="ttdeci">std::vector< std::shared_ptr< DataFile > > AddedDataFiles() const</div><div class="ttdoc">Returns all data files staged for addition.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_abec17ce1f1b8e5b6735a119d051b040a"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#abec17ce1f1b8e5b6735a119d051b040a">iceberg::MergingSnapshotUpdate::DeletesDataFiles</a></div><div class="ttdeci">bool DeletesDataFiles() const</div><div class="ttdoc">Returns true if any data files have been registered for deletion.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_ac8f92a9a51dc4872bb55897b0ecfee67"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#ac8f92a9a51dc4872bb55897b0ecfee67">iceberg::MergingSnapshotUpdate::ValidateAddedDVs</a></div><div class="ttdeci">static Status ValidateAddedDVs(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, std::shared_ptr< Expression > conflict_filter, const std::unordered_set< std::string > &referenced_data_files, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io, bool case_sensitive=true)</div><div class="ttdoc">Return an error if any snapshot after starting_snapshot_id, or from the beginning if unset,...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_acede83d5edfe71a1f92faa63b22277f3"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#acede83d5edfe71a1f92faa63b22277f3">iceberg::MergingSnapshotUpdate::ValidateNewDeleteFile</a></div><div class="ttdeci">Status ValidateNewDeleteFile(const TableMetadata &metadata, const DataFile &file)</div><div class="ttdoc">Validate a delete file against the table format version rules.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_ad171c2a68f8bf5375122471e264d652c"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#ad171c2a68f8bf5375122471e264d652c">iceberg::MergingSnapshotUpdate::CaseSensitive</a></div><div class="ttdeci">void CaseSensitive(bool case_sensitive)</div><div class="ttdoc">Set case sensitivity for row filter and expression evaluation.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_ad3ec86452a15bee5d610865733f6c8e1"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#ad3ec86452a15bee5d610865733f6c8e1">iceberg::MergingSnapshotUpdate::DeletesDeleteFiles</a></div><div class="ttdeci">bool DeletesDeleteFiles() const</div><div class="ttdoc">Returns true if any delete files have been registered for removal.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_ad88a0a10d3bc73d5957737c1109eb56e"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#ad88a0a10d3bc73d5957737c1109eb56e">iceberg::MergingSnapshotUpdate::DeleteDataFile</a></div><div class="ttdeci">Status DeleteDataFile(std::shared_ptr< DataFile > file)</div><div class="ttdoc">Register a data file (by object) to be deleted from the table.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_ae05004358ba772aea11a5da6b9b0d5e3"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#ae05004358ba772aea11a5da6b9b0d5e3">iceberg::MergingSnapshotUpdate::AddDeleteFile</a></div><div class="ttdeci">Status AddDeleteFile(std::shared_ptr< DataFile > file, int64_t data_sequence_number)</div><div class="ttdoc">Stage a delete file with an explicit data sequence number.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_ae3917375fdd4a2ed0b1de56c44b2efd3"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#ae3917375fdd4a2ed0b1de56c44b2efd3">iceberg::MergingSnapshotUpdate::DropPartition</a></div><div class="ttdeci">Status DropPartition(int32_t spec_id, PartitionValues partition)</div><div class="ttdoc">Register a partition to be dropped.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_ae7439da6e58b4ee17f51c34260c38d75"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#ae7439da6e58b4ee17f51c34260c38d75">iceberg::MergingSnapshotUpdate::ValidateNoNewDeletesForDataFiles</a></div><div class="ttdeci">static Status ValidateNoNewDeletesForDataFiles(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, const DataFileSet &replaced_files, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io, bool ignore_equality_deletes=false)</div><div class="ttdoc">Return an error if any snapshot after starting_snapshot_id, or from the beginning if unset,...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_aebbe7fcc662f2a0db9e2a3c7512b30ee"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#aebbe7fcc662f2a0db9e2a3c7512b30ee">iceberg::MergingSnapshotUpdate::AddDeleteFile</a></div><div class="ttdeci">Status AddDeleteFile(std::shared_ptr< DataFile > file)</div><div class="ttdoc">Stage a delete file to be added to the table.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_aee876bf36d5243521b8756f57aebec56"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#aee876bf36d5243521b8756f57aebec56">iceberg::MergingSnapshotUpdate::AddsDeleteFiles</a></div><div class="ttdeci">bool AddsDeleteFiles() const</div><div class="ttdoc">Returns true if any delete files have been staged for addition.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_af4b34b89786b16250bd3f9ffacc411da"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#af4b34b89786b16250bd3f9ffacc411da">iceberg::MergingSnapshotUpdate::MergingSnapshotUpdate</a></div><div class="ttdeci">MergingSnapshotUpdate(std::string table_name, std::shared_ptr< TransactionContext > ctx)</div><div class="ttdoc">Constructor; reads merge configuration from table properties.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1MergingSnapshotUpdate_html_af6104d186f95c6e1142207436c8f80d6"><div class="ttname"><a href="classiceberg_1_1MergingSnapshotUpdate.html#af6104d186f95c6e1142207436c8f80d6">iceberg::MergingSnapshotUpdate::AddedDeleteFiles</a></div><div class="ttdeci">static Result< std::unique_ptr< DeleteFileIndex > > AddedDeleteFiles(const TableMetadata &metadata, std::optional< int64_t > starting_snapshot_id, std::shared_ptr< Expression > data_filter, std::shared_ptr< PartitionSet > partition_set, const std::shared_ptr< Snapshot > &parent, std::shared_ptr< FileIO > io, bool case_sensitive=true)</div><div class="ttdoc">Build a DeleteFileIndex of delete files added since starting_snapshot_id.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1PartitionSet_html"><div class="ttname"><a href="classiceberg_1_1PartitionSet.html">iceberg::PartitionSet</a></div><div class="ttdoc">A set that uses a pair of spec ID and partition tuple as elements.</div><div class="ttdef"><b>Definition</b> partition_value_util.h:204</div></div> |
| <div class="ttc" id="aclassiceberg_1_1PartitionValues_html"><div class="ttname"><a href="classiceberg_1_1PartitionValues.html">iceberg::PartitionValues</a></div><div class="ttdoc">StructLike wrapper for a vector of literals that represent partition values.</div><div class="ttdef"><b>Definition</b> partition_values.h:36</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotUpdate_html"><div class="ttname"><a href="classiceberg_1_1SnapshotUpdate.html">iceberg::SnapshotUpdate</a></div><div class="ttdoc">API for table changes that produce snapshots.</div><div class="ttdef"><b>Definition</b> snapshot_update.h:49</div></div> |
| <div class="ttc" id="adata__file__set_8h_html"><div class="ttname"><a href="data__file__set_8h.html">data_file_set.h</a></div></div> |
| <div class="ttc" id="adelete__file__index_8h_html"><div class="ttname"><a href="delete__file__index_8h.html">delete_file_index.h</a></div></div> |
| <div class="ttc" id="aiceberg__export_8h_html"><div class="ttname"><a href="iceberg__export_8h.html">iceberg_export.h</a></div><div class="ttdoc">Define symbol visibility macros for core Iceberg APIs.</div></div> |
| <div class="ttc" id="amanifest__filter__manager_8h_html"><div class="ttname"><a href="manifest__filter__manager_8h.html">manifest_filter_manager.h</a></div></div> |
| <div class="ttc" id="amanifest__merge__manager_8h_html"><div class="ttname"><a href="manifest__merge__manager_8h.html">manifest_merge_manager.h</a></div></div> |
| <div class="ttc" id="anamespaceiceberg_html"><div class="ttname"><a href="namespaceiceberg.html">iceberg</a></div><div class="ttdoc">Core Apache Iceberg C++ APIs.</div><div class="ttdef"><b>Definition</b> arrow_io_util.h:33</div></div> |
| <div class="ttc" id="anamespaceiceberg_html_a0fcb4cda5197f4d8c18772a445455cc2"><div class="ttname"><a href="namespaceiceberg.html#a0fcb4cda5197f4d8c18772a445455cc2">iceberg::ManifestWriterFactory</a></div><div class="ttdeci">std::function< Result< std::unique_ptr< ManifestWriter > >(int32_t spec_id, ManifestContent content)> ManifestWriterFactory</div><div class="ttdoc">Factory type for creating ManifestWriter instances.</div><div class="ttdef"><b>Definition</b> manifest_writer.h:169</div></div> |
| <div class="ttc" id="anamespaceiceberg_html_a9d5594e371beb516b0120e07e69d3af6"><div class="ttname"><a href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">iceberg::Result</a></div><div class="ttdeci">std::expected< T, E > Result</div><div class="ttdoc">Result alias.</div><div class="ttdef"><b>Definition</b> result.h:88</div></div> |
| <div class="ttc" id="aresult_8h_html"><div class="ttname"><a href="result_8h.html">result.h</a></div><div class="ttdoc">Define Result, Status, and error helpers.</div></div> |
| <div class="ttc" id="asnapshot__update_8h_html"><div class="ttname"><a href="snapshot__update_8h.html">snapshot_update.h</a></div><div class="ttdoc">Define base APIs for snapshot updates.</div></div> |
| <div class="ttc" id="astructiceberg_1_1DataFile_html"><div class="ttname"><a href="structiceberg_1_1DataFile.html">iceberg::DataFile</a></div><div class="ttdoc">DataFile carries data file path, partition tuple, metrics, ...</div><div class="ttdef"><b>Definition</b> manifest_entry.h:62</div></div> |
| <div class="ttc" id="astructiceberg_1_1ManifestFile_html"><div class="ttname"><a href="structiceberg_1_1ManifestFile.html">iceberg::ManifestFile</a></div><div class="ttdoc">Entry in a manifest list.</div><div class="ttdef"><b>Definition</b> manifest_list.h:85</div></div> |
| <div class="ttc" id="astructiceberg_1_1MergingSnapshotUpdate_1_1PendingDeleteFilesByReferencedFile_1_1Entry_html"><div class="ttname"><a href="structiceberg_1_1MergingSnapshotUpdate_1_1PendingDeleteFilesByReferencedFile_1_1Entry.html">iceberg::MergingSnapshotUpdate::PendingDeleteFilesByReferencedFile::Entry</a></div><div class="ttdef"><b>Definition</b> merging_snapshot_update.h:315</div></div> |
| <div class="ttc" id="astructiceberg_1_1TableMetadata_html"><div class="ttname"><a href="structiceberg_1_1TableMetadata.html">iceberg::TableMetadata</a></div><div class="ttdoc">Represents the metadata for an Iceberg table.</div><div class="ttdef"><b>Definition</b> table_metadata.h:73</div></div> |
| <div class="ttc" id="atype__fwd_8h_html"><div class="ttname"><a href="type__fwd_8h.html">type_fwd.h</a></div></div> |
| </div><!-- fragment --></div><!-- contents --> |
| <!-- start footer part --> |
| <hr class="footer"/><address class="footer"><small> |
| Generated by <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> |