blob: c0f39dfc9a1baae36ae872c2c64bbf4edce023dc [file] [log] [blame]
<!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/file_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">iceberg-cpp
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<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_f51fe74ea6bc2b1b900619895eaa63be.html">iceberg</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">file_reader.h</div></div>
</div><!--header-->
<div class="contents">
<a href="file__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="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;optional&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</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="arrow__c__data_8h.html">iceberg/arrow_c_data.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="file__format_8h.html">iceberg/file_format.h</a>&quot;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &quot;iceberg/result.h&quot;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include &quot;<a class="code" href="type__fwd_8h.html">iceberg/type_fwd.h</a>&quot;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include &quot;iceberg/util/config.h&quot;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="keyword">namespace </span>iceberg {</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="foldopen" id="foldopen00038" data-start="{" data-end="};">
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="classiceberg_1_1Reader.html"> 38</a></span><span class="keyword">class </span>ICEBERG_EXPORT <a class="code hl_class" href="classiceberg_1_1Reader.html">Reader</a> {</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classiceberg_1_1Reader.html">~Reader</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_class" href="classiceberg_1_1Reader.html">Reader</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <a class="code hl_class" href="classiceberg_1_1Reader.html">Reader</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Reader.html">Reader</a>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_class" href="classiceberg_1_1Reader.html">Reader</a>&amp; operator=(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Reader.html">Reader</a>&amp;) = <span class="keyword">delete</span>;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="classiceberg_1_1Reader.html#ad79601bfcecf30aae808c6ffd972cc65"> 46</a></span> <span class="keyword">virtual</span> Status <a class="code hl_function" href="classiceberg_1_1Reader.html#ad79601bfcecf30aae808c6ffd972cc65">Open</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1ReaderOptions.html">ReaderOptions</a>&amp; options) = 0;</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="classiceberg_1_1Reader.html#ae85c73b2e7864feb1fe9b7395bf2bda6"> 49</a></span> <span class="keyword">virtual</span> Status <a class="code hl_function" href="classiceberg_1_1Reader.html#ae85c73b2e7864feb1fe9b7395bf2bda6">Close</a>() = 0;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classiceberg_1_1Reader.html#a28632e4930a68070106075a570f381b8"> 54</a></span> <span class="keyword">virtual</span> Result&lt;std::optional&lt;ArrowArray&gt;&gt; <a class="code hl_function" href="classiceberg_1_1Reader.html#a28632e4930a68070106075a570f381b8">Next</a>() = 0;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="classiceberg_1_1Reader.html#a782ec85ef9bd7bcbe901b35520305dc7"> 57</a></span> <span class="keyword">virtual</span> Result&lt;ArrowSchema&gt; <a class="code hl_function" href="classiceberg_1_1Reader.html#a782ec85ef9bd7bcbe901b35520305dc7">Schema</a>() = 0;</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="classiceberg_1_1Reader.html#ad732e05d7be7c6ce460e56b54ddf4736"> 60</a></span> <span class="keyword">virtual</span> Result&lt;std::unordered_map&lt;std::string, std::string&gt;&gt; <a class="code hl_function" href="classiceberg_1_1Reader.html#ad732e05d7be7c6ce460e56b54ddf4736">Metadata</a>() = 0;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span>};</div>
</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
<div class="foldopen" id="foldopen00064" data-start="{" data-end="};">
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="structiceberg_1_1Split.html"> 64</a></span><span class="keyword">struct </span>ICEBERG_EXPORT <a class="code hl_struct" href="structiceberg_1_1Split.html">Split</a> {</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="structiceberg_1_1Split.html#a481b7cbaf8b03f529d6bcbfec9700632"> 66</a></span> <span class="keywordtype">size_t</span> <a class="code hl_variable" href="structiceberg_1_1Split.html#a481b7cbaf8b03f529d6bcbfec9700632">offset</a>;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="structiceberg_1_1Split.html#aed304e2e09b04f9fb52cc08edbb3f0bb"> 68</a></span> <span class="keywordtype">size_t</span> <a class="code hl_variable" href="structiceberg_1_1Split.html#aed304e2e09b04f9fb52cc08edbb3f0bb">length</a>;</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span>};</div>
</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="foldopen" id="foldopen00071" data-start="{" data-end="};">
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classiceberg_1_1ReaderProperties.html"> 71</a></span><span class="keyword">class </span><a class="code hl_class" href="classiceberg_1_1ReaderProperties.html">ReaderProperties</a> : <span class="keyword">public</span> <a class="code hl_class" href="classiceberg_1_1ConfigBase.html">ConfigBase</a>&lt;ReaderProperties&gt; {</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keyword">using </span>Entry = <span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1ConfigBase_1_1Entry.html">ConfigBase&lt;ReaderProperties&gt;::Entry</a>&lt;T&gt;;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classiceberg_1_1ReaderProperties.html#ac41dca455600b179913525bb79b2cd60"> 77</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> Entry&lt;int64_t&gt; <a class="code hl_variable" href="classiceberg_1_1ReaderProperties.html#ac41dca455600b179913525bb79b2cd60">kBatchSize</a>{<span class="stringliteral">&quot;read.batch-size&quot;</span>, 4096};</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="classiceberg_1_1ReaderProperties.html#acd2d67afddc7078a168e6fc54a07d4eb"> 81</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> Entry&lt;bool&gt; <a class="code hl_variable" href="classiceberg_1_1ReaderProperties.html#acd2d67afddc7078a168e6fc54a07d4eb">kAvroSkipDatum</a>{<span class="stringliteral">&quot;read.avro.skip-datum&quot;</span>, <span class="keyword">true</span>};</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="classiceberg_1_1ReaderProperties.html#a6bc67dd5a6ab5a6abf2e6b1b7d461dc3"> 83</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> Entry&lt;int64_t&gt; <a class="code hl_variable" href="classiceberg_1_1ReaderProperties.html#a6bc67dd5a6ab5a6abf2e6b1b7d461dc3">kAvroBufferSize</a>{<span class="stringliteral">&quot;read.avro.buffer-size&quot;</span>, 1024 * 1024};</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> <span class="keyword">static</span> <a class="code hl_class" href="classiceberg_1_1ReaderProperties.html">ReaderProperties</a> <a class="code hl_function" href="classiceberg_1_1ReaderProperties.html#a144aa086668ecb63f1cf90d49df08c47">FromMap</a>(</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keyword">const</span> std::unordered_map&lt;std::string, std::string&gt;&amp; properties);</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span>};</div>
</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
<div class="foldopen" id="foldopen00091" data-start="{" data-end="};">
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="structiceberg_1_1ReaderOptions.html"> 91</a></span><span class="keyword">struct </span>ICEBERG_EXPORT <a class="code hl_struct" href="structiceberg_1_1ReaderOptions.html">ReaderOptions</a> {</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="structiceberg_1_1ReaderOptions.html#a959dc0c774f0a3d55991f1eb73753b2c"> 93</a></span> std::string <a class="code hl_variable" href="structiceberg_1_1ReaderOptions.html#a959dc0c774f0a3d55991f1eb73753b2c">path</a>;</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="structiceberg_1_1ReaderOptions.html#a774ae321e3063b7ae0bbb92c9d552a74"> 95</a></span> std::optional&lt;size_t&gt; <a class="code hl_variable" href="structiceberg_1_1ReaderOptions.html#a774ae321e3063b7ae0bbb92c9d552a74">length</a>;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="structiceberg_1_1ReaderOptions.html#ad23066ad0bd76b9bddf201e5b9bbeb0e"> 97</a></span> std::optional&lt;Split&gt; <a class="code hl_variable" href="structiceberg_1_1ReaderOptions.html#ad23066ad0bd76b9bddf201e5b9bbeb0e">split</a>;</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="structiceberg_1_1ReaderOptions.html#a49992ba965f62ff27631e8131ed657ea"> 101</a></span> std::shared_ptr&lt;class FileIO&gt; <a class="code hl_variable" href="structiceberg_1_1ReaderOptions.html#a49992ba965f62ff27631e8131ed657ea">io</a>;</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="structiceberg_1_1ReaderOptions.html#a418c6556965b0db7f12131e4f0070304"> 103</a></span> std::shared_ptr&lt;class Schema&gt; <a class="code hl_variable" href="structiceberg_1_1ReaderOptions.html#a418c6556965b0db7f12131e4f0070304">projection</a>;</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="structiceberg_1_1ReaderOptions.html#af6504634d4bf0a406fb091d9e10dc8fc"> 106</a></span> std::shared_ptr&lt;class Expression&gt; <a class="code hl_variable" href="structiceberg_1_1ReaderOptions.html#af6504634d4bf0a406fb091d9e10dc8fc">filter</a>;</div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="structiceberg_1_1ReaderOptions.html#ab2824fcc77efcfdd2810ff3945f2a519"> 109</a></span> std::shared_ptr&lt;class NameMapping&gt; <a class="code hl_variable" href="structiceberg_1_1ReaderOptions.html#ab2824fcc77efcfdd2810ff3945f2a519">name_mapping</a>;</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="structiceberg_1_1ReaderOptions.html#abfe412d377c1207df04c3a2c4fe23d55"> 111</a></span> <a class="code hl_class" href="classiceberg_1_1ReaderProperties.html">ReaderProperties</a> <a class="code hl_variable" href="structiceberg_1_1ReaderOptions.html#abfe412d377c1207df04c3a2c4fe23d55">properties</a>;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span>};</div>
</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="file__reader_8h.html#aadcea35e8b45a436a61aaf23684b939f"> 115</a></span><span class="keyword">using </span><a class="code hl_typedef" href="file__reader_8h.html#aadcea35e8b45a436a61aaf23684b939f">ReaderFactory</a> = std::function&lt;Result&lt;std::unique_ptr&lt;Reader&gt;&gt;()&gt;;</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="foldopen" id="foldopen00118" data-start="{" data-end="};">
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="structiceberg_1_1ReaderFactoryRegistry.html"> 118</a></span><span class="keyword">struct </span>ICEBERG_EXPORT <a class="code hl_struct" href="structiceberg_1_1ReaderFactoryRegistry.html">ReaderFactoryRegistry</a> {</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <a class="code hl_struct" href="structiceberg_1_1ReaderFactoryRegistry.html">ReaderFactoryRegistry</a>(FileFormatType format_type, <a class="code hl_typedef" href="file__reader_8h.html#aadcea35e8b45a436a61aaf23684b939f">ReaderFactory</a> factory);</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> </div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keyword">static</span> <a class="code hl_typedef" href="file__reader_8h.html#aadcea35e8b45a436a61aaf23684b939f">ReaderFactory</a>&amp; GetFactory(FileFormatType format_type);</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keyword">static</span> Result&lt;std::unique_ptr&lt;Reader&gt;&gt; Open(FileFormatType format_type,</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1ReaderOptions.html">ReaderOptions</a>&amp; options);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span>};</div>
</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span>} <span class="comment">// namespace iceberg</span></div>
<div class="ttc" id="aarrow__c__data_8h_html"><div class="ttname"><a href="arrow__c__data_8h.html">arrow_c_data.h</a></div></div>
<div class="ttc" id="aclassiceberg_1_1ConfigBase_1_1Entry_html"><div class="ttname"><a href="classiceberg_1_1ConfigBase_1_1Entry.html">iceberg::ConfigBase::Entry</a></div><div class="ttdef"><b>Definition</b> config.h:70</div></div>
<div class="ttc" id="aclassiceberg_1_1ConfigBase_html"><div class="ttname"><a href="classiceberg_1_1ConfigBase.html">iceberg::ConfigBase</a></div><div class="ttdef"><b>Definition</b> config.h:67</div></div>
<div class="ttc" id="aclassiceberg_1_1ReaderProperties_html"><div class="ttname"><a href="classiceberg_1_1ReaderProperties.html">iceberg::ReaderProperties</a></div><div class="ttdef"><b>Definition</b> file_reader.h:71</div></div>
<div class="ttc" id="aclassiceberg_1_1ReaderProperties_html_a144aa086668ecb63f1cf90d49df08c47"><div class="ttname"><a href="classiceberg_1_1ReaderProperties.html#a144aa086668ecb63f1cf90d49df08c47">iceberg::ReaderProperties::FromMap</a></div><div class="ttdeci">static ReaderProperties FromMap(const std::unordered_map&lt; std::string, std::string &gt; &amp;properties)</div><div class="ttdoc">Create a ReaderProperties instance from a map of key-value pairs.</div><div class="ttdef"><b>Definition</b> file_reader.cc:62</div></div>
<div class="ttc" id="aclassiceberg_1_1ReaderProperties_html_a6bc67dd5a6ab5a6abf2e6b1b7d461dc3"><div class="ttname"><a href="classiceberg_1_1ReaderProperties.html#a6bc67dd5a6ab5a6abf2e6b1b7d461dc3">iceberg::ReaderProperties::kAvroBufferSize</a></div><div class="ttdeci">static Entry&lt; int64_t &gt; kAvroBufferSize</div><div class="ttdoc">The buffer size used by Avro input stream.</div><div class="ttdef"><b>Definition</b> file_reader.h:83</div></div>
<div class="ttc" id="aclassiceberg_1_1ReaderProperties_html_ac41dca455600b179913525bb79b2cd60"><div class="ttname"><a href="classiceberg_1_1ReaderProperties.html#ac41dca455600b179913525bb79b2cd60">iceberg::ReaderProperties::kBatchSize</a></div><div class="ttdeci">static Entry&lt; int64_t &gt; kBatchSize</div><div class="ttdoc">The batch size to read.</div><div class="ttdef"><b>Definition</b> file_reader.h:77</div></div>
<div class="ttc" id="aclassiceberg_1_1ReaderProperties_html_acd2d67afddc7078a168e6fc54a07d4eb"><div class="ttname"><a href="classiceberg_1_1ReaderProperties.html#acd2d67afddc7078a168e6fc54a07d4eb">iceberg::ReaderProperties::kAvroSkipDatum</a></div><div class="ttdeci">static Entry&lt; bool &gt; kAvroSkipDatum</div><div class="ttdoc">Skip GenericDatum in Avro reader for better performance. When true, decode directly from Avro to Arro...</div><div class="ttdef"><b>Definition</b> file_reader.h:81</div></div>
<div class="ttc" id="aclassiceberg_1_1Reader_html"><div class="ttname"><a href="classiceberg_1_1Reader.html">iceberg::Reader</a></div><div class="ttdoc">Base reader class to read data from different file formats.</div><div class="ttdef"><b>Definition</b> file_reader.h:38</div></div>
<div class="ttc" id="aclassiceberg_1_1Reader_html_a28632e4930a68070106075a570f381b8"><div class="ttname"><a href="classiceberg_1_1Reader.html#a28632e4930a68070106075a570f381b8">iceberg::Reader::Next</a></div><div class="ttdeci">virtual Result&lt; std::optional&lt; ArrowArray &gt; &gt; Next()=0</div><div class="ttdoc">Read next data from file.</div></div>
<div class="ttc" id="aclassiceberg_1_1Reader_html_a782ec85ef9bd7bcbe901b35520305dc7"><div class="ttname"><a href="classiceberg_1_1Reader.html#a782ec85ef9bd7bcbe901b35520305dc7">iceberg::Reader::Schema</a></div><div class="ttdeci">virtual Result&lt; ArrowSchema &gt; Schema()=0</div><div class="ttdoc">Get the schema of the data.</div></div>
<div class="ttc" id="aclassiceberg_1_1Reader_html_ad732e05d7be7c6ce460e56b54ddf4736"><div class="ttname"><a href="classiceberg_1_1Reader.html#ad732e05d7be7c6ce460e56b54ddf4736">iceberg::Reader::Metadata</a></div><div class="ttdeci">virtual Result&lt; std::unordered_map&lt; std::string, std::string &gt; &gt; Metadata()=0</div><div class="ttdoc">Get the metadata of the file.</div></div>
<div class="ttc" id="aclassiceberg_1_1Reader_html_ad79601bfcecf30aae808c6ffd972cc65"><div class="ttname"><a href="classiceberg_1_1Reader.html#ad79601bfcecf30aae808c6ffd972cc65">iceberg::Reader::Open</a></div><div class="ttdeci">virtual Status Open(const ReaderOptions &amp;options)=0</div><div class="ttdoc">Open the reader.</div></div>
<div class="ttc" id="aclassiceberg_1_1Reader_html_ae85c73b2e7864feb1fe9b7395bf2bda6"><div class="ttname"><a href="classiceberg_1_1Reader.html#ae85c73b2e7864feb1fe9b7395bf2bda6">iceberg::Reader::Close</a></div><div class="ttdeci">virtual Status Close()=0</div><div class="ttdoc">Close the reader.</div></div>
<div class="ttc" id="afile__format_8h_html"><div class="ttname"><a href="file__format_8h.html">file_format.h</a></div></div>
<div class="ttc" id="afile__reader_8h_html_aadcea35e8b45a436a61aaf23684b939f"><div class="ttname"><a href="file__reader_8h.html#aadcea35e8b45a436a61aaf23684b939f">iceberg::ReaderFactory</a></div><div class="ttdeci">std::function&lt; Result&lt; std::unique_ptr&lt; Reader &gt; &gt;()&gt; ReaderFactory</div><div class="ttdoc">Factory function to create a reader of a specific file format.</div><div class="ttdef"><b>Definition</b> file_reader.h:115</div></div>
<div class="ttc" id="astructiceberg_1_1ReaderFactoryRegistry_html"><div class="ttname"><a href="structiceberg_1_1ReaderFactoryRegistry.html">iceberg::ReaderFactoryRegistry</a></div><div class="ttdoc">Registry of reader factories for different file formats.</div><div class="ttdef"><b>Definition</b> file_reader.h:118</div></div>
<div class="ttc" id="astructiceberg_1_1ReaderOptions_html"><div class="ttname"><a href="structiceberg_1_1ReaderOptions.html">iceberg::ReaderOptions</a></div><div class="ttdoc">Options for creating a reader.</div><div class="ttdef"><b>Definition</b> file_reader.h:91</div></div>
<div class="ttc" id="astructiceberg_1_1ReaderOptions_html_a418c6556965b0db7f12131e4f0070304"><div class="ttname"><a href="structiceberg_1_1ReaderOptions.html#a418c6556965b0db7f12131e4f0070304">iceberg::ReaderOptions::projection</a></div><div class="ttdeci">std::shared_ptr&lt; class Schema &gt; projection</div><div class="ttdoc">The projection schema to read from the file. This field is required.</div><div class="ttdef"><b>Definition</b> file_reader.h:103</div></div>
<div class="ttc" id="astructiceberg_1_1ReaderOptions_html_a49992ba965f62ff27631e8131ed657ea"><div class="ttname"><a href="structiceberg_1_1ReaderOptions.html#a49992ba965f62ff27631e8131ed657ea">iceberg::ReaderOptions::io</a></div><div class="ttdeci">std::shared_ptr&lt; class FileIO &gt; io</div><div class="ttdoc">FileIO instance to open the file. Reader implementations should down cast it to the specific FileIO i...</div><div class="ttdef"><b>Definition</b> file_reader.h:101</div></div>
<div class="ttc" id="astructiceberg_1_1ReaderOptions_html_a774ae321e3063b7ae0bbb92c9d552a74"><div class="ttname"><a href="structiceberg_1_1ReaderOptions.html#a774ae321e3063b7ae0bbb92c9d552a74">iceberg::ReaderOptions::length</a></div><div class="ttdeci">std::optional&lt; size_t &gt; length</div><div class="ttdoc">The total length of the file.</div><div class="ttdef"><b>Definition</b> file_reader.h:95</div></div>
<div class="ttc" id="astructiceberg_1_1ReaderOptions_html_a959dc0c774f0a3d55991f1eb73753b2c"><div class="ttname"><a href="structiceberg_1_1ReaderOptions.html#a959dc0c774f0a3d55991f1eb73753b2c">iceberg::ReaderOptions::path</a></div><div class="ttdeci">std::string path</div><div class="ttdoc">The path to the file to read.</div><div class="ttdef"><b>Definition</b> file_reader.h:93</div></div>
<div class="ttc" id="astructiceberg_1_1ReaderOptions_html_ab2824fcc77efcfdd2810ff3945f2a519"><div class="ttname"><a href="structiceberg_1_1ReaderOptions.html#ab2824fcc77efcfdd2810ff3945f2a519">iceberg::ReaderOptions::name_mapping</a></div><div class="ttdeci">std::shared_ptr&lt; class NameMapping &gt; name_mapping</div><div class="ttdoc">Name mapping for schema evolution compatibility. Used when reading files that may have different fiel...</div><div class="ttdef"><b>Definition</b> file_reader.h:109</div></div>
<div class="ttc" id="astructiceberg_1_1ReaderOptions_html_abfe412d377c1207df04c3a2c4fe23d55"><div class="ttname"><a href="structiceberg_1_1ReaderOptions.html#abfe412d377c1207df04c3a2c4fe23d55">iceberg::ReaderOptions::properties</a></div><div class="ttdeci">ReaderProperties properties</div><div class="ttdoc">Format-specific or implementation-specific properties.</div><div class="ttdef"><b>Definition</b> file_reader.h:111</div></div>
<div class="ttc" id="astructiceberg_1_1ReaderOptions_html_ad23066ad0bd76b9bddf201e5b9bbeb0e"><div class="ttname"><a href="structiceberg_1_1ReaderOptions.html#ad23066ad0bd76b9bddf201e5b9bbeb0e">iceberg::ReaderOptions::split</a></div><div class="ttdeci">std::optional&lt; Split &gt; split</div><div class="ttdoc">The split to read.</div><div class="ttdef"><b>Definition</b> file_reader.h:97</div></div>
<div class="ttc" id="astructiceberg_1_1ReaderOptions_html_af6504634d4bf0a406fb091d9e10dc8fc"><div class="ttname"><a href="structiceberg_1_1ReaderOptions.html#af6504634d4bf0a406fb091d9e10dc8fc">iceberg::ReaderOptions::filter</a></div><div class="ttdeci">std::shared_ptr&lt; class Expression &gt; filter</div><div class="ttdoc">The filter to apply to the data. Reader implementations may ignore this if the file format does not s...</div><div class="ttdef"><b>Definition</b> file_reader.h:106</div></div>
<div class="ttc" id="astructiceberg_1_1Split_html"><div class="ttname"><a href="structiceberg_1_1Split.html">iceberg::Split</a></div><div class="ttdoc">A split of the file to read.</div><div class="ttdef"><b>Definition</b> file_reader.h:64</div></div>
<div class="ttc" id="astructiceberg_1_1Split_html_a481b7cbaf8b03f529d6bcbfec9700632"><div class="ttname"><a href="structiceberg_1_1Split.html#a481b7cbaf8b03f529d6bcbfec9700632">iceberg::Split::offset</a></div><div class="ttdeci">size_t offset</div><div class="ttdoc">The offset of the split.</div><div class="ttdef"><b>Definition</b> file_reader.h:66</div></div>
<div class="ttc" id="astructiceberg_1_1Split_html_aed304e2e09b04f9fb52cc08edbb3f0bb"><div class="ttname"><a href="structiceberg_1_1Split.html#aed304e2e09b04f9fb52cc08edbb3f0bb">iceberg::Split::length</a></div><div class="ttdeci">size_t length</div><div class="ttdoc">The length of the split.</div><div class="ttdef"><b>Definition</b> file_reader.h:68</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&#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>