blob: 5b5846160504651d13fccc934960e6a4e454b80c [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/reader/file_batch_reader.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_9c552d3700583f259251ef2f8e23912b.html">reader</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">file_batch_reader.h</div></div>
</div><!--header-->
<div class="contents">
<a href="file__batch__reader_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;memory&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;utility&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;vector&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="predicate_8h.html">paimon/predicate/predicate.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="batch__reader_8h.html">paimon/reader/batch_reader.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="roaring__bitmap32_8h.html">paimon/utils/roaring_bitmap32.h</a>&quot;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacepaimon.html">paimon</a> {</div>
<div class="foldopen" id="foldopen00032" data-start="{" data-end="};">
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="classpaimon_1_1_file_batch_reader.html"> 32</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_file_batch_reader.html">FileBatchReader</a> : <span class="keyword">public</span> <a class="code hl_class" href="classpaimon_1_1_batch_reader.html">BatchReader</a> {</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="classpaimon_1_1_file_batch_reader.html#ac7266064352ed90581738242cf69500f"> 35</a></span> <span class="keyword">virtual</span> <a class="code hl_class" href="classpaimon_1_1_result.html">Result&lt;std::unique_ptr&lt;::ArrowSchema&gt;</a>&gt; <a class="code hl_function" href="classpaimon_1_1_file_batch_reader.html#ac7266064352ed90581738242cf69500f">GetFileSchema</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="classpaimon_1_1_file_batch_reader.html#af1b28c896a926c6496d03b9a5b55afb2"> 46</a></span> <span class="keyword">virtual</span> <a class="code hl_class" href="classpaimon_1_1_status.html">Status</a> <a class="code hl_function" href="classpaimon_1_1_file_batch_reader.html#af1b28c896a926c6496d03b9a5b55afb2">SetReadSchema</a>(<a class="code hl_struct" href="struct_arrow_schema.html">::ArrowSchema</a>* <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">read_schema</a>,</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">const</span> std::shared_ptr&lt;Predicate&gt;&amp; predicate,</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">const</span> std::optional&lt;RoaringBitmap32&gt;&amp; <a class="code hl_define" href="memory__pool_8h.html#a147ba4ba34a215b3a4f3a95c1ee11704">selection_bitmap</a>) = 0;</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">using </span>BatchReader::NextBatch;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keyword">using </span>BatchReader::NextBatchWithBitmap;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="classpaimon_1_1_file_batch_reader.html#a25b072ce59e14b7a18dda4ce9b71b843"> 53</a></span> <span class="keyword">virtual</span> <a class="code hl_class" href="classpaimon_1_1_result.html">Result&lt;uint64_t&gt;</a> <a class="code hl_function" href="classpaimon_1_1_file_batch_reader.html#a25b072ce59e14b7a18dda4ce9b71b843">GetPreviousBatchFirstRowNumber</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classpaimon_1_1_file_batch_reader.html#a8ebc841f9c493d3ec18786626a876073"> 56</a></span> <span class="keyword">virtual</span> <a class="code hl_class" href="classpaimon_1_1_result.html">Result&lt;uint64_t&gt;</a> <a class="code hl_function" href="classpaimon_1_1_file_batch_reader.html#a8ebc841f9c493d3ec18786626a876073">GetNumberOfRows</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="classpaimon_1_1_file_batch_reader.html#ac5afd12bba8e497dfc95cba25a343ba3"> 59</a></span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classpaimon_1_1_file_batch_reader.html#ac5afd12bba8e497dfc95cba25a343ba3">SupportPreciseBitmapSelection</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span>};</div>
</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span>} <span class="comment">// namespace paimon</span></div>
<div class="ttc" id="abatch__reader_8h_html"><div class="ttname"><a href="batch__reader_8h.html">batch_reader.h</a></div></div>
<div class="ttc" id="aclasspaimon_1_1_batch_reader_html"><div class="ttname"><a href="classpaimon_1_1_batch_reader.html">paimon::BatchReader</a></div><div class="ttdoc">A batch reader that supports reading batch data into an arrow array.</div><div class="ttdef"><b>Definition</b> batch_reader.h:35</div></div>
<div class="ttc" id="aclasspaimon_1_1_file_batch_reader_html"><div class="ttname"><a href="classpaimon_1_1_file_batch_reader.html">paimon::FileBatchReader</a></div><div class="ttdoc">The batch reader for a single file supports returning the line number of the last batch read for dele...</div><div class="ttdef"><b>Definition</b> file_batch_reader.h:32</div></div>
<div class="ttc" id="aclasspaimon_1_1_file_batch_reader_html_a25b072ce59e14b7a18dda4ce9b71b843"><div class="ttname"><a href="classpaimon_1_1_file_batch_reader.html#a25b072ce59e14b7a18dda4ce9b71b843">paimon::FileBatchReader::GetPreviousBatchFirstRowNumber</a></div><div class="ttdeci">virtual Result&lt; uint64_t &gt; GetPreviousBatchFirstRowNumber() const =0</div><div class="ttdoc">Get the row number of the first row in the previously read batch.</div></div>
<div class="ttc" id="aclasspaimon_1_1_file_batch_reader_html_a8ebc841f9c493d3ec18786626a876073"><div class="ttname"><a href="classpaimon_1_1_file_batch_reader.html#a8ebc841f9c493d3ec18786626a876073">paimon::FileBatchReader::GetNumberOfRows</a></div><div class="ttdeci">virtual Result&lt; uint64_t &gt; GetNumberOfRows() const =0</div><div class="ttdoc">Get the number of rows in the file.</div></div>
<div class="ttc" id="aclasspaimon_1_1_file_batch_reader_html_ac5afd12bba8e497dfc95cba25a343ba3"><div class="ttname"><a href="classpaimon_1_1_file_batch_reader.html#ac5afd12bba8e497dfc95cba25a343ba3">paimon::FileBatchReader::SupportPreciseBitmapSelection</a></div><div class="ttdeci">virtual bool SupportPreciseBitmapSelection() const =0</div><div class="ttdoc">Get whether or not support read precisely while bitmap pushed down.</div></div>
<div class="ttc" id="aclasspaimon_1_1_file_batch_reader_html_ac7266064352ed90581738242cf69500f"><div class="ttname"><a href="classpaimon_1_1_file_batch_reader.html#ac7266064352ed90581738242cf69500f">paimon::FileBatchReader::GetFileSchema</a></div><div class="ttdeci">virtual Result&lt; std::unique_ptr&lt;::ArrowSchema &gt; &gt; GetFileSchema() const =0</div></div>
<div class="ttc" id="aclasspaimon_1_1_file_batch_reader_html_af1b28c896a926c6496d03b9a5b55afb2"><div class="ttname"><a href="classpaimon_1_1_file_batch_reader.html#af1b28c896a926c6496d03b9a5b55afb2">paimon::FileBatchReader::SetReadSchema</a></div><div class="ttdeci">virtual Status SetReadSchema(::ArrowSchema *read_schema, const std::shared_ptr&lt; Predicate &gt; &amp;predicate, const std::optional&lt; RoaringBitmap32 &gt; &amp;selection_bitmap)=0</div><div class="ttdoc">Resets the read schema and predicate.</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="aclasspaimon_1_1_status_html"><div class="ttname"><a href="classpaimon_1_1_status.html">paimon::Status</a></div><div class="ttdoc">Status outcome object (success or error)</div><div class="ttdef"><b>Definition</b> status.h:92</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:219</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="apredicate_8h_html"><div class="ttname"><a href="predicate_8h.html">predicate.h</a></div></div>
<div class="ttc" id="aroaring__bitmap32_8h_html"><div class="ttname"><a href="roaring__bitmap32_8h.html">roaring_bitmap32.h</a></div></div>
<div class="ttc" id="astruct_arrow_schema_html"><div class="ttname"><a href="struct_arrow_schema.html">ArrowSchema</a></div><div class="ttdef"><b>Definition</b> abi.h:53</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>