arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject [11/51] [partial] arrow-site git commit: Add Ray serialization blog post, update API docs
Date Mon, 16 Oct 2017 14:19:49 GMT
http://git-wip-us.apache.org/repos/asf/arrow-site/blob/7a2e5ece/docs/cpp/type_8h_source.html
----------------------------------------------------------------------
diff --git a/docs/cpp/type_8h_source.html b/docs/cpp/type_8h_source.html
index 7a6f6a7..94ba148 100644
--- a/docs/cpp/type_8h_source.html
+++ b/docs/cpp/type_8h_source.html
@@ -5,7 +5,7 @@
 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
 <meta name="generator" content="Doxygen 1.8.13"/>
 <meta name="viewport" content="width=device-width, initial-scale=1"/>
-<title>Apache Arrow (C++): /home/wesm/code/arrow/cpp/src/arrow/type.h Source File</title>
+<title>Apache Arrow (C++): /apache-arrow/arrow/cpp/src/arrow/type.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>
@@ -67,210 +67,210 @@ $(function() {
 <div class="title">type.h</div>  </div>
 </div><!--header-->
 <div class="contents">
-<a href="type_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// or more contributor license agreements.  See the NOTICE file</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// distributed with this work for additional information</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// regarding copyright ownership.  The ASF licenses this file</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">// to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00006"></a><span class="l
 ineno">    6</span>&#160;<span class="comment">// &quot;License&quot;); you may not use this file except in compliance</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// with the License.  You may obtain a copy of the License at</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//   http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">// Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">// software distributed unde
 r the License is distributed on an</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">// &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// KIND, either express or implied.  See the License for the</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// specific language governing permissions and limitations</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// under the License.</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#ifndef ARROW_TYPE_H</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</spa
 n>&#160;<span class="preprocessor">#define ARROW_TYPE_H</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;climits&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;cstdint&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;ostream&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;unordered_map&gt;</
 span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="status_8h.html">arrow/status.h</a>&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="type__fwd_8h.html">arrow/type_fwd.h</a>&quot;</span>  <span class="comment">// IWYU pragma: export</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="key__value__metadata_8h.html">arrow/util/key_value_metadata.h</a>&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span cla
 ss="preprocessor">#include &quot;<a class="code" href="macros_8h.html">arrow/util/macros.h</a>&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="visibility_8h.html">arrow/util/visibility.h</a>&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="visitor_8h.html">arrow/visitor.h</a>&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacearrow.html">arrow</a> {</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">// Data types in this library are 
 all *logical*. They can be expressed as</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">// either a primitive physical type (bytes or bits of some fixed size), a</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">// nested type consisting of other data types, or another data type (e.g. a</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">// timestamp encoded as an int64)</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html">   42</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structarrow_1_1_type.html">Type</a> {</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">   43</a></span>&#160;  <span class="keyword">enum
 </span> <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">type</a> {</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="comment">// A degenerate NULL type represented as 0 bytes/bits</span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44af46d8600b17dd993097e0875a46e0b15">   45</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44af46d8600b17dd993097e0875a46e0b15">NA</a>,</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="comment">// A boolean value represented as 1 bit</span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44ae4bb414
 6eedf3fb5a517780000001b30">   48</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44ae4bb4146eedf3fb5a517780000001b30">BOOL</a>,</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    <span class="comment">// Little-endian integer types</span></div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44ab8f52afb784526f800c91de101673b42">   51</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44ab8f52afb784526f800c91de101673b42">UINT8</a>,</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44adf9f694eb598f6f8cac8bed3da547d65">   52</a></span>&#160;    <a class="code" href="structarrow_1_1_type.htm
 l#a00a041cb19a3be373da8eec7d4bf1f44adf9f694eb598f6f8cac8bed3da547d65">INT8</a>,</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a87c4272d67d3a84ed9ce6c6a9a4a6772">   53</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a87c4272d67d3a84ed9ce6c6a9a4a6772">UINT16</a>,</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a36b3753b92501b60b2740b29d6e17696">   54</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a36b3753b92501b60b2740b29d6e17696">INT16</a>,</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a89620afd46abf8f99b057bd3587a78f0">   55</a></span>&#160;    <a class="code" href="structarrow_1_1_typ
 e.html#a00a041cb19a3be373da8eec7d4bf1f44a89620afd46abf8f99b057bd3587a78f0">UINT32</a>,</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44af8005f162bc422abcee7f1197bf04cf8">   56</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44af8005f162bc422abcee7f1197bf04cf8">INT32</a>,</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44af1096e3ebb2d7a678fc6ddac24bf7639">   57</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44af1096e3ebb2d7a678fc6ddac24bf7639">UINT64</a>,</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44af38ec7ec303572a87b11fd48876bc1d0">   58</a></span>&#160;    <a class="code" href="structarrow_
 1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44af38ec7ec303572a87b11fd48876bc1d0">INT64</a>,</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="comment">// 2-byte floating point value</span></div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44af6ebd198668f2a6c2d79c549f599e896">   61</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44af6ebd198668f2a6c2d79c549f599e896">HALF_FLOAT</a>,</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="comment">// 4-byte floating point value</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structarrow_1_1_
 type.html#a00a041cb19a3be373da8eec7d4bf1f44a57c54c2b9d1630bc8c99b5fec4c93e58">   64</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a57c54c2b9d1630bc8c99b5fec4c93e58">FLOAT</a>,</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="comment">// 8-byte floating point value</span></div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a75397800ad025678ff7803b543d4a183">   67</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a75397800ad025678ff7803b543d4a183">DOUBLE</a>,</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="comment">// UTF8
  variable-length string as List&lt;Char&gt;</span></div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a864933bd7cdfa63ea75498c34db6545f">   70</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a864933bd7cdfa63ea75498c34db6545f">STRING</a>,</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="comment">// Variable-length bytes (no guarantee of UTF8-ness)</span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a442cc62761c7e5a83d26da4d3ed2fe01">   73</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a442cc62761c7e5a83d26da4d3ed2fe01">BINARY</a>,</div><div class="line">
 <a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="comment">// Fixed-size binary. Each value occupies the same number of bytes</span></div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a1b3f48148c5ff94c039d09ff689da179">   76</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a1b3f48148c5ff94c039d09ff689da179">FIXED_SIZE_BINARY</a>,</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="comment">// int32_t days since the UNIX epoch</span></div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a4351aedceb3d92f82cf7ae5
 04476ef30">   79</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a4351aedceb3d92f82cf7ae504476ef30">DATE32</a>,</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="comment">// int64_t milliseconds since the UNIX epoch</span></div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a17325202e90c23cd194b1698eea87a38">   82</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a17325202e90c23cd194b1698eea87a38">DATE64</a>,</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="comment">// Exact timestamp encoded with int64 since UNIX epoch</spa
 n></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="comment">// Default unit millisecond</span></div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a1e41dddee4a6410c4d6fe164b36a230e">   86</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a1e41dddee4a6410c4d6fe164b36a230e">TIMESTAMP</a>,</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="comment">// Time as signed 32-bit integer, representing either seconds or</span></div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="comment">// milliseconds since midnight</span></div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structarrow_1
 _1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a73fb0fcd2b5d9a4c6071574c73cdf3c5">   90</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a73fb0fcd2b5d9a4c6071574c73cdf3c5">TIME32</a>,</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <span class="comment">// Time as signed 64-bit integer, representing either microseconds or</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="comment">// nanoseconds since midnight</span></div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44ab960cffd22f54b634d9f055f7568d321">   94</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44ab960cffd22f54b634d9f055f7568d321">TIME64</a>,</div><div c
 lass="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="comment">// YEAR_MONTH or DAY_TIME interval in SQL style</span></div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44aaa546143f5b445f6478b7e157546ec3f">   97</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44aaa546143f5b445f6478b7e157546ec3f">INTERVAL</a>,</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="comment">// Precision- and scale-based decimal type. Storage type depends on the</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="comment">// parameters.</span></div><div class="lin
 e"><a name="l00101"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a014fe7104b592dbd7c70e4e861774a63">  101</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a014fe7104b592dbd7c70e4e861774a63">DECIMAL</a>,</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="comment">// A list of some logical data type</span></div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44ad074f9c02567b5945293b9114f84f210">  104</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44ad074f9c02567b5945293b9114f84f210">LIST</a>,</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a na
 me="l00106"></a><span class="lineno">  106</span>&#160;    <span class="comment">// Struct of logical types</span></div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44aaa028b35c4e6a047c0e510ef1b0389ef">  107</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44aaa028b35c4e6a047c0e510ef1b0389ef">STRUCT</a>,</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="comment">// Unions of logical types</span></div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a2fa6d3a8e3947b7d0024304bfb8b5fad">  110</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a2fa6d3a8e3947b7d0024304bfb8b5fa
 d">UNION</a>,</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    <span class="comment">// Dictionary aka Category type</span></div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a3c38b5820a3de12d71713473550c6280">  113</a></span>&#160;    <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a3c38b5820a3de12d71713473550c6280">DICTIONARY</a></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;  };</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;};</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="namespacearrow.html#af37e6996db0efe38caab9271161bcc33">  117</a></sp
 an>&#160;<span class="keyword">enum class</span> <a class="code" href="namespacearrow.html#af37e6996db0efe38caab9271161bcc33">BufferType</a> : char { <a class="code" href="namespacearrow.html#af37e6996db0efe38caab9271161bcc33ae44f9e348e41cb272efa87387728571b">DATA</a>, <a class="code" href="namespacearrow.html#af37e6996db0efe38caab9271161bcc33a1b8a8605d2ff5670a215e55c6645e0d9">OFFSET</a>, <a class="code" href="namespacearrow.html#af37e6996db0efe38caab9271161bcc33a948495146facadfe8859789036313d79">TYPE</a>, <a class="code" href="namespacearrow.html#af37e6996db0efe38caab9271161bcc33a9af81702e4d10e3b2a7637a4f1dc30ce">VALIDITY</a> };</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classarrow_1_1_buffer_descr.html">  119</a></span>&#160;<span class="keyword">class </span><a class="code" href="classarrow_1_1_buffer_descr.html">BufferDescr</a> {</div><div class="line">
 <a name="l00120"></a><span class="lineno">  120</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classarrow_1_1_buffer_descr.html#aaf63f66e459f799365e5d3b18caa3cda">  121</a></span>&#160;  <a class="code" href="classarrow_1_1_buffer_descr.html#aaf63f66e459f799365e5d3b18caa3cda">BufferDescr</a>(<a class="code" href="namespacearrow.html#af37e6996db0efe38caab9271161bcc33">BufferType</a> <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">type</a>, <span class="keywordtype">int</span> bit_width) : type_(type), bit_width_(bit_width) {}</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classarrow_1_1_buffer_descr.html#a17027163a5249059a8296ededc0059dc">  123</a></span>&#160;  <a class="code" href="namespacearrow.html#af37e6996db0efe38caab9271161bcc33">B
 ufferType</a> <a class="code" href="classarrow_1_1_buffer_descr.html#a17027163a5249059a8296ededc0059dc">type</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> type_; }</div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classarrow_1_1_buffer_descr.html#ac424da4de50e0af986ee1aaa3ba611a4">  124</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classarrow_1_1_buffer_descr.html#ac424da4de50e0af986ee1aaa3ba611a4">bit_width</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> bit_width_; }</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  <a class="code" href="namespacearrow.html#af37e6996db0efe38caab9271161bcc33">BufferType</a> 
 type_;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;  <span class="keywordtype">int</span> bit_width_;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;};</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classarrow_1_1_data_type.html">  131</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_data_type.html">DataType</a> {</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classarrow_1_1_data_type.html#a1b8a7ece05983649f67396177f40e844">  133</a></span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classarrow_1_1_data_type.html#a1b8a7ece05983649f67396177f40e844">DataType
 </a>(<a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">Type::type</a> <span class="keywordtype">id</span>) : id_(id) {}</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;  <span class="keyword">virtual</span> ~<a class="code" href="classarrow_1_1_data_type.html">DataType</a>();</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;  <span class="comment">// Return whether the types are equal</span></div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;  <span class="comment">//</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;  <span class="comment">// Types that are logically convertable from one to another e.g. List&lt;UInt8&gt;</span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;  <span class="comm
 ent">// and Binary are NOT equal).</span></div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> Equals(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_data_type.html">DataType</a>&amp; other) <span class="keyword">const</span>;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;  <span class="keywordtype">bool</span> Equals(<span class="keyword">const</span> std::shared_ptr&lt;DataType&gt;&amp; other) <span class="keyword">const</span>;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classarrow_1_1_data_type.html#ad84ecbff08a365b455c4528a9924e6ef">  143</a></span>&#160;  std::shared_ptr&lt;Field&gt; <a class="code" href="classarrow_1_1_data_type.html#ad84ecbff08a365b455c4528a9924e6ef">child</a>(<span cl
 ass="keywordtype">int</span> i)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> children_[i]; }</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classarrow_1_1_data_type.html#a36061c037a2e6e974cc3b22dfb6a5bac">  145</a></span>&#160;  <span class="keyword">const</span> std::vector&lt;std::shared_ptr&lt;Field&gt;&gt;&amp; <a class="code" href="classarrow_1_1_data_type.html#a36061c037a2e6e974cc3b22dfb6a5bac">children</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> children_; }</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="classarrow_1_1_data_type.html#ac8920179a6c1e7f434c495d5ec4662f1">  147</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classarrow_1_
 1_data_type.html#ac8920179a6c1e7f434c495d5ec4662f1">num_children</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(children_.size()); }</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classarrow_1_1_status.html">Status</a> Accept(<a class="code" href="classarrow_1_1_type_visitor.html">TypeVisitor</a>* visitor) <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;  <span class="keyword">virtual</span> std::string ToString() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00153"></a><span
  class="lineno">  153</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;  <span class="keyword">virtual</span> std::string name() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;  <span class="keyword">virtual</span> std::vector&lt;BufferDescr&gt; GetBufferLayout() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="classarrow_1_1_data_type.html#a5ec6a1c93420c68e9c8065d4a56ad645">  162</a></span>&#160;  <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">Type::type</a> <a class="code" href="classarrow_1_1_data_type.html#a5ec6a1c93420c68e9c8065d4a56ad645">id</a>()<span class="keyword"> const </sp
 an>{ <span class="keywordflow">return</span> id_; }</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classarrow_1_1_data_type.html#aa2704f1cfc50018d02e109b32f67e422">  165</a></span>&#160;  <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">Type::type</a> <a class="code" href="classarrow_1_1_data_type.html#aa2704f1cfc50018d02e109b32f67e422">id_</a>;</div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="classarrow_1_1_data_type.html#a8dd2f042289733133c386463afcea902">  166</a></span>&#160;  std::vector&lt;std::shared_ptr&lt;Field&gt;&gt; <a class="code" href="classarrow_1_1_data_type.html#a8dd2f042289733133c386463afcea902">children_</a>;</div><div class="line"><a name="l00167"><
 /a><span class="lineno">  167</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;  <a class="code" href="macros_8h.html#a40d72e185b1488b5659b761f0b6115bb">ARROW_DISALLOW_COPY_AND_ASSIGN</a>(<a class="code" href="classarrow_1_1_data_type.html">DataType</a>);</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;};</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="namespacearrow.html#a5709505547e744fa9cf7ddb09b1c2984">  172</a></span>&#160;<span class="keyword">inline</span> std::ostream&amp; <a class="code" href="namespacearrow.html#a5709505547e744fa9cf7ddb09b1c2984">operator&lt;&lt;</a>(std::ostream&amp; os, <span class="keyword">const</span> <a class="code" href="classar
 row_1_1_data_type.html">DataType</a>&amp; <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">type</a>) {</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;  os &lt;&lt; type.<a class="code" href="classarrow_1_1_data_type.html#a944727354fb11138ebd46368319598f2">ToString</a>();</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;  <span class="keywordflow">return</span> os;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;}</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="comment">// TODO(wesm): Remove this from parquet-cpp</span></div><div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="namespacearrow.html#a622ee062b6f19281209f41fe95a4cb69">  178</a></span>&#160;<span class="keyword">using</span> <a
  class="code" href="namespacearrow.html#a622ee062b6f19281209f41fe95a4cb69">TypePtr</a> = std::shared_ptr&lt;DataType&gt;;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="classarrow_1_1_fixed_width_type.html">  180</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_fixed_width_type.html">FixedWidthType</a> : <span class="keyword">public</span> <a class="code" href="classarrow_1_1_data_type.html">DataType</a> {</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;  <span class="keyword">using</span> <a class="code" href="classarrow_1_1_data_type.html#a1b8a7ece05983649f67396177f40e844">DataType::DataType</a>;</div><div class="line"><a name="l00183"></a><span class="li
 neno">  183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">int</span> bit_width() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;  std::vector&lt;BufferDescr&gt; GetBufferLayout() <span class="keyword">const override</span>;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;};</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="classarrow_1_1_primitive_c_type.html">  189</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_primitive_c_type.html">PrimitiveCType</a> : <span class="keyword">public</span> <a class="code" 
 href="classarrow_1_1_fixed_width_type.html">FixedWidthType</a> {</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;  <span class="keyword">using</span> FixedWidthType::FixedWidthType;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;};</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classarrow_1_1_number.html">  194</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_number.html">Number</a> : <span class="keyword">public</span> <a class="code" href="classarrow_1_1_primitive_c_type.html">PrimitiveCType</a> {</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160; <span class="keyword">public</span>:</di
 v><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;  <span class="keyword">using</span> PrimitiveCType::PrimitiveCType;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;};</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classarrow_1_1_integer.html">  199</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_integer.html">Integer</a> : <span class="keyword">public</span> <a class="code" href="classarrow_1_1_number.html">Number</a> {</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;  <span class="keyword">using</span> Number::Number;</div><div class="line"><a name="l00202"></a><span class="lineno">  202<
 /span>&#160;  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> is_signed() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;};</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="classarrow_1_1_floating_point.html">  205</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_floating_point.html">FloatingPoint</a> : <span class="keyword">public</span> <a class="code" href="classarrow_1_1_number.html">Number</a> {</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;  <span class="keyword">using</span> Number::Number;</div><div class="line"><a name="l00208"></a><span class="li
 neno"><a class="line" href="classarrow_1_1_floating_point.html#aa585c0815b471db6d35d916d9e887b7aa56a099153ea585f17f6040494c0873ac">  208</a></span>&#160;  <span class="keyword">enum</span> <a class="code" href="classarrow_1_1_floating_point.html#aa585c0815b471db6d35d916d9e887b7a">Precision</a> { HALF, <a class="code" href="classarrow_1_1_floating_point.html#aa585c0815b471db6d35d916d9e887b7aa56a099153ea585f17f6040494c0873ac">SINGLE</a>, <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a75397800ad025678ff7803b543d4a183">DOUBLE</a> };</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classarrow_1_1_floating_point.html#aa585c0815b471db6d35d916d9e887b7a">Precision</a> precision() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;};</div><div class="line"><a name="l00211"></a><span class="line
 no">  211</span>&#160;</div><div class="line"><a name="l00212"></a><span class="lineno"><a class="line" href="classarrow_1_1_nested_type.html">  212</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_nested_type.html">NestedType</a> : <span class="keyword">public</span> <a class="code" href="classarrow_1_1_data_type.html">DataType</a> {</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;  <span class="keyword">using</span> <a class="code" href="classarrow_1_1_data_type.html#a1b8a7ece05983649f67396177f40e844">DataType::DataType</a>;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;};</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;</div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href=
 "classarrow_1_1_no_extra_meta.html">  217</a></span>&#160;<span class="keyword">class </span><a class="code" href="classarrow_1_1_no_extra_meta.html">NoExtraMeta</a> {};</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="comment">// A field is a piece of metadata that includes (for now) a name and a data</span></div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="comment">// type</span></div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="classarrow_1_1_field.html">  221</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_field.html">Field</a> {</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00223"></a><span class="lineno"><a c
 lass="line" href="classarrow_1_1_field.html#a0bdd65f719b41328145aaeb9730d5b3c">  223</a></span>&#160;  <a class="code" href="classarrow_1_1_field.html#a0bdd65f719b41328145aaeb9730d5b3c">Field</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> std::shared_ptr&lt;DataType&gt;&amp; <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">type</a>,</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        <span class="keywordtype">bool</span> nullable = <span class="keyword">true</span>,</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        <span class="keyword">const</span> std::shared_ptr&lt;const KeyValueMetadata&gt;&amp; metadata = <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;      : name_(name), type_(type), nullable_(nullable), metadata_(metadata) {}</div><div class=
 "line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="classarrow_1_1_field.html#a899a4cef4c13946c9996095ca53e8004">  228</a></span>&#160;  std::shared_ptr&lt;const KeyValueMetadata&gt; <a class="code" href="classarrow_1_1_field.html#a899a4cef4c13946c9996095ca53e8004">metadata</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> metadata_; }</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;  <a class="code" href="classarrow_1_1_status.html">Status</a> AddMetadata(<span class="keyword">const</span> std::shared_ptr&lt;const KeyValueMetadata&gt;&amp; metadata,</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;                     std::shared_ptr&lt;Field&gt;* out) <span class="keyword">const</span>;</div><div 
 class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;  std::shared_ptr&lt;Field&gt; AddMetadata(</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;      <span class="keyword">const</span> std::shared_ptr&lt;const KeyValueMetadata&gt;&amp; metadata) <span class="keyword">const</span>;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;  std::shared_ptr&lt;Field&gt; RemoveMetadata() <span class="keyword">const</span>;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;  <span class="keywordtype">bool</span> Equals(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_field.html">Field</a>&amp; other) <span class="keyword">const</span>;</div><div class="line"><a name="l00239"></a><span cl
 ass="lineno">  239</span>&#160;  <span class="keywordtype">bool</span> Equals(<span class="keyword">const</span> std::shared_ptr&lt;Field&gt;&amp; other) <span class="keyword">const</span>;</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;  std::string ToString() <span class="keyword">const</span>;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="classarrow_1_1_field.html#ab023b8e5c6d7deff0af5fc757ecaca89">  243</a></span>&#160;  <span class="keyword">const</span> std::string&amp; <a class="code" href="classarrow_1_1_field.html#ab023b8e5c6d7deff0af5fc757ecaca89">name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> name_; }</div><div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="clas
 sarrow_1_1_field.html#a82421c8ae174cbd0c3ef458cf96def42">  244</a></span>&#160;  std::shared_ptr&lt;DataType&gt; <a class="code" href="classarrow_1_1_field.html#a82421c8ae174cbd0c3ef458cf96def42">type</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> type_; }</div><div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="classarrow_1_1_field.html#aba2045f76a42fe34fd785190af139c25">  245</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classarrow_1_1_field.html#aba2045f76a42fe34fd785190af139c25">nullable</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> nullable_; }</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;  <span class="co
 mment">// Field name</span></div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;  std::string name_;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;  <span class="comment">// The field&#39;s data type</span></div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;  std::shared_ptr&lt;DataType&gt; type_;</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;  <span class="comment">// Fields can be nullable</span></div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;  <span class="keywordtype">bool</span> nullable_;</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno">  257</
 span>&#160;  <span class="comment">// The field&#39;s metadata, if any</span></div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;  std::shared_ptr&lt;const KeyValueMetadata&gt; metadata_;</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;};</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;<span class="keyword">namespace </span>detail {</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> DERIVED, <span class="keyword">typename</span> BASE, Type::type TYPE_ID, <span class="keyword">typename</span> C_TYPE&gt;</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="keyword">cl
 ass </span>ARROW_EXPORT CTypeImpl : <span class="keyword">public</span> BASE {</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;  <span class="keyword">using</span> c_type = C_TYPE;</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;  <span class="keyword">static</span> constexpr <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">Type::type</a> type_id = TYPE_ID;</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;  CTypeImpl() : BASE(TYPE_ID) {}</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;  <span class="keywordtype">int</span> bit_wi
 dth()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(<span class="keyword">sizeof</span>(C_TYPE) * CHAR_BIT); }</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;  <a class="code" href="classarrow_1_1_status.html">Status</a> Accept(<a class="code" href="classarrow_1_1_type_visitor.html">TypeVisitor</a>* visitor)<span class="keyword"> const override </span>{</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <span class="keywordflow">return</span> visitor-&gt;<a class="code" href="classarrow_1_1_type_visitor.html#a7c55beece55f9c82a191a3667f2ca582">Visit</a>(*static_cast&lt;const DERIVED*&gt;(<span class="keyword">this</span>));</div><div class="line"><a name="l00275"></a><span class=
 "lineno">  275</span>&#160;  }</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;  std::string ToString()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> this-&gt;name(); }</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;};</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> DERIVED, Type::type TYPE_ID, <span class="keyword">typename</span> C_TYPE&gt;</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;<span class="keyword">class </span>IntegerTypeImpl : <span class="keyword">public</span> detail::CTypeImpl&lt;DERIVED, Integer, TYPE_ID, C_TYPE&gt; {</div><div class="line"><a
  name="l00282"></a><span class="lineno">  282</span>&#160;  <span class="keywordtype">bool</span> is_signed()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> std::is_signed&lt;C_TYPE&gt;::value; }</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;};</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;}  <span class="comment">// namespace detail</span></div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;</div><div class="line"><a name="l00287"></a><span class="lineno"><a class="line" href="classarrow_1_1_null_type.html">  287</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_null_type.html">NullType</a> : <span class="keyword">public</span> <a class="code" href="classarrow_1_1_data_type.html">DataType</a>, <span class="k
 eyword">public</span> <a class="code" href="classarrow_1_1_no_extra_meta.html">NoExtraMeta</a> {</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00289"></a><span class="lineno"><a class="line" href="classarrow_1_1_null_type.html#a9ffc27408dc7cd6f6da501d2e729e2f2">  289</a></span>&#160;  <span class="keyword">static</span> constexpr <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">Type::type</a> type_id = <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44af46d8600b17dd993097e0875a46e0b15">Type::NA</a>;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;</div><div class="line"><a name="l00291"></a><span class="lineno"><a class="line" href="classarrow_1_1_null_type.html#a283c0b240ce951e478295ed0091cac24">  291</a></span>&#160;  <a class="code" href="classarrow_1_1_null_type.html#a283c0b
 240ce951e478295ed0091cac24">NullType</a>() : <a class="code" href="classarrow_1_1_data_type.html">DataType</a>(<a class="code" href="structarrow_1_1_type.html">Type</a>::<a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44af46d8600b17dd993097e0875a46e0b15">NA</a>) {}</div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;  <a class="code" href="classarrow_1_1_status.html">Status</a> Accept(<a class="code" href="classarrow_1_1_type_visitor.html">TypeVisitor</a>* visitor) <span class="keyword">const override</span>;</div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;  std::string ToString() <span class="keyword">const override</span>;</div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;</div><div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="classarrow_1
 _1_null_type.html#a656232cfad677aebb79f3147b0acdfb2">  296</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_null_type.html#a656232cfad677aebb79f3147b0acdfb2">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;null&quot;</span>; }</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;  std::vector&lt;BufferDescr&gt; GetBufferLayout() <span class="keyword">const override</span>;</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;};</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;</div><div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="classarrow_1_1_boolean_type.html">  301</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_boolean_
 type.html">BooleanType</a> : <span class="keyword">public</span> <a class="code" href="classarrow_1_1_fixed_width_type.html">FixedWidthType</a>, <span class="keyword">public</span> <a class="code" href="classarrow_1_1_no_extra_meta.html">NoExtraMeta</a> {</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="classarrow_1_1_boolean_type.html#a3b6c20930777fca32adce915f024c170">  303</a></span>&#160;  <span class="keyword">static</span> constexpr <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">Type::type</a> type_id = <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44ae4bb4146eedf3fb5a517780000001b30">Type::BOOL</a>;</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;</div><div class="line"><a name="l00305"></a><span class="lineno"><a cla
 ss="line" href="classarrow_1_1_boolean_type.html#a473f6765f980c0d516dcc48020cf6431">  305</a></span>&#160;  <a class="code" href="classarrow_1_1_boolean_type.html#a473f6765f980c0d516dcc48020cf6431">BooleanType</a>() : <a class="code" href="classarrow_1_1_fixed_width_type.html">FixedWidthType</a>(<a class="code" href="structarrow_1_1_type.html">Type</a>::<a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44ae4bb4146eedf3fb5a517780000001b30">BOOL</a>) {}</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;  <a class="code" href="classarrow_1_1_status.html">Status</a> Accept(<a class="code" href="classarrow_1_1_type_visitor.html">TypeVisitor</a>* visitor) <span class="keyword">const override</span>;</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;  std::string ToString() <span class="keyword">const override</sp
 an>;</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;</div><div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="classarrow_1_1_boolean_type.html#a0bd78298885aa3b006c8b2155eeb4980">  310</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classarrow_1_1_boolean_type.html#a0bd78298885aa3b006c8b2155eeb4980">bit_width</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> 1; }</div><div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="classarrow_1_1_boolean_type.html#acedbda0c2af8b37046cc475a44b8fe3b">  311</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_boolean_type.html#acedbda0c2af8b37046cc475a44b8fe3b">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;bool&quot;</span>; }</div><div class="line"><a name="l00312"></a><span class="linen
 o">  312</span>&#160;};</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;</div><div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="classarrow_1_1_u_int8_type.html">  314</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_u_int8_type.html">UInt8Type</a></div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    : <span class="keyword">public</span> detail::IntegerTypeImpl&lt;UInt8Type, Type::UINT8, uint8_t&gt; {</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="classarrow_1_1_u_int8_type.html#ab10fbfb837fe182ca0189765b013de09">  317</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_u_int8_type.html#ab10fbfb837fe182ca0189765b013de09">name</a>()<span class="keyword"> const o
 verride </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;uint8&quot;</span>; }</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;};</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;</div><div class="line"><a name="l00320"></a><span class="lineno"><a class="line" href="classarrow_1_1_int8_type.html">  320</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_int8_type.html">Int8Type</a></div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    : <span class="keyword">public</span> detail::IntegerTypeImpl&lt;Int8Type, Type::INT8, int8_t&gt; {</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00323"></a><span class="lineno"><a class="line" href="classarrow_1_1_int8_type.html#a64523102f018c4e33dd855e00951f14f">
   323</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_int8_type.html#a64523102f018c4e33dd855e00951f14f">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;int8&quot;</span>; }</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;};</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;</div><div class="line"><a name="l00326"></a><span class="lineno"><a class="line" href="classarrow_1_1_u_int16_type.html">  326</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_u_int16_type.html">UInt16Type</a></div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    : <span class="keyword">public</span> detail::IntegerTypeImpl&lt;UInt16Type, Type::UINT16, uint16_t&gt; {</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160; <span class="
 keyword">public</span>:</div><div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="classarrow_1_1_u_int16_type.html#ac0d0b0576ac723ce83867fc959faba91">  329</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_u_int16_type.html#ac0d0b0576ac723ce83867fc959faba91">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;uint16&quot;</span>; }</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;};</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;</div><div class="line"><a name="l00332"></a><span class="lineno"><a class="line" href="classarrow_1_1_int16_type.html">  332</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_int16_type.html">Int16Type</a></div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    : <span class="keyword">
 public</span> detail::IntegerTypeImpl&lt;Int16Type, Type::INT16, int16_t&gt; {</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00335"></a><span class="lineno"><a class="line" href="classarrow_1_1_int16_type.html#a4fa0ae88c35e20ee007c1eac2b42bd52">  335</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_int16_type.html#a4fa0ae88c35e20ee007c1eac2b42bd52">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;int16&quot;</span>; }</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;};</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;</div><div class="line"><a name="l00338"></a><span class="lineno"><a class="line" href="classarrow_1_1_u_int32_type.html">  338</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a cla
 ss="code" href="classarrow_1_1_u_int32_type.html">UInt32Type</a></div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    : <span class="keyword">public</span> detail::IntegerTypeImpl&lt;UInt32Type, Type::UINT32, uint32_t&gt; {</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00341"></a><span class="lineno"><a class="line" href="classarrow_1_1_u_int32_type.html#ae3b0c563274e9d75001ecdce5c20cd24">  341</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_u_int32_type.html#ae3b0c563274e9d75001ecdce5c20cd24">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;uint32&quot;</span>; }</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;};</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;</div><div cla
 ss="line"><a name="l00344"></a><span class="lineno"><a class="line" href="classarrow_1_1_int32_type.html">  344</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_int32_type.html">Int32Type</a></div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    : <span class="keyword">public</span> detail::IntegerTypeImpl&lt;Int32Type, Type::INT32, int32_t&gt; {</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00347"></a><span class="lineno"><a class="line" href="classarrow_1_1_int32_type.html#a3e81d450a3667605e9ac2e375fe27256">  347</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_int32_type.html#a3e81d450a3667605e9ac2e375fe27256">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;int32&quot;</span>; }</div><div cl
 ass="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;};</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;</div><div class="line"><a name="l00350"></a><span class="lineno"><a class="line" href="classarrow_1_1_u_int64_type.html">  350</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_u_int64_type.html">UInt64Type</a></div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    : <span class="keyword">public</span> detail::IntegerTypeImpl&lt;UInt64Type, Type::UINT64, uint64_t&gt; {</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00353"></a><span class="lineno"><a class="line" href="classarrow_1_1_u_int64_type.html#aa82cb17b8c28a1839c5517169e0d68b5">  353</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_u_int64_type.html#aa82cb17b8c28a183
 9c5517169e0d68b5">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;uint64&quot;</span>; }</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;};</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;</div><div class="line"><a name="l00356"></a><span class="lineno"><a class="line" href="classarrow_1_1_int64_type.html">  356</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_int64_type.html">Int64Type</a></div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    : <span class="keyword">public</span> detail::IntegerTypeImpl&lt;Int64Type, Type::INT64, int64_t&gt; {</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00359"></a><span class="lineno"><a class="line" href="
 classarrow_1_1_int64_type.html#a3feadbb1be919553e5dc3c4d042eb66b">  359</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_int64_type.html#a3feadbb1be919553e5dc3c4d042eb66b">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;int64&quot;</span>; }</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;};</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;</div><div class="line"><a name="l00362"></a><span class="lineno"><a class="line" href="classarrow_1_1_half_float_type.html">  362</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_half_float_type.html">HalfFloatType</a></div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    : <span class="keyword">public</span> detail::CTypeImpl&lt;HalfFloatType, FloatingPoint, Type::HALF_FLOAT, uint16_t&gt; {</div
 ><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;  <a class="code" href="classarrow_1_1_floating_point.html#aa585c0815b471db6d35d916d9e887b7a">Precision</a> precision() <span class="keyword">const override</span>;</div><div class="line"><a name="l00366"></a><span class="lineno"><a class="line" href="classarrow_1_1_half_float_type.html#a01f51ed7d5bc4bce7b604a80d011a742">  366</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_half_float_type.html#a01f51ed7d5bc4bce7b604a80d011a742">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;halffloat&quot;</span>; }</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;};</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;</div><div class="l
 ine"><a name="l00369"></a><span class="lineno"><a class="line" href="classarrow_1_1_float_type.html">  369</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_float_type.html">FloatType</a></div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    : <span class="keyword">public</span> detail::CTypeImpl&lt;FloatType, FloatingPoint, Type::FLOAT, float&gt; {</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;  <a class="code" href="classarrow_1_1_floating_point.html#aa585c0815b471db6d35d916d9e887b7a">Precision</a> precision() <span class="keyword">const override</span>;</div><div class="line"><a name="l00373"></a><span class="lineno"><a class="line" href="classarrow_1_1_float_type.html#a7f4f1dc23a47224373466077d141cf25">  373</a></span>&#160;  std::string <a 
 class="code" href="classarrow_1_1_float_type.html#a7f4f1dc23a47224373466077d141cf25">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;float&quot;</span>; }</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;};</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;</div><div class="line"><a name="l00376"></a><span class="lineno"><a class="line" href="classarrow_1_1_double_type.html">  376</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_double_type.html">DoubleType</a></div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    : <span class="keyword">public</span> detail::CTypeImpl&lt;DoubleType, FloatingPoint, Type::DOUBLE, double&gt; {</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160; <span class="keyword">public</span>:</div><di
 v class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;  <a class="code" href="classarrow_1_1_floating_point.html#aa585c0815b471db6d35d916d9e887b7a">Precision</a> precision() <span class="keyword">const override</span>;</div><div class="line"><a name="l00380"></a><span class="lineno"><a class="line" href="classarrow_1_1_double_type.html#a2ae00dcf3116eddf0b03bd0bf9b71d10">  380</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_double_type.html#a2ae00dcf3116eddf0b03bd0bf9b71d10">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;double&quot;</span>; }</div><div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;};</div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;</div><div class="line"><a name="l00383"></a><span class="lineno"><a class="line" href="classarrow_1_1_list_type.html">  383</a></span>&#160;<span class="k
 eyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_list_type.html">ListType</a> : <span class="keyword">public</span> <a class="code" href="classarrow_1_1_nested_type.html">NestedType</a> {</div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="classarrow_1_1_list_type.html#adf15465afd0a2d3b4d32afe98d82a799">  385</a></span>&#160;  <span class="keyword">static</span> constexpr <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">Type::type</a> type_id = <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44ad074f9c02567b5945293b9114f84f210">Type::LIST</a>;</div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;  <span class="comment">// List can c
 ontain any other logical value type</span></div><div class="line"><a name="l00388"></a><span class="lineno"><a class="line" href="classarrow_1_1_list_type.html#ab2b8aa644656466440477e285ebe3111">  388</a></span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classarrow_1_1_list_type.html#ab2b8aa644656466440477e285ebe3111">ListType</a>(<span class="keyword">const</span> std::shared_ptr&lt;DataType&gt;&amp; value_type)</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;      : <a class="code" href="classarrow_1_1_list_type.html">ListType</a>(std::make_shared&lt;<a class="code" href="classarrow_1_1_field.html">Field</a>&gt;(<span class="stringliteral">&quot;item&quot;</span>, value_type)) {}</div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;</div><div class="line"><a name="l00391"></a><span class="lineno"><a class="line" href="classarrow_1_1_list_type.html#abee8a3b58f1d7e05ba474fd5225e699b">  391</a></
 span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classarrow_1_1_list_type.html#abee8a3b58f1d7e05ba474fd5225e699b">ListType</a>(<span class="keyword">const</span> std::shared_ptr&lt;Field&gt;&amp; value_field) : <a class="code" href="classarrow_1_1_nested_type.html">NestedType</a>(<a class="code" href="structarrow_1_1_type.html">Type</a>::<a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44ad074f9c02567b5945293b9114f84f210">LIST</a>) {</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    children_ = {value_field};</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;  }</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;</div><div class="line"><a name="l00395"></a><span class="lineno"><a class="line" href="classarrow_1_1_list_type.html#a0f046f1e52f1bfb045cab5f0a9d839d7">  395</a></span>&#160;  std::shared_ptr&lt;Field&gt; <a class="code"
  href="classarrow_1_1_list_type.html#a0f046f1e52f1bfb045cab5f0a9d839d7">value_field</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> children_[0]; }</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;</div><div class="line"><a name="l00397"></a><span class="lineno"><a class="line" href="classarrow_1_1_list_type.html#a19eb7a5e1c98215a1afbadaa4eaa0deb">  397</a></span>&#160;  std::shared_ptr&lt;DataType&gt; <a class="code" href="classarrow_1_1_list_type.html#a19eb7a5e1c98215a1afbadaa4eaa0deb">value_type</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> children_[0]-&gt;type(); }</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;  <a class="code" href="classarrow_1_1_status.html">Status</a> Accept(<a class="code" href="classarrow_1_1_type_visitor.html">TypeVisitor</a>* visi
 tor) <span class="keyword">const override</span>;</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;  std::string ToString() <span class="keyword">const override</span>;</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;</div><div class="line"><a name="l00402"></a><span class="lineno"><a class="line" href="classarrow_1_1_list_type.html#a6320a08c4881865abcac2fdeab4fb0a2">  402</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_list_type.html#a6320a08c4881865abcac2fdeab4fb0a2">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;list&quot;</span>; }</div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;  std::vector&lt;BufferDescr&gt; GetBufferLayout() <span class="keyword">const override</span>;</div><div class="lin
 e"><a name="l00405"></a><span class="lineno">  405</span>&#160;};</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;<span class="comment">// BinaryType type is represents lists of 1-byte values.</span></div><div class="line"><a name="l00408"></a><span class="lineno"><a class="line" href="classarrow_1_1_binary_type.html">  408</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_binary_type.html">BinaryType</a> : <span class="keyword">public</span> <a class="code" href="classarrow_1_1_data_type.html">DataType</a>, <span class="keyword">public</span> <a class="code" href="classarrow_1_1_no_extra_meta.html">NoExtraMeta</a> {</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00410"></a><span class="lineno"><a class="line" 
 href="classarrow_1_1_binary_type.html#ad80bf06cffec1a067ded02d208985e19">  410</a></span>&#160;  <span class="keyword">static</span> constexpr <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">Type::type</a> type_id = <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a442cc62761c7e5a83d26da4d3ed2fe01">Type::BINARY</a>;</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;</div><div class="line"><a name="l00412"></a><span class="lineno"><a class="line" href="classarrow_1_1_binary_type.html#a38d8b09303796253fe22a85a50d03224">  412</a></span>&#160;  <a class="code" href="classarrow_1_1_binary_type.html#a38d8b09303796253fe22a85a50d03224">BinaryType</a>() : <a class="code" href="classarrow_1_1_binary_type.html">BinaryType</a>(<a class="code" href="structarrow_1_1_type.html">Type</a>::<a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a442cc62761c7e5a83d26da4d3ed2fe0
 1">BINARY</a>) {}</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;  <a class="code" href="classarrow_1_1_status.html">Status</a> Accept(<a class="code" href="classarrow_1_1_type_visitor.html">TypeVisitor</a>* visitor) <span class="keyword">const override</span>;</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;  std::string ToString() <span class="keyword">const override</span>;</div><div class="line"><a name="l00416"></a><span class="lineno"><a class="line" href="classarrow_1_1_binary_type.html#a4c345ca9ef34a6099b29c3e694bedae3">  416</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_binary_type.html#a4c345ca9ef34a6099b29c3e694bedae3">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;binary&quot;</span>; }</div><div class="line"><a nam
 e="l00417"></a><span class="lineno">  417</span>&#160;</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;  std::vector&lt;BufferDescr&gt; GetBufferLayout() <span class="keyword">const override</span>;</div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;</div><div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;  <span class="comment">// Allow subclasses to change the logical type.</span></div><div class="line"><a name="l00422"></a><span class="lineno"><a class="line" href="classarrow_1_1_binary_type.html#a678c380577aca8bd39edbcf02842a61c">  422</a></span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classarrow_1_1_binary_type.html#a678c380577aca8bd39edbcf02842a61c">BinaryType</a>(<a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7
 d4bf1f44">Type::type</a> logical_type) : <a class="code" href="classarrow_1_1_data_type.html">DataType</a>(logical_type) {}</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;};</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;<span class="comment">// BinaryType type is represents lists of 1-byte values.</span></div><div class="line"><a name="l00426"></a><span class="lineno"><a class="line" href="classarrow_1_1_fixed_size_binary_type.html">  426</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_fixed_size_binary_type.html">FixedSizeBinaryType</a> : <span class="keyword">public</span> <a class="code" href="classarrow_1_1_fixed_width_type.html">FixedWidthType</a> {</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160; <span class="keyword">public</span>:</di
 v><div class="line"><a name="l00428"></a><span class="lineno"><a class="line" href="classarrow_1_1_fixed_size_binary_type.html#a81bf6bef1117f7ecad1c529ccab4984e">  428</a></span>&#160;  <span class="keyword">static</span> constexpr <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">Type::type</a> type_id = <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a1b3f48148c5ff94c039d09ff689da179">Type::FIXED_SIZE_BINARY</a>;</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;</div><div class="line"><a name="l00430"></a><span class="lineno"><a class="line" href="classarrow_1_1_fixed_size_binary_type.html#a0a6a0f0fed4fbaafaff6d6c74569d5ac">  430</a></span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classarrow_1_1_fixed_size_binary_type.html#a0a6a0f0fed4fbaafaff6d6c74569d5ac">FixedSizeBinaryType</a>(int32_t byte_width)</div><div class="line"><a name="l00431"></a><span class="
 lineno">  431</span>&#160;      : <a class="code" href="classarrow_1_1_fixed_width_type.html">FixedWidthType</a>(<a class="code" href="structarrow_1_1_type.html">Type</a>::<a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a1b3f48148c5ff94c039d09ff689da179">FIXED_SIZE_BINARY</a>), byte_width_(byte_width) {}</div><div class="line"><a name="l00432"></a><span class="lineno"><a class="line" href="classarrow_1_1_fixed_size_binary_type.html#ad4c4abc8b62e48081ccf64e7cc01cf05">  432</a></span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classarrow_1_1_fixed_size_binary_type.html#ad4c4abc8b62e48081ccf64e7cc01cf05">FixedSizeBinaryType</a>(int32_t byte_width, <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">Type::type</a> type_id)</div><div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;      : <a class="code" href="classarrow_1_1_fixed_width_type.html">FixedWidthType</a>(type_id), 
 byte_width_(byte_width) {}</div><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;</div><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;  <a class="code" href="classarrow_1_1_status.html">Status</a> Accept(<a class="code" href="classarrow_1_1_type_visitor.html">TypeVisitor</a>* visitor) <span class="keyword">const override</span>;</div><div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;  std::string ToString() <span class="keyword">const override</span>;</div><div class="line"><a name="l00437"></a><span class="lineno"><a class="line" href="classarrow_1_1_fixed_size_binary_type.html#af533276c83d45b5cefa826a169bef6c7">  437</a></span>&#160;  std::string <a class="code" href="classarrow_1_1_fixed_size_binary_type.html#af533276c83d45b5cefa826a169bef6c7">name</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;fixed_size_binary&quo
 t;</span>; }</div><div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;</div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;  std::vector&lt;BufferDescr&gt; GetBufferLayout() <span class="keyword">const override</span>;</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;</div><div class="line"><a name="l00441"></a><span class="lineno"><a class="line" href="classarrow_1_1_fixed_size_binary_type.html#a684663b4cfeedd523eece039c6c0955a">  441</a></span>&#160;  int32_t <a class="code" href="classarrow_1_1_fixed_size_binary_type.html#a684663b4cfeedd523eece039c6c0955a">byte_width</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> byte_width_; }</div><div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;  <span class="keywordtype">int</span> bit_width() <span class="keyword">const override</span>;</div><div class="line"><a name="l00443"></a><span cl
 ass="lineno">  443</span>&#160;</div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160; <span class="keyword">protected</span>:</div><div class="line"><a name="l00445"></a><span class="lineno"><a class="line" href="classarrow_1_1_fixed_size_binary_type.html#a2dfa5ac6ba9a94d355533f5b23a7b1bc">  445</a></span>&#160;  int32_t <a class="code" href="classarrow_1_1_fixed_size_binary_type.html#a2dfa5ac6ba9a94d355533f5b23a7b1bc">byte_width_</a>;</div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;};</div><div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;</div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;<span class="comment">// UTF-8 encoded strings</span></div><div class="line"><a name="l00449"></a><span class="lineno"><a class="line" href="classarrow_1_1_string_type.html">  449</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarr
 ow_1_1_string_type.html">StringType</a> : <span class="keyword">public</span> <a class="code" href="classarrow_1_1_binary_type.html">BinaryType</a> {</div><div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00451"></a><span class="lineno"><a class="line" href="classarrow_1_1_string_type.html#a310bfaefc36fe1eab6c864f777b4459a">  451</a></span>&#160;  <span class="keyword">static</span> constexpr <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44">Type::type</a> type_id = <a class="code" href="structarrow_1_1_type.html#a00a041cb19a3be373da8eec7d4bf1f44a864933bd7cdfa63ea75498c34db6545f">Type::STRING</a>;</div

<TRUNCATED>

Mime
View raw message