blob: fdd79bca4d865d773f0a3b85f962f72c0cf7ef31 [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/realtime/realtime_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><li class="navelem"><a class="el" href="dir_d50fe60c21edeba613032393f5bb145e.html">realtime</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">realtime_context.h</div></div>
</div><!--header-->
<div class="contents">
<a href="realtime__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;cstdint&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;utility&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</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="metrics_8h.html">paimon/metrics.h</a>&quot;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</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="l00030" name="l00030"></a><span class="lineno"> 30</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="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="keyword">namespace </span><a class="code hl_namespace" href="namespacepaimon.html">paimon</a> {</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keyword">class </span>RealtimeStoreFactory;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="foldopen" id="foldopen00037" data-start="{" data-end="};">
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="structpaimon_1_1_realtime_partition_bucket.html"> 37</a></span><span class="keyword">struct </span><a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">PAIMON_EXPORT</a> <a class="code hl_struct" href="structpaimon_1_1_realtime_partition_bucket.html">RealtimePartitionBucket</a> {</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="structpaimon_1_1_realtime_partition_bucket.html#a2a15f779b839f7679096fc105ec3df5e"> 39</a></span> <a class="code hl_function" href="structpaimon_1_1_realtime_partition_bucket.html#a2a15f779b839f7679096fc105ec3df5e">RealtimePartitionBucket</a>(std::map&lt;std::string, std::string&gt; partition, <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">int32_t</a> bucket)</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> : partition(<a class="code hl_namespace" href="namespacestd.html">std</a>::<a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">move</a>(partition)), bucket(bucket) {}</div>
</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="foldopen" id="foldopen00043" data-start="{" data-end="}">
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="structpaimon_1_1_realtime_partition_bucket.html#af8964b4cb535a137ea134bce3eb5bc30"> 43</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structpaimon_1_1_realtime_partition_bucket.html#af8964b4cb535a137ea134bce3eb5bc30">operator&lt;</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structpaimon_1_1_realtime_partition_bucket.html">RealtimePartitionBucket</a>&amp; <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">other</a>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keywordflow">if</span> (partition != <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">other</a>.partition) {</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">return</span> partition &lt; <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">other</a>.partition;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> }</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordflow">return</span> bucket &lt; <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">other</a>.bucket;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> }</div>
</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
<div class="foldopen" id="foldopen00051" data-start="{" data-end="}">
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="structpaimon_1_1_realtime_partition_bucket.html#aabb217c3cbcfd56ed684b62f4855fa90"> 51</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structpaimon_1_1_realtime_partition_bucket.html#aabb217c3cbcfd56ed684b62f4855fa90">operator==</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structpaimon_1_1_realtime_partition_bucket.html">RealtimePartitionBucket</a>&amp; <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">other</a>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">return</span> partition == <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">other</a>.partition &amp;&amp; bucket == <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">other</a>.bucket;</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> }</div>
</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="foldopen" id="foldopen00056" data-start="{" data-end="}">
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="structpaimon_1_1_realtime_partition_bucket.html#a7742298973333542aa4fae98bffe337c"> 56</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="structpaimon_1_1_realtime_partition_bucket.html#a7742298973333542aa4fae98bffe337c">operator!=</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structpaimon_1_1_realtime_partition_bucket.html">RealtimePartitionBucket</a>&amp; <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">other</a>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">other</a>);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> }</div>
</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="structpaimon_1_1_realtime_partition_bucket.html#a29ab4daf7fb0c0f8eef28facf7411323"> 61</a></span> std::map&lt;std::string, std::string&gt; <a class="code hl_variable" href="structpaimon_1_1_realtime_partition_bucket.html#a29ab4daf7fb0c0f8eef28facf7411323">partition</a>;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="structpaimon_1_1_realtime_partition_bucket.html#af6222a4e83ea203dc3ff17d9811372e3"> 63</a></span> <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">int32_t</a> bucket = -1;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span>};</div>
</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="namespacepaimon.html#a96ef50bca14c6706de741dc797bf4410"> 67</a></span><span class="keyword">using </span><a class="code hl_typedef" href="namespacepaimon.html#a96ef50bca14c6706de741dc797bf4410">RealtimeOffsetMap</a> = std::map&lt;RealtimePartitionBucket, int64_t&gt;;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
<div class="foldopen" id="foldopen00070" data-start="{" data-end="};">
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_metrics.html"> 70</a></span><span class="keyword">class </span><a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">PAIMON_EXPORT</a> <a class="code hl_class" href="classpaimon_1_1_realtime_metrics.html">RealtimeMetrics</a> {</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_metrics.html#ad623ebae5868d84a819a3e179c6c5e26"> 72</a></span> <a class="code hl_function" href="classpaimon_1_1_realtime_metrics.html#ad623ebae5868d84a819a3e179c6c5e26">RealtimeMetrics</a>() = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_metrics.html#ab9070fcac8763c5dade13454f92ac3aa"> 73</a></span> <a class="code hl_function" href="classpaimon_1_1_realtime_metrics.html#ab9070fcac8763c5dade13454f92ac3aa">~RealtimeMetrics</a>() = <span class="keyword">delete</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="classpaimon_1_1_realtime_metrics.html#a44bed03923a9f67b16900eb89350f701"> 75</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">char</span> kBuildingMemoryBytes[] = <span class="stringliteral">&quot;realtimeBuildingMemoryBytes&quot;</span>;</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_metrics.html#aaef56d033d58db83b5e79ba264ce239d"> 76</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">char</span> kSealedMemoryBytes[] = <span class="stringliteral">&quot;realtimeSealedMemoryBytes&quot;</span>;</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_metrics.html#a44ea89b38a554c3ff1217a8f91b3bccc"> 77</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">char</span> kTotalMemoryBytes[] = <span class="stringliteral">&quot;realtimeTotalMemoryBytes&quot;</span>;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_metrics.html#a0f086cf2b38b96779e927976a5eb9016"> 78</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">char</span> kBuildingRowCount[] = <span class="stringliteral">&quot;realtimeBuildingRowCount&quot;</span>;</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_metrics.html#a8dffca3824a301e02bf0a6d7932d0244"> 79</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">char</span> kSealedRowCount[] = <span class="stringliteral">&quot;realtimeSealedRowCount&quot;</span>;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_metrics.html#a12e52f426da3e32f4cf63b2027b3b68f"> 80</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">char</span> kTotalRowCount[] = <span class="stringliteral">&quot;realtimeTotalRowCount&quot;</span>;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span>};</div>
</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
<div class="foldopen" id="foldopen00096" data-start="{" data-end="};">
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_context.html"> 96</a></span><span class="keyword">class </span><a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">PAIMON_EXPORT</a> <a class="code hl_class" href="classpaimon_1_1_realtime_context.html">RealtimeContext</a> {</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_context.html#aaa3d2a495a2173981fa67bfc2bec27a7"> 99</a></span> <span class="keyword">static</span> <a class="code hl_class" href="classpaimon_1_1_result.html">Result&lt;std::shared_ptr&lt;RealtimeContext&gt;</a>&gt; <a class="code hl_function" href="classpaimon_1_1_realtime_context.html#aaa3d2a495a2173981fa67bfc2bec27a7">Create</a>();</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_context.html#ab7b04f885d6b6ac18b1e22f845c3ad4a"> 104</a></span> <span class="keyword">static</span> <a class="code hl_class" href="classpaimon_1_1_result.html">Result&lt;std::shared_ptr&lt;RealtimeContext&gt;</a>&gt; <a class="code hl_function" href="classpaimon_1_1_realtime_context.html#ab7b04f885d6b6ac18b1e22f845c3ad4a">Create</a>(</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keyword">const</span> std::shared_ptr&lt;RealtimeStoreFactory&gt;&amp; <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">factory</a>);</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> </div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_context.html#aa967b54cabfe781fefd98a08cc60a543"> 108</a></span> <span class="keyword">virtual</span> std::shared_ptr&lt;Metrics&gt; <a class="code hl_function" href="classpaimon_1_1_realtime_context.html#aa967b54cabfe781fefd98a08cc60a543">GetMetrics</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_context.html#a69aa10a5b50ccd0a356831c579bc07ff"> 110</a></span> <span class="keyword">virtual</span> <a class="code hl_function" href="classpaimon_1_1_realtime_context.html#a69aa10a5b50ccd0a356831c579bc07ff">~RealtimeContext</a>();</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"><a class="line" href="classpaimon_1_1_realtime_context.html#ac9a4333b438b4d6d5c1d4a666b5b6525"> 113</a></span> <a class="code hl_function" href="classpaimon_1_1_realtime_context.html#ac9a4333b438b4d6d5c1d4a666b5b6525">RealtimeContext</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span>};</div>
</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span>} <span class="comment">// namespace paimon</span></div>
<div class="ttc" id="aclasspaimon_1_1_realtime_context_html"><div class="ttname"><a href="classpaimon_1_1_realtime_context.html">paimon::RealtimeContext</a></div><div class="ttdoc">Framework-managed context that owns the RealtimeStore instances used by real-time operations.</div><div class="ttdef"><b>Definition</b> realtime_context.h:96</div></div>
<div class="ttc" id="aclasspaimon_1_1_realtime_context_html_a69aa10a5b50ccd0a356831c579bc07ff"><div class="ttname"><a href="classpaimon_1_1_realtime_context.html#a69aa10a5b50ccd0a356831c579bc07ff">paimon::RealtimeContext::~RealtimeContext</a></div><div class="ttdeci">virtual ~RealtimeContext()</div></div>
<div class="ttc" id="aclasspaimon_1_1_realtime_context_html_aa967b54cabfe781fefd98a08cc60a543"><div class="ttname"><a href="classpaimon_1_1_realtime_context.html#aa967b54cabfe781fefd98a08cc60a543">paimon::RealtimeContext::GetMetrics</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Metrics &gt; GetMetrics() const =0</div><div class="ttdoc">Returns current memory and physical row-count gauges aggregated over all stores.</div></div>
<div class="ttc" id="aclasspaimon_1_1_realtime_context_html_aaa3d2a495a2173981fa67bfc2bec27a7"><div class="ttname"><a href="classpaimon_1_1_realtime_context.html#aaa3d2a495a2173981fa67bfc2bec27a7">paimon::RealtimeContext::Create</a></div><div class="ttdeci">static Result&lt; std::shared_ptr&lt; RealtimeContext &gt; &gt; Create()</div><div class="ttdoc">Creates a context backed by Paimon's default in-memory Arrow RealtimeStore.</div></div>
<div class="ttc" id="aclasspaimon_1_1_realtime_context_html_ab7b04f885d6b6ac18b1e22f845c3ad4a"><div class="ttname"><a href="classpaimon_1_1_realtime_context.html#ab7b04f885d6b6ac18b1e22f845c3ad4a">paimon::RealtimeContext::Create</a></div><div class="ttdeci">static Result&lt; std::shared_ptr&lt; RealtimeContext &gt; &gt; Create(const std::shared_ptr&lt; RealtimeStoreFactory &gt; &amp;factory)</div><div class="ttdoc">Creates a context backed by an application-provided store factory.</div></div>
<div class="ttc" id="aclasspaimon_1_1_realtime_context_html_ac9a4333b438b4d6d5c1d4a666b5b6525"><div class="ttname"><a href="classpaimon_1_1_realtime_context.html#ac9a4333b438b4d6d5c1d4a666b5b6525">paimon::RealtimeContext::RealtimeContext</a></div><div class="ttdeci">RealtimeContext()=default</div></div>
<div class="ttc" id="aclasspaimon_1_1_realtime_metrics_html"><div class="ttname"><a href="classpaimon_1_1_realtime_metrics.html">paimon::RealtimeMetrics</a></div><div class="ttdoc">Gauge names exposed by RealtimeContext::GetMetrics and real-time file-store writers.</div><div class="ttdef"><b>Definition</b> realtime_context.h:70</div></div>
<div class="ttc" id="aclasspaimon_1_1_realtime_metrics_html_ab9070fcac8763c5dade13454f92ac3aa"><div class="ttname"><a href="classpaimon_1_1_realtime_metrics.html#ab9070fcac8763c5dade13454f92ac3aa">paimon::RealtimeMetrics::~RealtimeMetrics</a></div><div class="ttdeci">~RealtimeMetrics()=delete</div></div>
<div class="ttc" id="aclasspaimon_1_1_realtime_metrics_html_ad623ebae5868d84a819a3e179c6c5e26"><div class="ttname"><a href="classpaimon_1_1_realtime_metrics.html#ad623ebae5868d84a819a3e179c6c5e26">paimon::RealtimeMetrics::RealtimeMetrics</a></div><div class="ttdeci">RealtimeMetrics()=delete</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="amemory__pool_8h_html_a147ba4ba34a215b3a4f3a95c1ee11704"><div class="ttname"><a href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">PAIMON_UNIQUE_PTR</a></div><div class="ttdeci">#define PAIMON_UNIQUE_PTR</div><div class="ttdef"><b>Definition</b> memory_pool.h:220</div></div>
<div class="ttc" id="ametrics_8h_html"><div class="ttname"><a href="metrics_8h.html">metrics.h</a></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:51</div></div>
<div class="ttc" id="anamespacepaimon_html_a96ef50bca14c6706de741dc797bf4410"><div class="ttname"><a href="namespacepaimon.html#a96ef50bca14c6706de741dc797bf4410">paimon::RealtimeOffsetMap</a></div><div class="ttdeci">std::map&lt; RealtimePartitionBucket, int64_t &gt; RealtimeOffsetMap</div><div class="ttdoc">Exclusive committed end offset for each partition-bucket.</div><div class="ttdef"><b>Definition</b> realtime_context.h:67</div></div>
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdef"><b>Definition</b> identifier.h:82</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="astructpaimon_1_1_realtime_partition_bucket_html"><div class="ttname"><a href="structpaimon_1_1_realtime_partition_bucket.html">paimon::RealtimePartitionBucket</a></div><div class="ttdoc">Identifies one partition-bucket by its logical partition values.</div><div class="ttdef"><b>Definition</b> realtime_context.h:37</div></div>
<div class="ttc" id="astructpaimon_1_1_realtime_partition_bucket_html_a29ab4daf7fb0c0f8eef28facf7411323"><div class="ttname"><a href="structpaimon_1_1_realtime_partition_bucket.html#a29ab4daf7fb0c0f8eef28facf7411323">paimon::RealtimePartitionBucket::partition</a></div><div class="ttdeci">std::map&lt; std::string, std::string &gt; partition</div><div class="ttdoc">Logical partition values, before partition-path escaping.</div><div class="ttdef"><b>Definition</b> realtime_context.h:61</div></div>
<div class="ttc" id="astructpaimon_1_1_realtime_partition_bucket_html_a2a15f779b839f7679096fc105ec3df5e"><div class="ttname"><a href="structpaimon_1_1_realtime_partition_bucket.html#a2a15f779b839f7679096fc105ec3df5e">paimon::RealtimePartitionBucket::RealtimePartitionBucket</a></div><div class="ttdeci">RealtimePartitionBucket(std::map&lt; std::string, std::string &gt; partition, int32_t bucket)</div><div class="ttdoc">Creates a key from logical partition values and a fixed bucket id.</div><div class="ttdef"><b>Definition</b> realtime_context.h:39</div></div>
<div class="ttc" id="astructpaimon_1_1_realtime_partition_bucket_html_a7742298973333542aa4fae98bffe337c"><div class="ttname"><a href="structpaimon_1_1_realtime_partition_bucket.html#a7742298973333542aa4fae98bffe337c">paimon::RealtimePartitionBucket::operator!=</a></div><div class="ttdeci">bool operator!=(const RealtimePartitionBucket &amp;other) const</div><div class="ttdoc">Returns whether the partition values or bucket id differ.</div><div class="ttdef"><b>Definition</b> realtime_context.h:56</div></div>
<div class="ttc" id="astructpaimon_1_1_realtime_partition_bucket_html_aabb217c3cbcfd56ed684b62f4855fa90"><div class="ttname"><a href="structpaimon_1_1_realtime_partition_bucket.html#aabb217c3cbcfd56ed684b62f4855fa90">paimon::RealtimePartitionBucket::operator==</a></div><div class="ttdeci">bool operator==(const RealtimePartitionBucket &amp;other) const</div><div class="ttdoc">Returns whether both partition values and bucket id are equal.</div><div class="ttdef"><b>Definition</b> realtime_context.h:51</div></div>
<div class="ttc" id="astructpaimon_1_1_realtime_partition_bucket_html_af8964b4cb535a137ea134bce3eb5bc30"><div class="ttname"><a href="structpaimon_1_1_realtime_partition_bucket.html#af8964b4cb535a137ea134bce3eb5bc30">paimon::RealtimePartitionBucket::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(const RealtimePartitionBucket &amp;other) const</div><div class="ttdoc">Orders keys by partition values and then bucket id.</div><div class="ttdef"><b>Definition</b> realtime_context.h:43</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>