blob: f4d88cf17638e80ff9c7a387d27be7bb4c7d2009 [file]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>iceberg-cpp: iceberg/transform.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">iceberg-cpp
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_51d145386ec5f52aa06ebf5e46944abc.html">iceberg</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">transform.h</div></div>
</div><!--header-->
<div class="contents">
<a href="transform_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * distributed with this work for additional information</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> * with the License. You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> *</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> *</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * software distributed under the License is distributed on an</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> * KIND, either express or implied. See the License for the</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> * specific language governing permissions and limitations</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"> * under the License.</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> */</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;cstdint&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;utility&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;variant&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &quot;<a class="code" href="literal_8h.html">iceberg/expression/literal.h</a>&quot;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &quot;<a class="code" href="iceberg__export_8h.html">iceberg/iceberg_export.h</a>&quot;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include &quot;<a class="code" href="result_8h.html">iceberg/result.h</a>&quot;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include &quot;<a class="code" href="type__fwd_8h.html">iceberg/type_fwd.h</a>&quot;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor">#include &quot;<a class="code" href="formattable_8h.html">iceberg/util/formattable.h</a>&quot;</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceiceberg.html">iceberg</a> {</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="foldopen" id="foldopen00039" data-start="{" data-end="};">
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131"> 39</a></span><span class="keyword">enum class</span> <a class="code hl_enumeration" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131">TransformType</a> {</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a25c2dc47991b3df171ed5192bcf70390">kUnknown</a>,</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131ac7c5a181d7cc5f5733d84dd9bd778967">kIdentity</a>,</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a0226618c5258d9e1e71a400e0735314d">kBucket</a>,</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a6393f5467404a20b7754c5032eb69bfd">kTruncate</a>,</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131ae5f29bf7f42ebe083f06960f4fbe6edc">kYear</a>,</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131abc4d3195c11185792391cc43d779d01d">kMonth</a>,</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a8f642cb82e8f76aabc6e3ff8d1dd5119">kDay</a>,</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a818152297c27d28aa4c1341db214c84b">kHour</a>,</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131abd383557eb16fc23863cf3fc70b77ab3">kVoid</a>,</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span>};</div>
</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
<div class="foldopen" id="foldopen00062" data-start="{" data-end="}">
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="namespaceiceberg.html#a165e3b4437918cd461bfabe9fe5d3a91"> 62</a></span>ICEBERG_EXPORT <span class="keyword">constexpr</span> std::string_view <a class="code hl_function" href="namespaceiceberg.html#a165e3b4437918cd461bfabe9fe5d3a91">TransformTypeToString</a>(<a class="code hl_enumeration" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131">TransformType</a> type) {</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">switch</span> (type) {</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a25c2dc47991b3df171ed5192bcf70390">TransformType::kUnknown</a>:</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;unknown&quot;</span>;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131ac7c5a181d7cc5f5733d84dd9bd778967">TransformType::kIdentity</a>:</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;identity&quot;</span>;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a0226618c5258d9e1e71a400e0735314d">TransformType::kBucket</a>:</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;bucket&quot;</span>;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a6393f5467404a20b7754c5032eb69bfd">TransformType::kTruncate</a>:</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;truncate&quot;</span>;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131ae5f29bf7f42ebe083f06960f4fbe6edc">TransformType::kYear</a>:</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;year&quot;</span>;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131abc4d3195c11185792391cc43d779d01d">TransformType::kMonth</a>:</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;month&quot;</span>;</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a8f642cb82e8f76aabc6e3ff8d1dd5119">TransformType::kDay</a>:</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;day&quot;</span>;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a818152297c27d28aa4c1341db214c84b">TransformType::kHour</a>:</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;hour&quot;</span>;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordflow">case</span> <a class="code hl_enumvalue" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131abd383557eb16fc23863cf3fc70b77ab3">TransformType::kVoid</a>:</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;void&quot;</span>;</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> }</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> std::unreachable();</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span>}</div>
</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
<div class="foldopen" id="foldopen00090" data-start="{" data-end="};">
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html"> 90</a></span><span class="keyword">class </span>ICEBERG_EXPORT <a class="code hl_class" href="classiceberg_1_1Transform.html">Transform</a> : <span class="keyword">public</span> <a class="code hl_class" href="classiceberg_1_1util_1_1Formattable.html">util::Formattable</a> {</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#acd9d552e2d93ff31aae71e526e3bddfe"> 96</a></span> <span class="keyword">static</span> std::shared_ptr&lt;Transform&gt; <a class="code hl_function" href="classiceberg_1_1Transform.html#acd9d552e2d93ff31aae71e526e3bddfe">Identity</a>();</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#a75fa0cab329fd541fe1610f86b27f3e0"> 103</a></span> <span class="keyword">static</span> std::shared_ptr&lt;Transform&gt; <a class="code hl_function" href="classiceberg_1_1Transform.html#a75fa0cab329fd541fe1610f86b27f3e0">Bucket</a>(int32_t num_buckets);</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#ad61eb145cbd7e604b2205b49ece4be2a"> 110</a></span> <span class="keyword">static</span> std::shared_ptr&lt;Transform&gt; <a class="code hl_function" href="classiceberg_1_1Transform.html#ad61eb145cbd7e604b2205b49ece4be2a">Truncate</a>(int32_t width);</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#aa68423ff3f47d426a1e49a86cbf2c957"> 116</a></span> <span class="keyword">static</span> std::shared_ptr&lt;Transform&gt; <a class="code hl_function" href="classiceberg_1_1Transform.html#aa68423ff3f47d426a1e49a86cbf2c957">Year</a>();</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#a481866a199f724f447f8efc6cb2887c4"> 122</a></span> <span class="keyword">static</span> std::shared_ptr&lt;Transform&gt; <a class="code hl_function" href="classiceberg_1_1Transform.html#a481866a199f724f447f8efc6cb2887c4">Month</a>();</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#ab7070f95d62c4e33ce6d187a9f562864"> 128</a></span> <span class="keyword">static</span> std::shared_ptr&lt;Transform&gt; <a class="code hl_function" href="classiceberg_1_1Transform.html#ab7070f95d62c4e33ce6d187a9f562864">Day</a>();</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#a85d2874ea64610dd61cd18806a8d5d6e"> 134</a></span> <span class="keyword">static</span> std::shared_ptr&lt;Transform&gt; <a class="code hl_function" href="classiceberg_1_1Transform.html#a85d2874ea64610dd61cd18806a8d5d6e">Hour</a>();</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#ad99a5da4d3c9f1f0f94e7288a7c68e92"> 140</a></span> <span class="keyword">static</span> std::shared_ptr&lt;Transform&gt; <a class="code hl_function" href="classiceberg_1_1Transform.html#ad99a5da4d3c9f1f0f94e7288a7c68e92">Void</a>();</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#afbed008e01be5d67004e7aaa24fb75f2"> 143</a></span> <a class="code hl_enumeration" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131">TransformType</a> <a class="code hl_function" href="classiceberg_1_1Transform.html#afbed008e01be5d67004e7aaa24fb75f2">transform_type</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#a4028210e3c0b3d5bfaed8bb07ef4dae6"> 151</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;TransformFunction&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transform.html#a4028210e3c0b3d5bfaed8bb07ef4dae6">Bind</a>(</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keyword">const</span> std::shared_ptr&lt;Type&gt;&amp; source_type) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#aa06c837c45e1c2dc3039fa69317fc560"> 155</a></span> std::shared_ptr&lt;Type&gt; <a class="code hl_function" href="classiceberg_1_1Transform.html#aa06c837c45e1c2dc3039fa69317fc560">ResultType</a>(<span class="keyword">const</span> std::shared_ptr&lt;Type&gt;&amp; source_type) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#a51284bd3b85cd5951be730b2c887708e"> 160</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classiceberg_1_1Transform.html#a51284bd3b85cd5951be730b2c887708e">CanTransform</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Type.html">Type</a>&amp; source_type) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#abb9e7ab8d3004c70846226b7b948591a"> 165</a></span> Status <a class="code hl_function" href="classiceberg_1_1Transform.html#abb9e7ab8d3004c70846226b7b948591a">Validate</a>(<span class="keyword">const</span> std::shared_ptr&lt;Type&gt;&amp; source_type) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> </div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#afb27bac92bade0469d6f5ed436ac28d0"> 168</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classiceberg_1_1Transform.html#afb27bac92bade0469d6f5ed436ac28d0">PreservesOrder</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> </div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#ab8dd9a9699f039f5bb4c0133687ec1a0"> 179</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classiceberg_1_1Transform.html#ab8dd9a9699f039f5bb4c0133687ec1a0">SatisfiesOrderOf</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Transform.html">Transform</a>&amp; other) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#ac0a1ac335d0816a473bd3e811fce9b25"> 190</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::unique_ptr&lt;UnboundPredicate&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transform.html#ac0a1ac335d0816a473bd3e811fce9b25">Project</a>(</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> std::string_view name, <span class="keyword">const</span> std::shared_ptr&lt;BoundPredicate&gt;&amp; predicate);</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#a2779a1a98eadc543af8ff3ecb128215e"> 202</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::unique_ptr&lt;UnboundPredicate&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transform.html#a2779a1a98eadc543af8ff3ecb128215e">ProjectStrict</a>(</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> std::string_view name, <span class="keyword">const</span> std::shared_ptr&lt;BoundPredicate&gt;&amp; predicate);</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#afd2e4a6210b3f51f8ea8b44c84428988"> 209</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::string&gt;</a> <a class="code hl_function" href="classiceberg_1_1Transform.html#afd2e4a6210b3f51f8ea8b44c84428988">ToHumanString</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Literal.html">Literal</a>&amp; value);</div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> </div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#af5c8b537969e36e0c2f35a5baf3f6d10"> 212</a></span> std::string <a class="code hl_function" href="classiceberg_1_1Transform.html#af5c8b537969e36e0c2f35a5baf3f6d10">ToString</a>() <span class="keyword">const override</span>;</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> </div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#a59dba809ed7b418964c77f46301633eb"> 216</a></span> std::string <a class="code hl_function" href="classiceberg_1_1Transform.html#a59dba809ed7b418964c77f46301633eb">DedupName</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> </div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#a33f12e4ac4082a9fa0c159c8fd84fa52"> 221</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::string&gt;</a> <a class="code hl_function" href="classiceberg_1_1Transform.html#a33f12e4ac4082a9fa0c159c8fd84fa52">GeneratePartitionName</a>(std::string_view source_name) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> </div>
<div class="foldopen" id="foldopen00224" data-start="{" data-end="};">
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transform.html#a5ca5534f6d0509012ab3f8e05c752c69"> 224</a></span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code hl_friend" href="classiceberg_1_1Transform.html#a5ca5534f6d0509012ab3f8e05c752c69">operator==</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Transform.html">Transform</a>&amp; lhs, <span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Transform.html">Transform</a>&amp; rhs) {</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keywordflow">return</span> lhs.Equals(rhs);</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> }</div>
</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> </div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <span class="keyword">explicit</span> <a class="code hl_class" href="classiceberg_1_1Transform.html">Transform</a>(<a class="code hl_enumeration" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131">TransformType</a> transform_type);</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> </div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <a class="code hl_class" href="classiceberg_1_1Transform.html">Transform</a>(<a class="code hl_enumeration" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131">TransformType</a> transform_type, int32_t param);</div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> </div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> [[nodiscard]] <span class="keyword">virtual</span> <span class="keywordtype">bool</span> Equals(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Transform.html">Transform</a>&amp; other) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> </div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> <a class="code hl_enumeration" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131">TransformType</a> transform_type_;</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> std::variant&lt;std::monostate, int32_t&gt; param_;</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span>};</div>
</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"><a class="line" href="namespaceiceberg.html#a01618a62c6221ea8682246168e74a8a3"> 255</a></span>ICEBERG_EXPORT <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;Transform&gt;</a>&gt; <a class="code hl_function" href="namespaceiceberg.html#a01618a62c6221ea8682246168e74a8a3">TransformFromString</a>(</div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> std::string_view transform_str);</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> </div>
<div class="foldopen" id="foldopen00259" data-start="{" data-end="};">
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"><a class="line" href="classiceberg_1_1TransformFunction.html"> 259</a></span><span class="keyword">class </span>ICEBERG_EXPORT <a class="code hl_class" href="classiceberg_1_1TransformFunction.html">TransformFunction</a> {</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classiceberg_1_1TransformFunction.html">~TransformFunction</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> <a class="code hl_class" href="classiceberg_1_1TransformFunction.html">TransformFunction</a>(<a class="code hl_enumeration" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131">TransformType</a> transform_type, std::shared_ptr&lt;Type&gt; source_type);</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"><a class="line" href="classiceberg_1_1TransformFunction.html#afb1c573d9bd098c76d858f476ef16f3f"> 266</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;Literal&gt;</a> <a class="code hl_function" href="classiceberg_1_1TransformFunction.html#afb1c573d9bd098c76d858f476ef16f3f">Transform</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1Literal.html">Literal</a>&amp; literal) = 0;</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"><a class="line" href="classiceberg_1_1TransformFunction.html#abf4c9031fa1b0de214e6aa7ffc717c56"> 268</a></span> <a class="code hl_enumeration" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131">TransformType</a> <a class="code hl_function" href="classiceberg_1_1TransformFunction.html#abf4c9031fa1b0de214e6aa7ffc717c56">transform_type</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"><a class="line" href="classiceberg_1_1TransformFunction.html#a2475d34d0e7284cf007e2177a0aaa99a"> 270</a></span> <span class="keyword">const</span> std::shared_ptr&lt;Type&gt;&amp; <a class="code hl_function" href="classiceberg_1_1TransformFunction.html#a2475d34d0e7284cf007e2177a0aaa99a">source_type</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"><a class="line" href="classiceberg_1_1TransformFunction.html#a82841b58ce6380a7467bccf57e18e0d5"> 277</a></span> <span class="keyword">virtual</span> std::shared_ptr&lt;Type&gt; <a class="code hl_function" href="classiceberg_1_1TransformFunction.html#a82841b58ce6380a7467bccf57e18e0d5">ResultType</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> </div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1TransformFunction.html">TransformFunction</a>&amp; lhs, <span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1TransformFunction.html">TransformFunction</a>&amp; rhs) {</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <span class="keywordflow">return</span> lhs.<a class="code hl_function" href="classiceberg_1_1TransformFunction.html#a61917b6c790b711c1b160355e8593a0b">Equals</a>(rhs);</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> }</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> </div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <span class="keyword">protected</span>:</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"><a class="line" href="classiceberg_1_1TransformFunction.html#a61917b6c790b711c1b160355e8593a0b"> 285</a></span> [[nodiscard]] <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classiceberg_1_1TransformFunction.html#a61917b6c790b711c1b160355e8593a0b">Equals</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1TransformFunction.html">TransformFunction</a>&amp; other) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> </div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> <a class="code hl_enumeration" href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131">TransformType</a> transform_type_;</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> std::shared_ptr&lt;Type&gt; source_type_;</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span>};</div>
</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> </div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span>} <span class="comment">// namespace iceberg</span></div>
<div class="ttc" id="aclassiceberg_1_1Literal_html"><div class="ttname"><a href="classiceberg_1_1Literal.html">iceberg::Literal</a></div><div class="ttdoc">Literal is a literal value that is associated with a primitive type.</div><div class="ttdef"><b>Definition</b> literal.h:42</div></div>
<div class="ttc" id="aclassiceberg_1_1TransformFunction_html"><div class="ttname"><a href="classiceberg_1_1TransformFunction.html">iceberg::TransformFunction</a></div><div class="ttdoc">A transform function used for partitioning.</div><div class="ttdef"><b>Definition</b> transform.h:259</div></div>
<div class="ttc" id="aclassiceberg_1_1TransformFunction_html_a2475d34d0e7284cf007e2177a0aaa99a"><div class="ttname"><a href="classiceberg_1_1TransformFunction.html#a2475d34d0e7284cf007e2177a0aaa99a">iceberg::TransformFunction::source_type</a></div><div class="ttdeci">const std::shared_ptr&lt; Type &gt; &amp; source_type() const</div><div class="ttdoc">Get the source type of transform function.</div></div>
<div class="ttc" id="aclassiceberg_1_1TransformFunction_html_a61917b6c790b711c1b160355e8593a0b"><div class="ttname"><a href="classiceberg_1_1TransformFunction.html#a61917b6c790b711c1b160355e8593a0b">iceberg::TransformFunction::Equals</a></div><div class="ttdeci">virtual bool Equals(const TransformFunction &amp;other) const</div><div class="ttdoc">Compare the common properties of two transform functions for equality.</div></div>
<div class="ttc" id="aclassiceberg_1_1TransformFunction_html_a82841b58ce6380a7467bccf57e18e0d5"><div class="ttname"><a href="classiceberg_1_1TransformFunction.html#a82841b58ce6380a7467bccf57e18e0d5">iceberg::TransformFunction::ResultType</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Type &gt; ResultType() const =0</div><div class="ttdoc">Get the result type of transform function.</div></div>
<div class="ttc" id="aclassiceberg_1_1TransformFunction_html_abf4c9031fa1b0de214e6aa7ffc717c56"><div class="ttname"><a href="classiceberg_1_1TransformFunction.html#abf4c9031fa1b0de214e6aa7ffc717c56">iceberg::TransformFunction::transform_type</a></div><div class="ttdeci">TransformType transform_type() const</div><div class="ttdoc">Get the transform type.</div></div>
<div class="ttc" id="aclassiceberg_1_1TransformFunction_html_afb1c573d9bd098c76d858f476ef16f3f"><div class="ttname"><a href="classiceberg_1_1TransformFunction.html#afb1c573d9bd098c76d858f476ef16f3f">iceberg::TransformFunction::Transform</a></div><div class="ttdeci">virtual Result&lt; Literal &gt; Transform(const Literal &amp;literal)=0</div><div class="ttdoc">Transform an input Literal to a new Literal.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html"><div class="ttname"><a href="classiceberg_1_1Transform.html">iceberg::Transform</a></div><div class="ttdoc">Represents a transform used in partitioning or sorting in Iceberg.</div><div class="ttdef"><b>Definition</b> transform.h:90</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_a2779a1a98eadc543af8ff3ecb128215e"><div class="ttname"><a href="classiceberg_1_1Transform.html#a2779a1a98eadc543af8ff3ecb128215e">iceberg::Transform::ProjectStrict</a></div><div class="ttdeci">Result&lt; std::unique_ptr&lt; UnboundPredicate &gt; &gt; ProjectStrict(std::string_view name, const std::shared_ptr&lt; BoundPredicate &gt; &amp;predicate)</div><div class="ttdoc">Transforms a BoundPredicate to a strict predicate on the partition values produced by the transform.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_a33f12e4ac4082a9fa0c159c8fd84fa52"><div class="ttname"><a href="classiceberg_1_1Transform.html#a33f12e4ac4082a9fa0c159c8fd84fa52">iceberg::Transform::GeneratePartitionName</a></div><div class="ttdeci">Result&lt; std::string &gt; GeneratePartitionName(std::string_view source_name) const</div><div class="ttdoc">Generates a partition name for the transform.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_a4028210e3c0b3d5bfaed8bb07ef4dae6"><div class="ttname"><a href="classiceberg_1_1Transform.html#a4028210e3c0b3d5bfaed8bb07ef4dae6">iceberg::Transform::Bind</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; TransformFunction &gt; &gt; Bind(const std::shared_ptr&lt; Type &gt; &amp;source_type) const</div><div class="ttdoc">Binds this transform to a source type, returning a typed TransformFunction.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_a481866a199f724f447f8efc6cb2887c4"><div class="ttname"><a href="classiceberg_1_1Transform.html#a481866a199f724f447f8efc6cb2887c4">iceberg::Transform::Month</a></div><div class="ttdeci">static std::shared_ptr&lt; Transform &gt; Month()</div><div class="ttdoc">Creates a shared singleton instance of the Month transform.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_a51284bd3b85cd5951be730b2c887708e"><div class="ttname"><a href="classiceberg_1_1Transform.html#a51284bd3b85cd5951be730b2c887708e">iceberg::Transform::CanTransform</a></div><div class="ttdeci">bool CanTransform(const Type &amp;source_type) const</div><div class="ttdoc">Checks whether this function can be applied to the given Type.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_a59dba809ed7b418964c77f46301633eb"><div class="ttname"><a href="classiceberg_1_1Transform.html#a59dba809ed7b418964c77f46301633eb">iceberg::Transform::DedupName</a></div><div class="ttdeci">std::string DedupName() const</div><div class="ttdoc">Return the unique transform name to check if similar transforms for the same source field are added m...</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_a5ca5534f6d0509012ab3f8e05c752c69"><div class="ttname"><a href="classiceberg_1_1Transform.html#a5ca5534f6d0509012ab3f8e05c752c69">iceberg::Transform::operator==</a></div><div class="ttdeci">friend bool operator==(const Transform &amp;lhs, const Transform &amp;rhs)</div><div class="ttdoc">Equality comparison.</div><div class="ttdef"><b>Definition</b> transform.h:224</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_a75fa0cab329fd541fe1610f86b27f3e0"><div class="ttname"><a href="classiceberg_1_1Transform.html#a75fa0cab329fd541fe1610f86b27f3e0">iceberg::Transform::Bucket</a></div><div class="ttdeci">static std::shared_ptr&lt; Transform &gt; Bucket(int32_t num_buckets)</div><div class="ttdoc">Creates a shared instance of the Bucket transform.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_a85d2874ea64610dd61cd18806a8d5d6e"><div class="ttname"><a href="classiceberg_1_1Transform.html#a85d2874ea64610dd61cd18806a8d5d6e">iceberg::Transform::Hour</a></div><div class="ttdeci">static std::shared_ptr&lt; Transform &gt; Hour()</div><div class="ttdoc">Creates a shared singleton instance of the Hour transform.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_aa06c837c45e1c2dc3039fa69317fc560"><div class="ttname"><a href="classiceberg_1_1Transform.html#aa06c837c45e1c2dc3039fa69317fc560">iceberg::Transform::ResultType</a></div><div class="ttdeci">std::shared_ptr&lt; Type &gt; ResultType(const std::shared_ptr&lt; Type &gt; &amp;source_type) const</div><div class="ttdoc">Return the type produced by this transform for a source type.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_aa68423ff3f47d426a1e49a86cbf2c957"><div class="ttname"><a href="classiceberg_1_1Transform.html#aa68423ff3f47d426a1e49a86cbf2c957">iceberg::Transform::Year</a></div><div class="ttdeci">static std::shared_ptr&lt; Transform &gt; Year()</div><div class="ttdoc">Creates a shared singleton instance of the Year transform.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_ab7070f95d62c4e33ce6d187a9f562864"><div class="ttname"><a href="classiceberg_1_1Transform.html#ab7070f95d62c4e33ce6d187a9f562864">iceberg::Transform::Day</a></div><div class="ttdeci">static std::shared_ptr&lt; Transform &gt; Day()</div><div class="ttdoc">Creates a shared singleton instance of the Day transform.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_ab8dd9a9699f039f5bb4c0133687ec1a0"><div class="ttname"><a href="classiceberg_1_1Transform.html#ab8dd9a9699f039f5bb4c0133687ec1a0">iceberg::Transform::SatisfiesOrderOf</a></div><div class="ttdeci">bool SatisfiesOrderOf(const Transform &amp;other) const</div><div class="ttdoc">Whether ordering by this transform's result satisfies the ordering of another transform's result.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_abb9e7ab8d3004c70846226b7b948591a"><div class="ttname"><a href="classiceberg_1_1Transform.html#abb9e7ab8d3004c70846226b7b948591a">iceberg::Transform::Validate</a></div><div class="ttdeci">Status Validate(const std::shared_ptr&lt; Type &gt; &amp;source_type) const</div><div class="ttdoc">Validates whether this transform can bind to the given source type.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_ac0a1ac335d0816a473bd3e811fce9b25"><div class="ttname"><a href="classiceberg_1_1Transform.html#ac0a1ac335d0816a473bd3e811fce9b25">iceberg::Transform::Project</a></div><div class="ttdeci">Result&lt; std::unique_ptr&lt; UnboundPredicate &gt; &gt; Project(std::string_view name, const std::shared_ptr&lt; BoundPredicate &gt; &amp;predicate)</div><div class="ttdoc">Transforms a BoundPredicate to an inclusive predicate on the partition values produced by the transfo...</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_acd9d552e2d93ff31aae71e526e3bddfe"><div class="ttname"><a href="classiceberg_1_1Transform.html#acd9d552e2d93ff31aae71e526e3bddfe">iceberg::Transform::Identity</a></div><div class="ttdeci">static std::shared_ptr&lt; Transform &gt; Identity()</div><div class="ttdoc">Returns a shared singleton instance of the Identity transform.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_ad61eb145cbd7e604b2205b49ece4be2a"><div class="ttname"><a href="classiceberg_1_1Transform.html#ad61eb145cbd7e604b2205b49ece4be2a">iceberg::Transform::Truncate</a></div><div class="ttdeci">static std::shared_ptr&lt; Transform &gt; Truncate(int32_t width)</div><div class="ttdoc">Creates a shared instance of the Truncate transform.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_ad99a5da4d3c9f1f0f94e7288a7c68e92"><div class="ttname"><a href="classiceberg_1_1Transform.html#ad99a5da4d3c9f1f0f94e7288a7c68e92">iceberg::Transform::Void</a></div><div class="ttdeci">static std::shared_ptr&lt; Transform &gt; Void()</div><div class="ttdoc">Creates a shared singleton instance of the Void transform.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_af5c8b537969e36e0c2f35a5baf3f6d10"><div class="ttname"><a href="classiceberg_1_1Transform.html#af5c8b537969e36e0c2f35a5baf3f6d10">iceberg::Transform::ToString</a></div><div class="ttdeci">std::string ToString() const override</div><div class="ttdoc">Returns a string representation of this transform (e.g., &quot;bucket[16]&quot;).</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_afb27bac92bade0469d6f5ed436ac28d0"><div class="ttname"><a href="classiceberg_1_1Transform.html#afb27bac92bade0469d6f5ed436ac28d0">iceberg::Transform::PreservesOrder</a></div><div class="ttdeci">bool PreservesOrder() const</div><div class="ttdoc">Whether the transform preserves the order of values (is monotonic).</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_afbed008e01be5d67004e7aaa24fb75f2"><div class="ttname"><a href="classiceberg_1_1Transform.html#afbed008e01be5d67004e7aaa24fb75f2">iceberg::Transform::transform_type</a></div><div class="ttdeci">TransformType transform_type() const</div><div class="ttdoc">Returns the transform type.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transform_html_afd2e4a6210b3f51f8ea8b44c84428988"><div class="ttname"><a href="classiceberg_1_1Transform.html#afd2e4a6210b3f51f8ea8b44c84428988">iceberg::Transform::ToHumanString</a></div><div class="ttdeci">Result&lt; std::string &gt; ToHumanString(const Literal &amp;value)</div><div class="ttdoc">Returns a human-readable string representation of a transformed value.</div></div>
<div class="ttc" id="aclassiceberg_1_1Type_html"><div class="ttname"><a href="classiceberg_1_1Type.html">iceberg::Type</a></div><div class="ttdoc">Interface for a data type for a field.</div><div class="ttdef"><b>Definition</b> type.h:44</div></div>
<div class="ttc" id="aclassiceberg_1_1util_1_1Formattable_html"><div class="ttname"><a href="classiceberg_1_1util_1_1Formattable.html">iceberg::util::Formattable</a></div><div class="ttdoc">Interface for objects that can be formatted via std::format.</div><div class="ttdef"><b>Definition</b> formattable.h:36</div></div>
<div class="ttc" id="aformattable_8h_html"><div class="ttname"><a href="formattable_8h.html">formattable.h</a></div></div>
<div class="ttc" id="aiceberg__export_8h_html"><div class="ttname"><a href="iceberg__export_8h.html">iceberg_export.h</a></div><div class="ttdoc">Define symbol visibility macros for core Iceberg APIs.</div></div>
<div class="ttc" id="aliteral_8h_html"><div class="ttname"><a href="literal_8h.html">literal.h</a></div><div class="ttdoc">Define typed literal values used by expressions.</div></div>
<div class="ttc" id="anamespaceiceberg_html"><div class="ttname"><a href="namespaceiceberg.html">iceberg</a></div><div class="ttdoc">Core Apache Iceberg C++ APIs.</div><div class="ttdef"><b>Definition</b> arrow_io_util.h:33</div></div>
<div class="ttc" id="anamespaceiceberg_html_a01618a62c6221ea8682246168e74a8a3"><div class="ttname"><a href="namespaceiceberg.html#a01618a62c6221ea8682246168e74a8a3">iceberg::TransformFromString</a></div><div class="ttdeci">ICEBERG_EXPORT Result&lt; std::shared_ptr&lt; Transform &gt; &gt; TransformFromString(std::string_view transform_str)</div><div class="ttdoc">Converts a string representation of a transform into a Transform instance.</div></div>
<div class="ttc" id="anamespaceiceberg_html_a165e3b4437918cd461bfabe9fe5d3a91"><div class="ttname"><a href="namespaceiceberg.html#a165e3b4437918cd461bfabe9fe5d3a91">iceberg::TransformTypeToString</a></div><div class="ttdeci">ICEBERG_EXPORT constexpr std::string_view TransformTypeToString(TransformType type)</div><div class="ttdoc">Get the relative transform name.</div><div class="ttdef"><b>Definition</b> transform.h:62</div></div>
<div class="ttc" id="anamespaceiceberg_html_a78b299cfdfb0b9631ca6fc520bd1b131"><div class="ttname"><a href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131">iceberg::TransformType</a></div><div class="ttdeci">TransformType</div><div class="ttdoc">Transform types used for partitioning.</div><div class="ttdef"><b>Definition</b> transform.h:39</div></div>
<div class="ttc" id="anamespaceiceberg_html_a78b299cfdfb0b9631ca6fc520bd1b131a0226618c5258d9e1e71a400e0735314d"><div class="ttname"><a href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a0226618c5258d9e1e71a400e0735314d">iceberg::TransformType::kBucket</a></div><div class="ttdeci">@ kBucket</div><div class="ttdoc">Hash of value, mod N</div></div>
<div class="ttc" id="anamespaceiceberg_html_a78b299cfdfb0b9631ca6fc520bd1b131a25c2dc47991b3df171ed5192bcf70390"><div class="ttname"><a href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a25c2dc47991b3df171ed5192bcf70390">iceberg::TransformType::kUnknown</a></div><div class="ttdeci">@ kUnknown</div></div>
<div class="ttc" id="anamespaceiceberg_html_a78b299cfdfb0b9631ca6fc520bd1b131a6393f5467404a20b7754c5032eb69bfd"><div class="ttname"><a href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a6393f5467404a20b7754c5032eb69bfd">iceberg::TransformType::kTruncate</a></div><div class="ttdeci">@ kTruncate</div><div class="ttdoc">Value truncated to width W</div></div>
<div class="ttc" id="anamespaceiceberg_html_a78b299cfdfb0b9631ca6fc520bd1b131a818152297c27d28aa4c1341db214c84b"><div class="ttname"><a href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a818152297c27d28aa4c1341db214c84b">iceberg::TransformType::kHour</a></div><div class="ttdeci">@ kHour</div><div class="ttdoc">Extract a timestamp hour, as hours from 1970-01-01 00:00:00.</div></div>
<div class="ttc" id="anamespaceiceberg_html_a78b299cfdfb0b9631ca6fc520bd1b131a8f642cb82e8f76aabc6e3ff8d1dd5119"><div class="ttname"><a href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131a8f642cb82e8f76aabc6e3ff8d1dd5119">iceberg::TransformType::kDay</a></div><div class="ttdeci">@ kDay</div><div class="ttdoc">Extract a date or timestamp day, as days from 1970-01-01.</div></div>
<div class="ttc" id="anamespaceiceberg_html_a78b299cfdfb0b9631ca6fc520bd1b131abc4d3195c11185792391cc43d779d01d"><div class="ttname"><a href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131abc4d3195c11185792391cc43d779d01d">iceberg::TransformType::kMonth</a></div><div class="ttdeci">@ kMonth</div><div class="ttdoc">Extract a date or timestamp month, as months from 1970-01.</div></div>
<div class="ttc" id="anamespaceiceberg_html_a78b299cfdfb0b9631ca6fc520bd1b131abd383557eb16fc23863cf3fc70b77ab3"><div class="ttname"><a href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131abd383557eb16fc23863cf3fc70b77ab3">iceberg::TransformType::kVoid</a></div><div class="ttdeci">@ kVoid</div><div class="ttdoc">Always produces null</div></div>
<div class="ttc" id="anamespaceiceberg_html_a78b299cfdfb0b9631ca6fc520bd1b131ac7c5a181d7cc5f5733d84dd9bd778967"><div class="ttname"><a href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131ac7c5a181d7cc5f5733d84dd9bd778967">iceberg::TransformType::kIdentity</a></div><div class="ttdeci">@ kIdentity</div><div class="ttdoc">Equal to source value, unmodified.</div></div>
<div class="ttc" id="anamespaceiceberg_html_a78b299cfdfb0b9631ca6fc520bd1b131ae5f29bf7f42ebe083f06960f4fbe6edc"><div class="ttname"><a href="namespaceiceberg.html#a78b299cfdfb0b9631ca6fc520bd1b131ae5f29bf7f42ebe083f06960f4fbe6edc">iceberg::TransformType::kYear</a></div><div class="ttdeci">@ kYear</div><div class="ttdoc">Extract a date or timestamp year, as years from 1970.</div></div>
<div class="ttc" id="anamespaceiceberg_html_a9d5594e371beb516b0120e07e69d3af6"><div class="ttname"><a href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">iceberg::Result</a></div><div class="ttdeci">std::expected&lt; T, E &gt; Result</div><div class="ttdoc">Result alias.</div><div class="ttdef"><b>Definition</b> result.h:88</div></div>
<div class="ttc" id="aresult_8h_html"><div class="ttname"><a href="result_8h.html">result.h</a></div><div class="ttdoc">Define Result, Status, and error helpers.</div></div>
<div class="ttc" id="atype__fwd_8h_html"><div class="ttname"><a href="type__fwd_8h.html">type_fwd.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>