blob: 3bfa14b927467a87c888a2123b749ec0caf8d0cf [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>Paimon-cpp: /home/runner/work/paimon-cpp/paimon-cpp/include/paimon/commit_context.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">Paimon-cpp
</div>
<div id="projectbrief">A high-performance C++ implementation of Apache Paimon</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>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;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_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_d5ce83a91c1ada980bd794a9f3314520.html">paimon</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">commit_context.h</div></div>
</div><!--header-->
<div class="contents">
<a href="commit__context_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"> * &quot;License&quot;); 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"> * &quot;AS IS&quot; 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="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &quot;<a class="code" href="result_8h.html">paimon/result.h</a>&quot;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &quot;<a class="code" href="type__fwd_8h.html">paimon/type_fwd.h</a>&quot;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &quot;<a class="code" href="visibility_8h.html">paimon/visibility.h</a>&quot;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacepaimon.html">paimon</a> {</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="keyword">class </span>Executor;</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="keyword">class </span>MemoryPool;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="foldopen" id="foldopen00039" data-start="{" data-end="};">
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html"> 39</a></span><span class="keyword">class </span>PAIMON_EXPORT <a class="code hl_class" href="classpaimon_1_1_commit_context.html">CommitContext</a> {</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#a4cd4391a271b8f298c8dba11658a6e03"> 41</a></span> <a class="code hl_function" href="classpaimon_1_1_commit_context.html#a4cd4391a271b8f298c8dba11658a6e03">CommitContext</a>(<span class="keyword">const</span> std::string&amp; root_path, <span class="keyword">const</span> std::string&amp; commit_user,</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordtype">bool</span> ignore_empty_commit, <span class="keywordtype">bool</span> use_rest_catalog_commit,</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">const</span> std::shared_ptr&lt;MemoryPool&gt;&amp; memory_pool,</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">const</span> std::shared_ptr&lt;Executor&gt;&amp; executor,</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">const</span> std::shared_ptr&lt;FileSystem&gt;&amp; specific_file_system,</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">const</span> std::map&lt;std::string, std::string&gt;&amp; options);</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#ac78a125531f977d739d513608365ac74"> 47</a></span> <a class="code hl_function" href="classpaimon_1_1_commit_context.html#ac78a125531f977d739d513608365ac74">~CommitContext</a>();</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="foldopen" id="foldopen00049" data-start="{" data-end="}">
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#abc60e14796df885d1fc77094bae75a24"> 49</a></span> <span class="keyword">const</span> std::string&amp; <a class="code hl_function" href="classpaimon_1_1_commit_context.html#abc60e14796df885d1fc77094bae75a24">GetRootPath</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keywordflow">return</span> root_path_;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> }</div>
</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
<div class="foldopen" id="foldopen00053" data-start="{" data-end="}">
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#a2f3d101509cf979986d9f27e1c2d970a"> 53</a></span> <span class="keyword">const</span> std::string&amp; <a class="code hl_function" href="classpaimon_1_1_commit_context.html#a2f3d101509cf979986d9f27e1c2d970a">GetCommitUser</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keywordflow">return</span> commit_user_;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> }</div>
</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
<div class="foldopen" id="foldopen00057" data-start="{" data-end="}">
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#aa548afad705d6eddee8870297e386c65"> 57</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classpaimon_1_1_commit_context.html#aa548afad705d6eddee8870297e386c65">IgnoreEmptyCommit</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keywordflow">return</span> ignore_empty_commit_;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> }</div>
</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
<div class="foldopen" id="foldopen00061" data-start="{" data-end="}">
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#a080cc3e95b4640b956a4ffed9921a4ce"> 61</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classpaimon_1_1_commit_context.html#a080cc3e95b4640b956a4ffed9921a4ce">UseRESTCatalogCommit</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordflow">return</span> use_rest_catalog_commit_;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> }</div>
</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
<div class="foldopen" id="foldopen00065" data-start="{" data-end="}">
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#aca7bfe9f1b26b2581144a29391eed79c"> 65</a></span> std::shared_ptr&lt;MemoryPool&gt; <a class="code hl_function" href="classpaimon_1_1_commit_context.html#aca7bfe9f1b26b2581144a29391eed79c">GetMemoryPool</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">return</span> memory_pool_;</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> }</div>
</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
<div class="foldopen" id="foldopen00069" data-start="{" data-end="}">
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#a0d824d071312adf4cfca321fd0eede90"> 69</a></span> std::shared_ptr&lt;Executor&gt; <a class="code hl_function" href="classpaimon_1_1_commit_context.html#a0d824d071312adf4cfca321fd0eede90">GetExecutor</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keywordflow">return</span> executor_;</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> }</div>
</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
<div class="foldopen" id="foldopen00073" data-start="{" data-end="}">
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#a30b316b892c4d2cca7aa82bd0db38505"> 73</a></span> std::shared_ptr&lt;FileSystem&gt; <a class="code hl_function" href="classpaimon_1_1_commit_context.html#a30b316b892c4d2cca7aa82bd0db38505">GetSpecificFileSystem</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">return</span> specific_file_system_;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> }</div>
</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
<div class="foldopen" id="foldopen00077" data-start="{" data-end="}">
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#aab1947d5b188b7a38edd3599054a0696"> 77</a></span> <span class="keyword">const</span> std::map&lt;std::string, std::string&gt;&amp; <a class="code hl_function" href="classpaimon_1_1_commit_context.html#aab1947d5b188b7a38edd3599054a0696">GetOptions</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keywordflow">return</span> options_;</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> }</div>
</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#ac43316fa85944c7b9d4e32bdf1d84068"> 82</a></span> std::string <a class="code hl_variable" href="classpaimon_1_1_commit_context.html#ac43316fa85944c7b9d4e32bdf1d84068">root_path_</a>;</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#a8a4d37dc51d01f155960c92376767229"> 83</a></span> std::string <a class="code hl_variable" href="classpaimon_1_1_commit_context.html#a8a4d37dc51d01f155960c92376767229">commit_user_</a>;</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#a1476d595d14eeea7589e5d3120c736aa"> 84</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="classpaimon_1_1_commit_context.html#a1476d595d14eeea7589e5d3120c736aa">ignore_empty_commit_</a>;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#a668659aa2a7a8c03bf36c63916b06885"> 85</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="classpaimon_1_1_commit_context.html#a668659aa2a7a8c03bf36c63916b06885">use_rest_catalog_commit_</a>;</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#afdb3532cf005939530ec2217b1ddb50b"> 86</a></span> std::shared_ptr&lt;MemoryPool&gt; <a class="code hl_variable" href="classpaimon_1_1_commit_context.html#afdb3532cf005939530ec2217b1ddb50b">memory_pool_</a>;</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#af81a5e94072dd38cf7099f8bebeacd6d"> 87</a></span> std::shared_ptr&lt;Executor&gt; <a class="code hl_variable" href="classpaimon_1_1_commit_context.html#af81a5e94072dd38cf7099f8bebeacd6d">executor_</a>;</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#a72fff5a157e4498011412dccfdf909b8"> 88</a></span> std::shared_ptr&lt;FileSystem&gt; <a class="code hl_variable" href="classpaimon_1_1_commit_context.html#a72fff5a157e4498011412dccfdf909b8">specific_file_system_</a>;</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context.html#a4f01a5372cd883565764dfce55b823b6"> 89</a></span> std::map&lt;std::string, std::string&gt; <a class="code hl_variable" href="classpaimon_1_1_commit_context.html#a4f01a5372cd883565764dfce55b823b6">options_</a>;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span>};</div>
</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
<div class="foldopen" id="foldopen00093" data-start="{" data-end="};">
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context_builder.html"> 93</a></span><span class="keyword">class </span>PAIMON_EXPORT <a class="code hl_class" href="classpaimon_1_1_commit_context_builder.html">CommitContextBuilder</a> {</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context_builder.html#ad11f5f4ebcc18251e3090c08d4f24261"> 98</a></span> <a class="code hl_function" href="classpaimon_1_1_commit_context_builder.html#ad11f5f4ebcc18251e3090c08d4f24261">CommitContextBuilder</a>(<span class="keyword">const</span> std::string&amp; root_path, <span class="keyword">const</span> std::string&amp; commit_user);</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context_builder.html#abab143e3062bc63aafada827545df899"> 100</a></span> <a class="code hl_function" href="classpaimon_1_1_commit_context_builder.html#abab143e3062bc63aafada827545df899">~CommitContextBuilder</a>();</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> </div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context_builder.html#a62f56fb4e3c4362ba54c2a7ce3f74547"> 107</a></span> <a class="code hl_class" href="classpaimon_1_1_commit_context_builder.html">CommitContextBuilder</a>&amp; <a class="code hl_function" href="classpaimon_1_1_commit_context_builder.html#a62f56fb4e3c4362ba54c2a7ce3f74547">SetOptions</a>(<span class="keyword">const</span> std::map&lt;std::string, std::string&gt;&amp; options);</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context_builder.html#a5bafddcf4b5bc55286542595576089ce"> 117</a></span> <a class="code hl_class" href="classpaimon_1_1_commit_context_builder.html">CommitContextBuilder</a>&amp; <a class="code hl_function" href="classpaimon_1_1_commit_context_builder.html#a5bafddcf4b5bc55286542595576089ce">AddOption</a>(<span class="keyword">const</span> std::string&amp; key, <span class="keyword">const</span> std::string&amp; value);</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context_builder.html#a3af910fbc87d8990d7175951d4c91a1b"> 123</a></span> <a class="code hl_class" href="classpaimon_1_1_commit_context_builder.html">CommitContextBuilder</a>&amp; <a class="code hl_function" href="classpaimon_1_1_commit_context_builder.html#a3af910fbc87d8990d7175951d4c91a1b">IgnoreEmptyCommit</a>(<span class="keywordtype">bool</span> ignore_empty_commit);</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context_builder.html#ae9b915cd4fd9a12757ca11239ec2fbc6"> 129</a></span> <a class="code hl_class" href="classpaimon_1_1_commit_context_builder.html">CommitContextBuilder</a>&amp; <a class="code hl_function" href="classpaimon_1_1_commit_context_builder.html#ae9b915cd4fd9a12757ca11239ec2fbc6">UseRESTCatalogCommit</a>(<span class="keywordtype">bool</span> use_rest_catalog_commit);</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context_builder.html#afb03e59547889d68a13390d74ba08a36"> 134</a></span> <a class="code hl_class" href="classpaimon_1_1_commit_context_builder.html">CommitContextBuilder</a>&amp; <a class="code hl_function" href="classpaimon_1_1_commit_context_builder.html#afb03e59547889d68a13390d74ba08a36">WithMemoryPool</a>(<span class="keyword">const</span> std::shared_ptr&lt;MemoryPool&gt;&amp; memory_pool);</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context_builder.html#a771dcadc571d4c4bfd8808850f324480"> 139</a></span> <a class="code hl_class" href="classpaimon_1_1_commit_context_builder.html">CommitContextBuilder</a>&amp; <a class="code hl_function" href="classpaimon_1_1_commit_context_builder.html#a771dcadc571d4c4bfd8808850f324480">WithExecutor</a>(<span class="keyword">const</span> std::shared_ptr&lt;Executor&gt;&amp; executor);</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context_builder.html#ab99028a7e7fcfaa4e7c2253c1a027fa0"> 148</a></span> <a class="code hl_class" href="classpaimon_1_1_commit_context_builder.html">CommitContextBuilder</a>&amp; <a class="code hl_function" href="classpaimon_1_1_commit_context_builder.html#ab99028a7e7fcfaa4e7c2253c1a027fa0">WithFileSystem</a>(<span class="keyword">const</span> std::shared_ptr&lt;FileSystem&gt;&amp; file_system);</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context_builder.html#a9dbc721d50c637585fc12e9dc141b72f"> 152</a></span> <a class="code hl_class" href="classpaimon_1_1_result.html">Result&lt;std::unique_ptr&lt;CommitContext&gt;</a>&gt; <a class="code hl_function" href="classpaimon_1_1_commit_context_builder.html#a9dbc721d50c637585fc12e9dc141b72f">Finish</a>();</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keyword">class </span>Impl;</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"><a class="line" href="classpaimon_1_1_commit_context_builder.html#ac0e88921ffe20853386496c696ebd860"> 157</a></span> std::unique_ptr&lt;Impl&gt; <a class="code hl_variable" href="classpaimon_1_1_commit_context_builder.html#ac0e88921ffe20853386496c696ebd860">impl_</a>;</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span>};</div>
</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> </div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span>} <span class="comment">// namespace paimon</span></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_builder_html"><div class="ttname"><a href="classpaimon_1_1_commit_context_builder.html">paimon::CommitContextBuilder</a></div><div class="ttdoc">CommitContextBuilder used to build a CommitContext, has input validation.</div><div class="ttdef"><b>Definition</b> commit_context.h:93</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_builder_html_a3af910fbc87d8990d7175951d4c91a1b"><div class="ttname"><a href="classpaimon_1_1_commit_context_builder.html#a3af910fbc87d8990d7175951d4c91a1b">paimon::CommitContextBuilder::IgnoreEmptyCommit</a></div><div class="ttdeci">CommitContextBuilder &amp; IgnoreEmptyCommit(bool ignore_empty_commit)</div><div class="ttdoc">Sets whether to ignore empty commits (default is true).</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_builder_html_a5bafddcf4b5bc55286542595576089ce"><div class="ttname"><a href="classpaimon_1_1_commit_context_builder.html#a5bafddcf4b5bc55286542595576089ce">paimon::CommitContextBuilder::AddOption</a></div><div class="ttdeci">CommitContextBuilder &amp; AddOption(const std::string &amp;key, const std::string &amp;value)</div><div class="ttdoc">Add a single configuration option which is not defined in the table schema or whose value you want to...</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_builder_html_a62f56fb4e3c4362ba54c2a7ce3f74547"><div class="ttname"><a href="classpaimon_1_1_commit_context_builder.html#a62f56fb4e3c4362ba54c2a7ce3f74547">paimon::CommitContextBuilder::SetOptions</a></div><div class="ttdeci">CommitContextBuilder &amp; SetOptions(const std::map&lt; std::string, std::string &gt; &amp;options)</div><div class="ttdoc">Set a configuration options map to set some option entries which are not defined in the table schema ...</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_builder_html_a771dcadc571d4c4bfd8808850f324480"><div class="ttname"><a href="classpaimon_1_1_commit_context_builder.html#a771dcadc571d4c4bfd8808850f324480">paimon::CommitContextBuilder::WithExecutor</a></div><div class="ttdeci">CommitContextBuilder &amp; WithExecutor(const std::shared_ptr&lt; Executor &gt; &amp;executor)</div><div class="ttdoc">Sets the executor to be used for asynchronous operations during commit.</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_builder_html_a9dbc721d50c637585fc12e9dc141b72f"><div class="ttname"><a href="classpaimon_1_1_commit_context_builder.html#a9dbc721d50c637585fc12e9dc141b72f">paimon::CommitContextBuilder::Finish</a></div><div class="ttdeci">Result&lt; std::unique_ptr&lt; CommitContext &gt; &gt; Finish()</div><div class="ttdoc">Build and return a CommitContext instance with input validation.</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_builder_html_ab99028a7e7fcfaa4e7c2253c1a027fa0"><div class="ttname"><a href="classpaimon_1_1_commit_context_builder.html#ab99028a7e7fcfaa4e7c2253c1a027fa0">paimon::CommitContextBuilder::WithFileSystem</a></div><div class="ttdeci">CommitContextBuilder &amp; WithFileSystem(const std::shared_ptr&lt; FileSystem &gt; &amp;file_system)</div><div class="ttdoc">Sets a custom file system instance to be used for all file operations in this commit context.</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_builder_html_abab143e3062bc63aafada827545df899"><div class="ttname"><a href="classpaimon_1_1_commit_context_builder.html#abab143e3062bc63aafada827545df899">paimon::CommitContextBuilder::~CommitContextBuilder</a></div><div class="ttdeci">~CommitContextBuilder()</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_builder_html_ac0e88921ffe20853386496c696ebd860"><div class="ttname"><a href="classpaimon_1_1_commit_context_builder.html#ac0e88921ffe20853386496c696ebd860">paimon::CommitContextBuilder::impl_</a></div><div class="ttdeci">std::unique_ptr&lt; Impl &gt; impl_</div><div class="ttdef"><b>Definition</b> commit_context.h:157</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_builder_html_ad11f5f4ebcc18251e3090c08d4f24261"><div class="ttname"><a href="classpaimon_1_1_commit_context_builder.html#ad11f5f4ebcc18251e3090c08d4f24261">paimon::CommitContextBuilder::CommitContextBuilder</a></div><div class="ttdeci">CommitContextBuilder(const std::string &amp;root_path, const std::string &amp;commit_user)</div><div class="ttdoc">Constructs a CommitContextBuilder with required parameters.</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_builder_html_ae9b915cd4fd9a12757ca11239ec2fbc6"><div class="ttname"><a href="classpaimon_1_1_commit_context_builder.html#ae9b915cd4fd9a12757ca11239ec2fbc6">paimon::CommitContextBuilder::UseRESTCatalogCommit</a></div><div class="ttdeci">CommitContextBuilder &amp; UseRESTCatalogCommit(bool use_rest_catalog_commit)</div><div class="ttdoc">Sets whether to use REST catalog commit (default is false).</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_builder_html_afb03e59547889d68a13390d74ba08a36"><div class="ttname"><a href="classpaimon_1_1_commit_context_builder.html#afb03e59547889d68a13390d74ba08a36">paimon::CommitContextBuilder::WithMemoryPool</a></div><div class="ttdeci">CommitContextBuilder &amp; WithMemoryPool(const std::shared_ptr&lt; MemoryPool &gt; &amp;memory_pool)</div><div class="ttdoc">Sets the memory pool to be used for memory allocation during commit operations.</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html"><div class="ttname"><a href="classpaimon_1_1_commit_context.html">paimon::CommitContext</a></div><div class="ttdoc">CommitContext is some configuration for commit operations.</div><div class="ttdef"><b>Definition</b> commit_context.h:39</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_a080cc3e95b4640b956a4ffed9921a4ce"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#a080cc3e95b4640b956a4ffed9921a4ce">paimon::CommitContext::UseRESTCatalogCommit</a></div><div class="ttdeci">bool UseRESTCatalogCommit() const</div><div class="ttdef"><b>Definition</b> commit_context.h:61</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_a0d824d071312adf4cfca321fd0eede90"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#a0d824d071312adf4cfca321fd0eede90">paimon::CommitContext::GetExecutor</a></div><div class="ttdeci">std::shared_ptr&lt; Executor &gt; GetExecutor() const</div><div class="ttdef"><b>Definition</b> commit_context.h:69</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_a1476d595d14eeea7589e5d3120c736aa"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#a1476d595d14eeea7589e5d3120c736aa">paimon::CommitContext::ignore_empty_commit_</a></div><div class="ttdeci">bool ignore_empty_commit_</div><div class="ttdef"><b>Definition</b> commit_context.h:84</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_a2f3d101509cf979986d9f27e1c2d970a"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#a2f3d101509cf979986d9f27e1c2d970a">paimon::CommitContext::GetCommitUser</a></div><div class="ttdeci">const std::string &amp; GetCommitUser() const</div><div class="ttdef"><b>Definition</b> commit_context.h:53</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_a30b316b892c4d2cca7aa82bd0db38505"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#a30b316b892c4d2cca7aa82bd0db38505">paimon::CommitContext::GetSpecificFileSystem</a></div><div class="ttdeci">std::shared_ptr&lt; FileSystem &gt; GetSpecificFileSystem() const</div><div class="ttdef"><b>Definition</b> commit_context.h:73</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_a4cd4391a271b8f298c8dba11658a6e03"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#a4cd4391a271b8f298c8dba11658a6e03">paimon::CommitContext::CommitContext</a></div><div class="ttdeci">CommitContext(const std::string &amp;root_path, const std::string &amp;commit_user, bool ignore_empty_commit, bool use_rest_catalog_commit, const std::shared_ptr&lt; MemoryPool &gt; &amp;memory_pool, const std::shared_ptr&lt; Executor &gt; &amp;executor, const std::shared_ptr&lt; FileSystem &gt; &amp;specific_file_system, const std::map&lt; std::string, std::string &gt; &amp;options)</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_a4f01a5372cd883565764dfce55b823b6"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#a4f01a5372cd883565764dfce55b823b6">paimon::CommitContext::options_</a></div><div class="ttdeci">std::map&lt; std::string, std::string &gt; options_</div><div class="ttdef"><b>Definition</b> commit_context.h:89</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_a668659aa2a7a8c03bf36c63916b06885"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#a668659aa2a7a8c03bf36c63916b06885">paimon::CommitContext::use_rest_catalog_commit_</a></div><div class="ttdeci">bool use_rest_catalog_commit_</div><div class="ttdef"><b>Definition</b> commit_context.h:85</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_a72fff5a157e4498011412dccfdf909b8"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#a72fff5a157e4498011412dccfdf909b8">paimon::CommitContext::specific_file_system_</a></div><div class="ttdeci">std::shared_ptr&lt; FileSystem &gt; specific_file_system_</div><div class="ttdef"><b>Definition</b> commit_context.h:88</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_a8a4d37dc51d01f155960c92376767229"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#a8a4d37dc51d01f155960c92376767229">paimon::CommitContext::commit_user_</a></div><div class="ttdeci">std::string commit_user_</div><div class="ttdef"><b>Definition</b> commit_context.h:83</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_aa548afad705d6eddee8870297e386c65"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#aa548afad705d6eddee8870297e386c65">paimon::CommitContext::IgnoreEmptyCommit</a></div><div class="ttdeci">bool IgnoreEmptyCommit() const</div><div class="ttdef"><b>Definition</b> commit_context.h:57</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_aab1947d5b188b7a38edd3599054a0696"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#aab1947d5b188b7a38edd3599054a0696">paimon::CommitContext::GetOptions</a></div><div class="ttdeci">const std::map&lt; std::string, std::string &gt; &amp; GetOptions() const</div><div class="ttdef"><b>Definition</b> commit_context.h:77</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_abc60e14796df885d1fc77094bae75a24"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#abc60e14796df885d1fc77094bae75a24">paimon::CommitContext::GetRootPath</a></div><div class="ttdeci">const std::string &amp; GetRootPath() const</div><div class="ttdef"><b>Definition</b> commit_context.h:49</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_ac43316fa85944c7b9d4e32bdf1d84068"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#ac43316fa85944c7b9d4e32bdf1d84068">paimon::CommitContext::root_path_</a></div><div class="ttdeci">std::string root_path_</div><div class="ttdef"><b>Definition</b> commit_context.h:82</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_ac78a125531f977d739d513608365ac74"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#ac78a125531f977d739d513608365ac74">paimon::CommitContext::~CommitContext</a></div><div class="ttdeci">~CommitContext()</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_aca7bfe9f1b26b2581144a29391eed79c"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#aca7bfe9f1b26b2581144a29391eed79c">paimon::CommitContext::GetMemoryPool</a></div><div class="ttdeci">std::shared_ptr&lt; MemoryPool &gt; GetMemoryPool() const</div><div class="ttdef"><b>Definition</b> commit_context.h:65</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_af81a5e94072dd38cf7099f8bebeacd6d"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#af81a5e94072dd38cf7099f8bebeacd6d">paimon::CommitContext::executor_</a></div><div class="ttdeci">std::shared_ptr&lt; Executor &gt; executor_</div><div class="ttdef"><b>Definition</b> commit_context.h:87</div></div>
<div class="ttc" id="aclasspaimon_1_1_commit_context_html_afdb3532cf005939530ec2217b1ddb50b"><div class="ttname"><a href="classpaimon_1_1_commit_context.html#afdb3532cf005939530ec2217b1ddb50b">paimon::CommitContext::memory_pool_</a></div><div class="ttdeci">std::shared_ptr&lt; MemoryPool &gt; memory_pool_</div><div class="ttdef"><b>Definition</b> commit_context.h:86</div></div>
<div class="ttc" id="aclasspaimon_1_1_result_html"><div class="ttname"><a href="classpaimon_1_1_result.html">paimon::Result</a></div><div class="ttdoc">A Result&lt;T&gt; object holds either a value of type T or a Status object explaining why such a value is n...</div><div class="ttdef"><b>Definition</b> result.h:33</div></div>
<div class="ttc" id="anamespacepaimon_html"><div class="ttname"><a href="namespacepaimon.html">paimon</a></div><div class="ttdoc">Top-level namespace for Paimon C++ API.</div><div class="ttdef"><b>Definition</b> api.h:42</div></div>
<div class="ttc" id="aresult_8h_html"><div class="ttname"><a href="result_8h.html">result.h</a></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 class="ttc" id="avisibility_8h_html"><div class="ttname"><a href="visibility_8h.html">visibility.h</a></div></div>
</div><!-- fragment --></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>