arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject [01/51] [partial] arrow-site git commit: Update C++ and Python API documentation for 0.7.0
Date Mon, 18 Sep 2017 20:42:00 GMT
Repository: arrow-site
Updated Branches:
  refs/heads/asf-site 162d91436 -> a4dfae211


http://git-wip-us.apache.org/repos/asf/arrow-site/blob/a4dfae21/docs/cpp/decimal_8h_source.html
----------------------------------------------------------------------
diff --git a/docs/cpp/decimal_8h_source.html b/docs/cpp/decimal_8h_source.html
index a28d992..873d776 100644
--- a/docs/cpp/decimal_8h_source.html
+++ b/docs/cpp/decimal_8h_source.html
@@ -67,25 +67,27 @@ $(function() {
 <div class="title">decimal.h</div>  </div>
 </div><!--header-->
 <div class="contents">
-<a href="decimal_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
 ="lineno">    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 u
 nder 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_DECIMAL_H</span></div><div class="line"><a name="l00019"></a><span class="lineno">   1
 9</span>&#160;<span class="preprocessor">#define ARROW_DECIMAL_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;cmath&gt;</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;cstdlib&gt;</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;iterator&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="status_8h.html">arrow/status.h</a>&quot;</sp
 an></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="bit-util_8h.html">arrow/util/bit-util.h</a>&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="logging_8h.html">arrow/util/logging.h</a>&quot;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;boost/multiprecision/cpp_int.hpp&gt;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacearrow.html">arrow</a> {</div><div class="line"><a name="l00033"></a><span class="lineno">   33</spa
 n>&#160;<span class="keyword">namespace </span>decimal {</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">using</span> boost::multiprecision::int128_t;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">struct </span>ARROW_EXPORT Decimal;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;ARROW_EXPORT <span class="keywordtype">void</span> <a class="code" href="namespacearrow_1_1decimal.html#a6afad42fc4d82a39f887de378831a3f7">Strin
 gToInteger</a>(<span class="keyword">const</span> std::string&amp; whole, <span class="keyword">const</span> std::string&amp; fractional,</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;                                  int8_t sign, int32_t* out);</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;ARROW_EXPORT <span class="keywordtype">void</span> <a class="code" href="namespacearrow_1_1decimal.html#a6afad42fc4d82a39f887de378831a3f7">StringToInteger</a>(<span class="keyword">const</span> std::string&amp; whole, <span class="keyword">const</span> std::string&amp; fractional,</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                                  int8_t sign, int64_t* out);</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;ARROW_EXPORT <span class="keywordtype">void</span> <a class="code" href="namespacearrow_1_1decimal.html#a6afad42fc4d82a39
 f887de378831a3f7">StringToInteger</a>(<span class="keyword">const</span> std::string&amp; whole, <span class="keyword">const</span> std::string&amp; fractional,</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;                                  int8_t sign, int128_t* out);</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="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;ARROW_EXPORT Status <a class="code" href="namespacearrow_1_1decimal.html#a3c19141f4b7535fcf6b6d28c4d2f65a2">FromString</a>(<span class="keyword">const</span> std::string&amp; s, Decimal&lt;T&gt;* out,</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;                               <span class="keywordtype">int</span>* p
 recision = <span class="keyword">nullptr</span>, <span class="keywordtype">int</span>* scale = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">struct </span>ARROW_EXPORT Decimal {</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal.html#a51785cc5497502f341166411aa0e7481">   53</a></span>&#160;  <a class="code" href="structarrow_1_1decimal_1_1_decimal.html#a51785cc5497502f341166411aa0e7481">Decimal</a>() : value() {}</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal.html#a52411e4506f0ea65ad0475d0a78090
 db">   54</a></span>&#160;  <span class="keyword">explicit</span> <a class="code" href="structarrow_1_1decimal_1_1_decimal.html#a52411e4506f0ea65ad0475d0a78090db">Decimal</a>(<span class="keyword">const</span> std::string&amp; s) : value() { <a class="code" href="logging_8h.html#ae17f8119c108cf3070bad3449c7e0006">DCHECK</a>(<a class="code" href="namespacearrow_1_1decimal.html#a3c19141f4b7535fcf6b6d28c4d2f65a2">FromString</a>(s, <span class="keyword">this</span>).ok()); }</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal.html#a49cd02d4909b819a6c39b02291fedc90">   55</a></span>&#160;  <span class="keyword">explicit</span> <a class="code" href="structarrow_1_1decimal_1_1_decimal.html#a49cd02d4909b819a6c39b02291fedc90">Decimal</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* s) : <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal</a>(std::string(s)) {}</div><div class
 ="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal.html#a02f067168e14f0a50eaf9388d7fbb72a">   56</a></span>&#160;  <span class="keyword">explicit</span> <a class="code" href="structarrow_1_1decimal_1_1_decimal.html#a02f067168e14f0a50eaf9388d7fbb72a">Decimal</a>(<span class="keyword">const</span> T&amp; value) : value(value) {}</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal.html#a237f7e82c58e0a7567fa5dd55bcb1865">   58</a></span>&#160;  <span class="keyword">using</span> <a class="code" href="structarrow_1_1decimal_1_1_decimal.html#a237f7e82c58e0a7567fa5dd55bcb1865">value_type</a> = T;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal.html#a93ecf0e98e5f41e400d528348892a4b2">   59</a></span>&#160;  <a c
 lass="code" href="structarrow_1_1decimal_1_1_decimal.html#a237f7e82c58e0a7567fa5dd55bcb1865">value_type</a> <a class="code" href="structarrow_1_1decimal_1_1_decimal.html#a93ecf0e98e5f41e400d528348892a4b2">value</a>;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;};</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="namespacearrow_1_1decimal.html#a50355962eac4d6cdba26b35e4fd04e42">   62</a></span>&#160;<span class="keyword">using</span> <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal32</a> = <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal&lt;int32_t&gt;</a>;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="namespacearrow_1_1decimal.html#a2209fbfc9988ce9e9638ac177955bd59">   63</a></span>&#160;<span class="keyword">using</span> <a class="code" href=
 "structarrow_1_1decimal_1_1_decimal.html">Decimal64</a> = <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal&lt;int64_t&gt;</a>;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="namespacearrow_1_1decimal.html#a4c1617fe86996a9666a1e559a7ee2cda">   64</a></span>&#160;<span class="keyword">using</span> <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal128</a> = <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal&lt;int128_t&gt;</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="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal_precision.html">   67</a></span>&#160;<span class="keyword">struct </span>ARROW_EXPORT <a c
 lass="code" href="structarrow_1_1decimal_1_1_decimal_precision.html">DecimalPrecision</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="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal_precision_3_01int32__t_01_4.html">   70</a></span>&#160;<span class="keyword">struct </span>ARROW_EXPORT DecimalPrecision&lt;int32_t&gt; {</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal_precision_3_01int32__t_01_4.html#acece9756bcb8e91fc2e6244aaa584514">   71</a></span>&#160;  constexpr <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> minimum = 1;</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" hr
 ef="structarrow_1_1decimal_1_1_decimal_precision_3_01int32__t_01_4.html#a8b111cf38217428c1e8dafb617d05426">   72</a></span>&#160;  constexpr <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> maximum = 9;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;};</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="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal_precision_3_01int64__t_01_4.html">   76</a></span>&#160;<span class="keyword">struct </span>ARROW_EXPORT DecimalPrecision&lt;int64_t&gt; {</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal_precision_3_01int64__t_01_4.html#aaefa400580396b0040
 7bb01fd323a0f5">   77</a></span>&#160;  constexpr <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> minimum = 10;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal_precision_3_01int64__t_01_4.html#a27265984ed47eaf5b87787d73058cec8">   78</a></span>&#160;  constexpr <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> maximum = 18;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;};</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="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal_precision_3_01int128__t_01_4.html">   82</a></span>&#160;
 <span class="keyword">struct </span>ARROW_EXPORT DecimalPrecision&lt;int128_t&gt; {</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal_precision_3_01int128__t_01_4.html#af91806be3a862fc60ea1cc96ee0f84ce">   83</a></span>&#160;  constexpr <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> minimum = 19;</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structarrow_1_1decimal_1_1_decimal_precision_3_01int128__t_01_4.html#af6847bc9f79651eaf038a035426eca0a">   84</a></span>&#160;  constexpr <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> maximum = 38;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;};</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00087"></a><span
  class="lineno">   87</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="namespacearrow_1_1decimal.html#af56bba58a8ee43c37e5c38585fdfd56d">   88</a></span>&#160;ARROW_EXPORT std::string <a class="code" href="namespacearrow_1_1decimal.html#af56bba58a8ee43c37e5c38585fdfd56d">ToString</a>(<span class="keyword">const</span> <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal&lt;T&gt;</a>&amp; decimal_value, <span class="keywordtype">int</span> precision,</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;                                  <span class="keywordtype">int</span> scale) {</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  T value = decimal_value.<a class="code" href="structarrow_1_1decimal_1_1_decimal.html#a93ecf0e98e5f41e400d528348892a4b2">value</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">// Decimal values are sent to clients as strings so in the interest of</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  <span class="comment">// speed the string will be created without the using stringstream with the</span></div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  <span class="comment">// whole/fractional_part().</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;  <span class="keywordtype">size_t</span> last_char_idx = precision + (scale &gt; 0)  <span class="comment">// Add a space for decimal place</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                         + (scale == precision)   <span class="comment">// Add a space for 
 leading 0</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;                         + (value &lt; 0);           <span class="comment">// Add a space for negative sign</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;  std::string str = std::string(last_char_idx, <span class="charliteral">&#39;0&#39;</span>);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  <span class="comment">// Start filling in the values in reverse order by taking the last digit</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;  <span class="comment">// of the value. Use a positive value and worry about the sign later. At this</span></div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  <span class="comment">// point the last_char_idx points to the string terminator.</span></div><div class="line"><a name="l00102"></a><span cl
 ass="lineno">  102</span>&#160;  T remaining_value = value;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;  <span class="keywordtype">size_t</span> first_digit_idx = 0;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  <span class="keywordflow">if</span> (value &lt; 0) {</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    remaining_value = -value;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    first_digit_idx = 1;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;  }</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  <span class="keywordflow">if</span> (scale &gt; 0) {</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keywordtype">int</span> remaining_scale = scale;</div><div class="line"><a name="l00110"></a><span class="l
 ineno">  110</span>&#160;    <span class="keywordflow">do</span> {</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;      str[--last_char_idx] = <span class="keyword">static_cast&lt;</span><span class="keywordtype">char</span><span class="keyword">&gt;</span>((remaining_value % 10) +</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;                                               static_cast&lt;T&gt;(<span class="charliteral">&#39;0&#39;</span>));  <span class="comment">// Ascii offset</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;      remaining_value /= 10;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    } <span class="keywordflow">while</span> (--remaining_scale &gt; 0);</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    str[--last_char_idx] = <span class="charliteral">&#39;.&#39;</span>;</div><div
  class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <a class="code" href="logging_8h.html#ab4f56aa24c4c9cddc47a6abd2d747f9a">DCHECK_GT</a>(last_char_idx, first_digit_idx) &lt;&lt; <span class="stringliteral">&quot;Not enough space remaining&quot;</span>;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;  }</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="keywordflow">do</span> {</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    str[--last_char_idx] =</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        <span class="keyword">static_cast&lt;</span><span class="keywordtype">char</span><span class="keyword">&gt;</span>((remaining_value % 10) + static_cast&lt;T&gt;(<span class="charliteral">&#39;0&#39;</span>));  <span class="comment">// Ascii offset</span></div><div class="line"><a name="l00121"></a><span 
 class="lineno">  121</span>&#160;    remaining_value /= 10;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordflow">if</span> (remaining_value == 0) {</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;      <span class="comment">// Trim any extra leading 0&#39;s.</span></div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;      <span class="keywordflow">if</span> (last_char_idx &gt; first_digit_idx) str.erase(0, last_char_idx - first_digit_idx);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;      <span class="keywordflow">break</span>;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    }</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="comment">// For safety, enforce string length independent of remaining_value.</span></div><div class="line"><
 a name="l00128"></a><span class="lineno">  128</span>&#160;  } <span class="keywordflow">while</span> (last_char_idx &gt; first_digit_idx);</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;  <span class="keywordflow">if</span> (value &lt; 0) str[0] = <span class="charliteral">&#39;-&#39;</span>;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;  <span class="keywordflow">return</span> str;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;}</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;ARROW_EXPORT <span class="keywordtype">void</span> <a class="code" href="namespacearrow_1_1decimal.html#a1975af90ff866271f5c4cc959e022c16">FromBytes</a>(<span class="keyword">const</span> uint8_t* bytes, <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal32</a>* va
 lue);</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;ARROW_EXPORT <span class="keywordtype">void</span> <a class="code" href="namespacearrow_1_1decimal.html#a1975af90ff866271f5c4cc959e022c16">FromBytes</a>(<span class="keyword">const</span> uint8_t* bytes, <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal64</a>* value);</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;ARROW_EXPORT <span class="keywordtype">void</span> <a class="code" href="namespacearrow_1_1decimal.html#a1975af90ff866271f5c4cc959e022c16">FromBytes</a>(<span class="keyword">const</span> uint8_t* bytes, <span class="keywordtype">bool</span> is_negative, <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal128</a>* decimal);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;ARROW_EXPORT <span class
 ="keywordtype">void</span> <a class="code" href="namespacearrow_1_1decimal.html#ab734c81c4ccf4b89ce93304173901dc1">ToBytes</a>(<span class="keyword">const</span> <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal32</a>&amp; value, uint8_t** bytes);</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;ARROW_EXPORT <span class="keywordtype">void</span> <a class="code" href="namespacearrow_1_1decimal.html#ab734c81c4ccf4b89ce93304173901dc1">ToBytes</a>(<span class="keyword">const</span> <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal64</a>&amp; value, uint8_t** bytes);</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;ARROW_EXPORT <span class="keywordtype">void</span> <a class="code" href="namespacearrow_1_1decimal.html#ab734c81c4ccf4b89ce93304173901dc1">ToBytes</a>(<span class="keyword">const</span> <a class="code" href="structarrow_1_1decimal_1_1_decimal.html">Decimal128</a>&amp; 
 decimal, uint8_t** bytes, <span class="keywordtype">bool</span>* is_negative);</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">  143</span>&#160;}  <span class="comment">// namespace decimal</span></div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;}  <span class="comment">// namespace arrow</span></div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="preprocessor">#endif  // ARROW_DECIMAL_H</span></div><div class="ttc" id="namespacearrow_1_1decimal_html_ab734c81c4ccf4b89ce93304173901dc1"><div class="ttname"><a href="namespacearrow_1_1decimal.html#ab734c81c4ccf4b89ce93304173901dc1">arrow::decimal::ToBytes</a></div><div class="ttdeci">void ToBytes(const Decimal32 &amp;value, uint8_t **bytes)</div><div class="ttdoc">Conversion from a Decimal value to raw bytes. </div></div>
-<div class="ttc" id="namespacearrow_1_1decimal_html_af56bba58a8ee43c37e5c38585fdfd56d"><div class="ttname"><a href="namespacearrow_1_1decimal.html#af56bba58a8ee43c37e5c38585fdfd56d">arrow::decimal::ToString</a></div><div class="ttdeci">std::string ToString(const Decimal&lt; T &gt; &amp;decimal_value, int precision, int scale)</div><div class="ttdef"><b>Definition:</b> decimal.h:88</div></div>
-<div class="ttc" id="logging_8h_html_ab4f56aa24c4c9cddc47a6abd2d747f9a"><div class="ttname"><a href="logging_8h.html#ab4f56aa24c4c9cddc47a6abd2d747f9a">DCHECK_GT</a></div><div class="ttdeci">#define DCHECK_GT(val1, val2)</div><div class="ttdef"><b>Definition:</b> logging.h:84</div></div>
-<div class="ttc" id="structarrow_1_1decimal_1_1_decimal_html_a237f7e82c58e0a7567fa5dd55bcb1865"><div class="ttname"><a href="structarrow_1_1decimal_1_1_decimal.html#a237f7e82c58e0a7567fa5dd55bcb1865">arrow::decimal::Decimal::value_type</a></div><div class="ttdeci">T value_type</div><div class="ttdef"><b>Definition:</b> decimal.h:58</div></div>
-<div class="ttc" id="logging_8h_html"><div class="ttname"><a href="logging_8h.html">logging.h</a></div></div>
-<div class="ttc" id="structarrow_1_1decimal_1_1_decimal_html_a49cd02d4909b819a6c39b02291fedc90"><div class="ttname"><a href="structarrow_1_1decimal_1_1_decimal.html#a49cd02d4909b819a6c39b02291fedc90">arrow::decimal::Decimal::Decimal</a></div><div class="ttdeci">Decimal(const char *s)</div><div class="ttdef"><b>Definition:</b> decimal.h:55</div></div>
-<div class="ttc" id="bit-util_8h_html"><div class="ttname"><a href="bit-util_8h.html">bit-util.h</a></div></div>
-<div class="ttc" id="structarrow_1_1decimal_1_1_decimal_html"><div class="ttname"><a href="structarrow_1_1decimal_1_1_decimal.html">arrow::decimal::Decimal</a></div><div class="ttdef"><b>Definition:</b> builder.h:51</div></div>
-<div class="ttc" id="namespacearrow_1_1decimal_html_a1975af90ff866271f5c4cc959e022c16"><div class="ttname"><a href="namespacearrow_1_1decimal.html#a1975af90ff866271f5c4cc959e022c16">arrow::decimal::FromBytes</a></div><div class="ttdeci">void FromBytes(const uint8_t *bytes, Decimal32 *value)</div><div class="ttdoc">Conversion from raw bytes to a Decimal value. </div></div>
+<a href="decimal_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
 ="lineno">    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 u
 nder 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_DECIMAL_H</span></div><div class="line"><a name="l00019"></a><span class="lineno">   1
 9</span>&#160;<span class="preprocessor">#define ARROW_DECIMAL_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;array&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;string&gt;</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;type_traits&gt;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</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="l00027"></a><span class="lineno">   27</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="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacearrow.html">arrow</a> {</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="classarrow_1_1_decimal128.html">   38</a></span>&#160;<span class="keyword">class </span>ARROW_EXPORT <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a> {</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00041"></a><span class=
 "lineno"><a class="line" href="classarrow_1_1_decimal128.html#a69248cbd3eae1c93dd62f6961cac390b">   41</a></span>&#160;  constexpr <a class="code" href="classarrow_1_1_decimal128.html#a69248cbd3eae1c93dd62f6961cac390b">Decimal128</a>(int64_t high, uint64_t low) : high_bits_(high), low_bits_(low) {}</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="classarrow_1_1_decimal128.html#ac96d6e18605e8f4217d20e8dee2ff089">   44</a></span>&#160;  constexpr <a class="code" href="classarrow_1_1_decimal128.html#ac96d6e18605e8f4217d20e8dee2ff089">Decimal128</a>() : Decimal128(0, 0) {}</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T,</div><div class="line"><a name="l00048"></a><sp
 an class="lineno">   48</span>&#160;            <span class="keyword">typename</span> = <span class="keyword">typename</span> std::enable_if&lt;std::is_integral&lt;T&gt;::value, T&gt;::type&gt;</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classarrow_1_1_decimal128.html#a305524dc3ac97dc13365ff2a0eab7852">   49</a></span>&#160;  constexpr <a class="code" href="classarrow_1_1_decimal128.html#a305524dc3ac97dc13365ff2a0eab7852">Decimal128</a>(T value)</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;      : Decimal128(static_cast&lt;int64_t&gt;(value) &gt;= 0 ? 0 : -1,</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;                   static_cast&lt;uint64_t&gt;(value)) {}</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <span class="keyword">explicit</span> <a
  class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>(<span class="keyword">const</span> std::string&amp; value);</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;  <span class="keyword">explicit</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>(<span class="keyword">const</span> uint8_t* bytes);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; Negate();</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;  <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; operator+=(<span class="keyword">const</span> 
 <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;  <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; operator-=(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; operator*=(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;  <a c
 lass="code" href="classarrow_1_1_status.html">Status</a> Divide(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; divisor, <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>* result,</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;                <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>* remainder) <span class="keyword">const</span>;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;  <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; operator/=(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"> 
   87</span>&#160;  <span class="keyword">explicit</span> <span class="keyword">operator</span> char() <span class="keyword">const</span>;</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; operator|=(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;  <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; operator&amp;=(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a nam
 e="l00096"></a><span class="lineno">   96</span>&#160;  <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; operator&lt;&lt;=(uint32_t bits);</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;  <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; operator&gt;&gt;=(uint32_t bits);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="classarrow_1_1_decimal128.html#aba1a88ab68d88695c980ea2475e21967">  102</a></span>&#160;  int64_t <a class="code" href="classarrow_1_1_decimal128.html#aba1a88ab68d88695c980ea2475e21967">high_bits</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> high_bits_; }</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><di
 v class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classarrow_1_1_decimal128.html#a33dffd62ff64fff5c01db140d30d2058">  105</a></span>&#160;  uint64_t <a class="code" href="classarrow_1_1_decimal128.html#a33dffd62ff64fff5c01db140d30d2058">low_bits</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> low_bits_; }</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;  std::array&lt;uint8_t, 16&gt; ToBytes() <span class="keyword">const</span>;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;  std::string ToString(<span class="keywordtype">int</span> precision, <span class="keywordtype">int</span> scale) <span class="keyword">const</span>;</div><div class="line"><a name="l00113"></a><span class="lineno
 ">  113</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;  <span class="keyword">static</span> <a class="code" href="classarrow_1_1_status.html">Status</a> FromString(<span class="keyword">const</span> std::string&amp; s, <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>* out,</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;                           <span class="keywordtype">int</span>* precision = <span class="keyword">nullptr</span>, <span class="keywordtype">int</span>* scale = <span class="keyword">nullptr</span>);</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">  119</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;  int64_t high_bits_;</div><div class="line"><a name="l00121"></a><span class="li
 neno">  121</span>&#160;  uint64_t low_bits_;</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">  123</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;ARROW_EXPORT <span class="keywordtype">bool</span> <a class="code" href="namespacearrow.html#a6cdf639b318b550f64e0a20a84961539">operator==</a>(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; left, <span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;ARROW_EXPORT <span class="keywordtype">bool</span> <a class="code" href="namespacearrow.html#aaaffa5e80489838d1a7a8fcb67a8fb17">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal1
 28</a>&amp; left, <span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;ARROW_EXPORT <span class="keywordtype">bool</span> <a class="code" href="namespacearrow.html#a00e97294150b521f706f5a11f564e92d">operator&lt;</a>(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; left, <span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;ARROW_EXPORT <span class="keywordtype">bool</span> <a class="code" href="namespacearrow.html#a7b2da1d163682b3192990fcafb033898">operator&lt;=</a>(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; left, <span class="keyword">const</span> <a class="code" href="c
 lassarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;ARROW_EXPORT <span class="keywordtype">bool</span> <a class="code" href="namespacearrow.html#ab681299bc6b014a221b0af43d41e4b65">operator&gt;</a>(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; left, <span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;ARROW_EXPORT <span class="keywordtype">bool</span> <a class="code" href="namespacearrow.html#ac67110f6c0e89c45337d7e55e9904abe">operator&gt;=</a>(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; left, <span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</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">  131</span>&#160;ARROW_EXPORT <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a> <a class="code" href="namespacearrow.html#a1afbc3cbe738530b93a6e278f45d27d9">operator-</a>(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; operand);</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;ARROW_EXPORT <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a> <a class="code" href="namespacearrow.html#a3774a724f5011f76dd26afaf94e3b89d">operator+</a>(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; left, <span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00133"></a><span class="lineno">  
 133</span>&#160;ARROW_EXPORT <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a> <a class="code" href="namespacearrow.html#a1afbc3cbe738530b93a6e278f45d27d9">operator-</a>(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; left, <span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;ARROW_EXPORT <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a> <a class="code" href="namespacearrow.html#aa66ea6168f23fdccd88518616e5104ab">operator*</a>(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; left, <span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;ARROW
 _EXPORT <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a> <a class="code" href="namespacearrow.html#a6f5fc6bffa009f45c4f2b54ce6678149">operator/</a>(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; left, <span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;ARROW_EXPORT <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a> <a class="code" href="namespacearrow.html#a4fa0dcbab734b9edda844b3d1f03bbe6">operator%</a>(<span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; left, <span class="keyword">const</span> <a class="code" href="classarrow_1_1_decimal128.html">Decimal128</a>&amp; right);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a
  name="l00138"></a><span class="lineno">  138</span>&#160;}  <span class="comment">// namespace arrow</span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="preprocessor">#endif  //  ARROW_DECIMAL_H</span></div><div class="ttc" id="namespacearrow_html_aa66ea6168f23fdccd88518616e5104ab"><div class="ttname"><a href="namespacearrow.html#aa66ea6168f23fdccd88518616e5104ab">arrow::operator*</a></div><div class="ttdeci">Decimal128 operator*(const Decimal128 &amp;left, const Decimal128 &amp;right)</div></div>
+<div class="ttc" id="classarrow_1_1_decimal128_html_a305524dc3ac97dc13365ff2a0eab7852"><div class="ttname"><a href="classarrow_1_1_decimal128.html#a305524dc3ac97dc13365ff2a0eab7852">arrow::Decimal128::Decimal128</a></div><div class="ttdeci">constexpr Decimal128(T value)</div><div class="ttdoc">Convert any integer value into an Decimal128. </div><div class="ttdef"><b>Definition:</b> decimal.h:49</div></div>
+<div class="ttc" id="classarrow_1_1_decimal128_html_aba1a88ab68d88695c980ea2475e21967"><div class="ttname"><a href="classarrow_1_1_decimal128.html#aba1a88ab68d88695c980ea2475e21967">arrow::Decimal128::high_bits</a></div><div class="ttdeci">int64_t high_bits() const</div><div class="ttdoc">Get the high bits of the two&amp;#39;s complement representation of the number. </div><div class="ttdef"><b>Definition:</b> decimal.h:102</div></div>
+<div class="ttc" id="classarrow_1_1_decimal128_html_a69248cbd3eae1c93dd62f6961cac390b"><div class="ttname"><a href="classarrow_1_1_decimal128.html#a69248cbd3eae1c93dd62f6961cac390b">arrow::Decimal128::Decimal128</a></div><div class="ttdeci">constexpr Decimal128(int64_t high, uint64_t low)</div><div class="ttdoc">Create an Decimal128 from the two&amp;#39;s complement representation. </div><div class="ttdef"><b>Definition:</b> decimal.h:41</div></div>
+<div class="ttc" id="namespacearrow_html_a4fa0dcbab734b9edda844b3d1f03bbe6"><div class="ttname"><a href="namespacearrow.html#a4fa0dcbab734b9edda844b3d1f03bbe6">arrow::operator%</a></div><div class="ttdeci">Decimal128 operator%(const Decimal128 &amp;left, const Decimal128 &amp;right)</div></div>
+<div class="ttc" id="namespacearrow_html_a00e97294150b521f706f5a11f564e92d"><div class="ttname"><a href="namespacearrow.html#a00e97294150b521f706f5a11f564e92d">arrow::operator&lt;</a></div><div class="ttdeci">bool operator&lt;(const Decimal128 &amp;left, const Decimal128 &amp;right)</div></div>
+<div class="ttc" id="namespacearrow_html_a7b2da1d163682b3192990fcafb033898"><div class="ttname"><a href="namespacearrow.html#a7b2da1d163682b3192990fcafb033898">arrow::operator&lt;=</a></div><div class="ttdeci">bool operator&lt;=(const Decimal128 &amp;left, const Decimal128 &amp;right)</div></div>
+<div class="ttc" id="namespacearrow_html_a1afbc3cbe738530b93a6e278f45d27d9"><div class="ttname"><a href="namespacearrow.html#a1afbc3cbe738530b93a6e278f45d27d9">arrow::operator-</a></div><div class="ttdeci">Decimal128 operator-(const Decimal128 &amp;operand)</div></div>
+<div class="ttc" id="classarrow_1_1_status_html"><div class="ttname"><a href="classarrow_1_1_status.html">arrow::Status</a></div><div class="ttdef"><b>Definition:</b> status.h:106</div></div>
+<div class="ttc" id="namespacearrow_html_a6f5fc6bffa009f45c4f2b54ce6678149"><div class="ttname"><a href="namespacearrow.html#a6f5fc6bffa009f45c4f2b54ce6678149">arrow::operator/</a></div><div class="ttdeci">Decimal128 operator/(const Decimal128 &amp;left, const Decimal128 &amp;right)</div></div>
+<div class="ttc" id="namespacearrow_html_aaaffa5e80489838d1a7a8fcb67a8fb17"><div class="ttname"><a href="namespacearrow.html#aaaffa5e80489838d1a7a8fcb67a8fb17">arrow::operator!=</a></div><div class="ttdeci">bool operator!=(const stl_allocator&lt; T1 &gt; &amp;lhs, const stl_allocator&lt; T2 &gt; &amp;rhs) noexcept</div><div class="ttdef"><b>Definition:</b> allocator.h:93</div></div>
+<div class="ttc" id="visibility_8h_html"><div class="ttname"><a href="visibility_8h.html">visibility.h</a></div></div>
+<div class="ttc" id="namespacearrow_html_a3774a724f5011f76dd26afaf94e3b89d"><div class="ttname"><a href="namespacearrow.html#a3774a724f5011f76dd26afaf94e3b89d">arrow::operator+</a></div><div class="ttdeci">Decimal128 operator+(const Decimal128 &amp;left, const Decimal128 &amp;right)</div></div>
 <div class="ttc" id="namespacearrow_html"><div class="ttname"><a href="namespacearrow.html">arrow</a></div><div class="ttdoc">Top-level namespace for Apache Arrow C++ API. </div><div class="ttdef"><b>Definition:</b> allocator.h:28</div></div>
-<div class="ttc" id="structarrow_1_1decimal_1_1_decimal_html_a93ecf0e98e5f41e400d528348892a4b2"><div class="ttname"><a href="structarrow_1_1decimal_1_1_decimal.html#a93ecf0e98e5f41e400d528348892a4b2">arrow::decimal::Decimal::value</a></div><div class="ttdeci">value_type value</div><div class="ttdef"><b>Definition:</b> decimal.h:59</div></div>
 <div class="ttc" id="status_8h_html"><div class="ttname"><a href="status_8h.html">status.h</a></div></div>
-<div class="ttc" id="logging_8h_html_ae17f8119c108cf3070bad3449c7e0006"><div class="ttname"><a href="logging_8h.html#ae17f8119c108cf3070bad3449c7e0006">DCHECK</a></div><div class="ttdeci">#define DCHECK(condition)</div><div class="ttdef"><b>Definition:</b> logging.h:78</div></div>
-<div class="ttc" id="structarrow_1_1decimal_1_1_decimal_html_a51785cc5497502f341166411aa0e7481"><div class="ttname"><a href="structarrow_1_1decimal_1_1_decimal.html#a51785cc5497502f341166411aa0e7481">arrow::decimal::Decimal::Decimal</a></div><div class="ttdeci">Decimal()</div><div class="ttdef"><b>Definition:</b> decimal.h:53</div></div>
-<div class="ttc" id="structarrow_1_1decimal_1_1_decimal_html_a52411e4506f0ea65ad0475d0a78090db"><div class="ttname"><a href="structarrow_1_1decimal_1_1_decimal.html#a52411e4506f0ea65ad0475d0a78090db">arrow::decimal::Decimal::Decimal</a></div><div class="ttdeci">Decimal(const std::string &amp;s)</div><div class="ttdef"><b>Definition:</b> decimal.h:54</div></div>
-<div class="ttc" id="structarrow_1_1decimal_1_1_decimal_precision_html"><div class="ttname"><a href="structarrow_1_1decimal_1_1_decimal_precision.html">arrow::decimal::DecimalPrecision</a></div><div class="ttdef"><b>Definition:</b> decimal.h:67</div></div>
-<div class="ttc" id="structarrow_1_1decimal_1_1_decimal_html_a02f067168e14f0a50eaf9388d7fbb72a"><div class="ttname"><a href="structarrow_1_1decimal_1_1_decimal.html#a02f067168e14f0a50eaf9388d7fbb72a">arrow::decimal::Decimal::Decimal</a></div><div class="ttdeci">Decimal(const T &amp;value)</div><div class="ttdef"><b>Definition:</b> decimal.h:56</div></div>
-<div class="ttc" id="namespacearrow_1_1decimal_html_a3c19141f4b7535fcf6b6d28c4d2f65a2"><div class="ttname"><a href="namespacearrow_1_1decimal.html#a3c19141f4b7535fcf6b6d28c4d2f65a2">arrow::decimal::FromString</a></div><div class="ttdeci">Status FromString(const std::string &amp;s, Decimal&lt; T &gt; *out, int *precision=nullptr, int *scale=nullptr)</div></div>
-<div class="ttc" id="namespacearrow_1_1decimal_html_a6afad42fc4d82a39f887de378831a3f7"><div class="ttname"><a href="namespacearrow_1_1decimal.html#a6afad42fc4d82a39f887de378831a3f7">arrow::decimal::StringToInteger</a></div><div class="ttdeci">void StringToInteger(const std::string &amp;whole, const std::string &amp;fractional, int8_t sign, int32_t *out)</div></div>
+<div class="ttc" id="classarrow_1_1_decimal128_html_ac96d6e18605e8f4217d20e8dee2ff089"><div class="ttname"><a href="classarrow_1_1_decimal128.html#ac96d6e18605e8f4217d20e8dee2ff089">arrow::Decimal128::Decimal128</a></div><div class="ttdeci">constexpr Decimal128()</div><div class="ttdoc">Empty constructor creates an Decimal128 with a value of 0. </div><div class="ttdef"><b>Definition:</b> decimal.h:44</div></div>
+<div class="ttc" id="namespacearrow_html_a6cdf639b318b550f64e0a20a84961539"><div class="ttname"><a href="namespacearrow.html#a6cdf639b318b550f64e0a20a84961539">arrow::operator==</a></div><div class="ttdeci">bool operator==(const stl_allocator&lt; T1 &gt; &amp;lhs, const stl_allocator&lt; T2 &gt; &amp;rhs) noexcept</div><div class="ttdef"><b>Definition:</b> allocator.h:88</div></div>
+<div class="ttc" id="namespacearrow_html_ac67110f6c0e89c45337d7e55e9904abe"><div class="ttname"><a href="namespacearrow.html#ac67110f6c0e89c45337d7e55e9904abe">arrow::operator&gt;=</a></div><div class="ttdeci">bool operator&gt;=(const Decimal128 &amp;left, const Decimal128 &amp;right)</div></div>
+<div class="ttc" id="namespacearrow_html_ab681299bc6b014a221b0af43d41e4b65"><div class="ttname"><a href="namespacearrow.html#ab681299bc6b014a221b0af43d41e4b65">arrow::operator&gt;</a></div><div class="ttdeci">bool operator&gt;(const Decimal128 &amp;left, const Decimal128 &amp;right)</div></div>
+<div class="ttc" id="classarrow_1_1_decimal128_html"><div class="ttname"><a href="classarrow_1_1_decimal128.html">arrow::Decimal128</a></div><div class="ttdoc">Represents a signed 128-bit integer in two&amp;#39;s complement. </div><div class="ttdef"><b>Definition:</b> decimal.h:38</div></div>
+<div class="ttc" id="classarrow_1_1_decimal128_html_a33dffd62ff64fff5c01db140d30d2058"><div class="ttname"><a href="classarrow_1_1_decimal128.html#a33dffd62ff64fff5c01db140d30d2058">arrow::Decimal128::low_bits</a></div><div class="ttdeci">uint64_t low_bits() const</div><div class="ttdoc">Get the low bits of the two&amp;#39;s complement representation of the number. </div><div class="ttdef"><b>Definition:</b> decimal.h:105</div></div>
 </div><!-- fragment --></div><!-- contents -->
 <!-- start footer part -->
 <hr class="footer"/><address class="footer"><small>


Mime
View raw message