| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <meta name="generator" content="Doxygen 1.8.6"/> |
| <title>Impala: be/src/testutil/test-udfs.cc 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="navtree.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="resize.js"></script> |
| <script type="text/javascript" src="navtree.js"></script> |
| <script type="text/javascript"> |
| $(document).ready(initResizable); |
| $(window).load(resizeHeight); |
| </script> |
| <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="search/search.js"></script> |
| <script type="text/javascript"> |
| $(document).ready(function() { searchBox.OnSelectItem(0); }); |
| </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 style="height: 56px;"> |
| <td style="padding-left: 0.5em;"> |
| <div id="projectname">Impala |
| </div> |
| <div id="projectbrief">Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| <!-- end header part --> |
| <!-- Generated by Doxygen 1.8.6 --> |
| <script type="text/javascript"> |
| var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| </script> |
| <div id="navrow1" class="tabs"> |
| <ul class="tablist"> |
| <li><a href="index.html"><span>Main Page</span></a></li> |
| <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
| <li><a href="annotated.html"><span>Classes</span></a></li> |
| <li class="current"><a href="files.html"><span>Files</span></a></li> |
| <li> |
| <div id="MSearchBox" class="MSearchBoxInactive"> |
| <span class="left"> |
| <img id="MSearchSelect" src="search/mag_sel.png" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| alt=""/> |
| <input type="text" id="MSearchField" value="Search" accesskey="S" |
| onfocus="searchBox.OnSearchFieldFocus(true)" |
| onblur="searchBox.OnSearchFieldFocus(false)" |
| onkeyup="searchBox.OnSearchFieldChange(event)"/> |
| </span><span class="right"> |
| <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> |
| </span> |
| </div> |
| </li> |
| </ul> |
| </div> |
| <div id="navrow2" class="tabs2"> |
| <ul class="tablist"> |
| <li><a href="files.html"><span>File List</span></a></li> |
| <li><a href="globals.html"><span>File Members</span></a></li> |
| </ul> |
| </div> |
| </div><!-- top --> |
| <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| <div id="nav-tree"> |
| <div id="nav-tree-contents"> |
| <div id="nav-sync" class="sync"></div> |
| </div> |
| </div> |
| <div id="splitbar" style="-moz-user-select:none;" |
| class="ui-resizable-handle"> |
| </div> |
| </div> |
| <script type="text/javascript"> |
| $(document).ready(function(){initNavTree('test-udfs_8cc_source.html','');}); |
| </script> |
| <div id="doc-content"> |
| <!-- window showing the filter options --> |
| <div id="MSearchSelectWindow" |
| onmouseover="return searchBox.OnSearchSelectShow()" |
| onmouseout="return searchBox.OnSearchSelectHide()" |
| onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark"> </span>Macros</a></div> |
| |
| <!-- iframe showing the search results (closed by default) --> |
| <div id="MSearchResultsWindow"> |
| <iframe src="javascript:void(0)" frameborder="0" |
| name="MSearchResults" id="MSearchResults"> |
| </iframe> |
| </div> |
| |
| <div class="header"> |
| <div class="headertitle"> |
| <div class="title">test-udfs.cc</div> </div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="test-udfs_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Copyright 2012 Cloudera Inc.</span></div> |
| <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">//</span></div> |
| <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// Licensed under the Apache License, Version 2.0 (the "License");</span></div> |
| <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// you may not use this file except in compliance with the License.</span></div> |
| <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// You may obtain a copy of the License at</span></div> |
| <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">//</span></div> |
| <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// http://www.apache.org/licenses/LICENSE-2.0</span></div> |
| <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div> |
| <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// Unless required by applicable law or agreed to in writing, software</span></div> |
| <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// distributed under the License is distributed on an "AS IS" BASIS,</span></div> |
| <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div> |
| <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// See the License for the specific language governing permissions and</span></div> |
| <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// limitations under the License.</span></div> |
| <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div> |
| <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <<a class="code" href="udf_8h.html">udf/udf.h</a>></span></div> |
| <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div> |
| <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">using namespace </span>impala_udf;</div> |
| <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div> |
| <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">// These functions are intended to test the "glue" that runs UDFs. Thus, the UDFs</span></div> |
| <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">// themselves are kept very simple.</span></div> |
| <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> |
| <div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a8d659298a3b10a3ee562e3053bb0844d"> 22</a></span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a> <a class="code" href="test-udfs_8cc.html#a8d659298a3b10a3ee562e3053bb0844d">Identity</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a>& arg) { <span class="keywordflow">return</span> arg; }</div> |
| <div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div> |
| <div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a9805eb89f404c82a93c06884ec059a44"> 24</a></span> <a class="code" href="structimpala__udf_1_1TinyIntVal.html">TinyIntVal</a> <a class="code" href="test-udfs_8cc.html#a8d659298a3b10a3ee562e3053bb0844d">Identity</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1TinyIntVal.html">TinyIntVal</a>& arg) { <span class="keywordflow">return</span> arg; }</div> |
| <div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div> |
| <div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a5776401efeb4b168076784f9bda84aad"> 26</a></span> <a class="code" href="structimpala__udf_1_1SmallIntVal.html">SmallIntVal</a> <a class="code" href="test-udfs_8cc.html#a8d659298a3b10a3ee562e3053bb0844d">Identity</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1SmallIntVal.html">SmallIntVal</a>& arg) { <span class="keywordflow">return</span> arg; }</div> |
| <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div> |
| <div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a559801fbdf8fc4de577cb799028bb386"> 28</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#a8d659298a3b10a3ee562e3053bb0844d">Identity</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& arg) { <span class="keywordflow">return</span> arg; }</div> |
| <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> |
| <div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#ac48852a9fa8bfb150fd87a767a85666f"> 30</a></span> <a class="code" href="structimpala__udf_1_1BigIntVal.html">BigIntVal</a> <a class="code" href="test-udfs_8cc.html#a8d659298a3b10a3ee562e3053bb0844d">Identity</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1BigIntVal.html">BigIntVal</a>& arg) { <span class="keywordflow">return</span> arg; }</div> |
| <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div> |
| <div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a59fab82d7d39b56757dac25227901707"> 32</a></span> <a class="code" href="structimpala__udf_1_1FloatVal.html">FloatVal</a> <a class="code" href="test-udfs_8cc.html#a8d659298a3b10a3ee562e3053bb0844d">Identity</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1FloatVal.html">FloatVal</a>& arg) { <span class="keywordflow">return</span> arg; }</div> |
| <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div> |
| <div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a9a61f9f5dd3fd12b428b01cb74b4a363"> 34</a></span> <a class="code" href="structimpala__udf_1_1DoubleVal.html">DoubleVal</a> <a class="code" href="test-udfs_8cc.html#a8d659298a3b10a3ee562e3053bb0844d">Identity</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1DoubleVal.html">DoubleVal</a>& arg) { <span class="keywordflow">return</span> arg; }</div> |
| <div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div> |
| <div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a383163c4cda3d57d3868aa97b96410a0"> 36</a></span> <a class="code" href="structimpala__udf_1_1StringVal.html">StringVal</a> <a class="code" href="test-udfs_8cc.html#a8d659298a3b10a3ee562e3053bb0844d">Identity</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1StringVal.html">StringVal</a>& arg) { <span class="keywordflow">return</span> arg; }</div> |
| <div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div> |
| <div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#aa678e3c64128e60438278b62ad57dc0e"> 38</a></span> <a class="code" href="structimpala__udf_1_1TimestampVal.html">TimestampVal</a> <a class="code" href="test-udfs_8cc.html#a8d659298a3b10a3ee562e3053bb0844d">Identity</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1TimestampVal.html">TimestampVal</a>& arg) { <span class="keywordflow">return</span> arg; }</div> |
| <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div> |
| <div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a793610c29dc72836f76898809692840f"> 40</a></span> <a class="code" href="structimpala__udf_1_1DecimalVal.html">DecimalVal</a> <a class="code" href="test-udfs_8cc.html#a8d659298a3b10a3ee562e3053bb0844d">Identity</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1DecimalVal.html">DecimalVal</a>& arg) { <span class="keywordflow">return</span> arg; }</div> |
| <div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div> |
| <div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#af060a39263d76fed188d9e7390a08cdc"> 42</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#af060a39263d76fed188d9e7390a08cdc">AllTypes</a>(</div> |
| <div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1StringVal.html">StringVal</a>& <span class="keywordtype">string</span>, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a>& <span class="keywordtype">boolean</span>,</div> |
| <div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1TinyIntVal.html">TinyIntVal</a>& tiny_int, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1SmallIntVal.html">SmallIntVal</a>& small_int, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& int_val,</div> |
| <div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1BigIntVal.html">BigIntVal</a>& big_int, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1FloatVal.html">FloatVal</a>& float_val, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1DoubleVal.html">DoubleVal</a>& double_val,</div> |
| <div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1DecimalVal.html">DecimalVal</a>& decimal) {</div> |
| <div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">int</span> result = <span class="keywordtype">string</span>.len + <span class="keywordtype">boolean</span>.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + tiny_int.<a class="code" href="structimpala__udf_1_1TinyIntVal.html#a54fdc426de0a068b37d7b061cccc3c40">val</a> + small_int.<a class="code" href="structimpala__udf_1_1SmallIntVal.html#a7cdc8edc6fbf61cececddeb074c0a7b0">val</a> + int_val.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a></div> |
| <div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  + big_int.<a class="code" href="structimpala__udf_1_1BigIntVal.html#a8abd150f41ae695ad81c16eca21c1031">val</a> + <span class="keyword">static_cast<</span>int64_t<span class="keyword">></span>(float_val.<a class="code" href="structimpala__udf_1_1FloatVal.html#a2730b7f917dd586e02668ee76f51b5f9">val</a>)</div> |
| <div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  + static_cast<int64_t>(double_val.<a class="code" href="structimpala__udf_1_1DoubleVal.html#ab3bafd0d4a8fd509fad59fe1f4bcfc98">val</a>) + decimal.<a class="code" href="structimpala__udf_1_1DecimalVal.html#a328187a144101e220b96f3699a663642">val4</a>;</div> |
| <div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>(result);</div> |
| <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> }</div> |
| <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div> |
| <div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#abb60386c4b25a262c4ea87c1058e627a"> 53</a></span> <a class="code" href="structimpala__udf_1_1StringVal.html">StringVal</a> <a class="code" href="test-udfs_8cc.html#abb60386c4b25a262c4ea87c1058e627a">NoArgs</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context) {</div> |
| <div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">const</span> <span class="keywordtype">char</span>* result = <span class="stringliteral">"string"</span>;</div> |
| <div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="structimpala__udf_1_1StringVal.html">StringVal</a> ret(context, strlen(result));</div> |
| <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">// TODO: llvm 3.3 seems to have a bug if we use memcpy here making</span></div> |
| <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="comment">// the IR udf crash. This is fixed in 3.3.1. Fix this when we upgrade.</span></div> |
| <div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="comment">//memcpy(ret.ptr, result, strlen(result));</span></div> |
| <div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="comment">// IMPALA-775</span></div> |
| <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < strlen(result); ++i) ret.<a class="code" href="structimpala__udf_1_1StringVal.html#a1152442079d2471ec396076f37bf6c35">ptr</a>[i] = result[i];</div> |
| <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">return</span> ret;</div> |
| <div class="line"><a name="l00062"></a><span class="lineno"> 62</span> }</div> |
| <div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div> |
| <div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#af9c60b1e20fed20c46fc8eb1190bd761"> 64</a></span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a> <a class="code" href="test-udfs_8cc.html#af9c60b1e20fed20c46fc8eb1190bd761">VarAnd</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keywordtype">int</span> n, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a>* args) {</div> |
| <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">bool</span> result = <span class="keyword">true</span>;</div> |
| <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < n; ++i) {</div> |
| <div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">if</span> (args[i].is_null) <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a>(<span class="keyword">false</span>);</div> |
| <div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  result &= args[i].<a class="code" href="structimpala__udf_1_1BooleanVal.html#a1be16b2589c9bcf698524ce08c6c7858">val</a>;</div> |
| <div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  }</div> |
| <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a>(result);</div> |
| <div class="line"><a name="l00071"></a><span class="lineno"> 71</span> }</div> |
| <div class="line"><a name="l00072"></a><span class="lineno"> 72</span> </div> |
| <div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a2cf05f7c3824052e92fef8af52fcd895"> 73</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#a2cf05f7c3824052e92fef8af52fcd895">VarSum</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keywordtype">int</span> n, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>* args) {</div> |
| <div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">int</span> result = 0;</div> |
| <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordtype">bool</span> is_null = <span class="keyword">true</span>;</div> |
| <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < n; ++i) {</div> |
| <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">if</span> (args[i].is_null) <span class="keywordflow">continue</span>;</div> |
| <div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  result += args[i].<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a>;</div> |
| <div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  is_null = <span class="keyword">false</span>;</div> |
| <div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div> |
| <div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">if</span> (is_null) <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html#aa55876d07581e316eb5839d522dcab53">IntVal::null</a>();</div> |
| <div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>(result);</div> |
| <div class="line"><a name="l00083"></a><span class="lineno"> 83</span> }</div> |
| <div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div> |
| <div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a5339646fdd1eda60cef1a337142af7c3"> 85</a></span> <a class="code" href="structimpala__udf_1_1DoubleVal.html">DoubleVal</a> <a class="code" href="test-udfs_8cc.html#a2cf05f7c3824052e92fef8af52fcd895">VarSum</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keywordtype">int</span> n, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1DoubleVal.html">DoubleVal</a>* args) {</div> |
| <div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">double</span> result = 0;</div> |
| <div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">bool</span> is_null = <span class="keyword">true</span>;</div> |
| <div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < n; ++i) {</div> |
| <div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">if</span> (args[i].is_null) <span class="keywordflow">continue</span>;</div> |
| <div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  result += args[i].<a class="code" href="structimpala__udf_1_1DoubleVal.html#ab3bafd0d4a8fd509fad59fe1f4bcfc98">val</a>;</div> |
| <div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  is_null = <span class="keyword">false</span>;</div> |
| <div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  }</div> |
| <div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">if</span> (is_null) <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1DoubleVal.html#adf467cc7bb66d03c9833cf6e8feec48f">DoubleVal::null</a>();</div> |
| <div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1DoubleVal.html">DoubleVal</a>(result);</div> |
| <div class="line"><a name="l00095"></a><span class="lineno"> 95</span> }</div> |
| <div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div> |
| <div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment">// TODO: have this return a StringVal (make sure not to use functions defined in other</span></div> |
| <div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment">// compilation units, or change how this is built).</span></div> |
| <div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a0a7a8109cfce752865b3482b1f837427"> 99</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#a2cf05f7c3824052e92fef8af52fcd895">VarSum</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keywordtype">int</span> n, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1StringVal.html">StringVal</a>* args) {</div> |
| <div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">int</span> total_len = 0;</div> |
| <div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < n; ++i) {</div> |
| <div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">if</span> (args[i].is_null) <span class="keywordflow">continue</span>;</div> |
| <div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  total_len += args[i].<a class="code" href="structimpala__udf_1_1StringVal.html#a72a872d5acebca872db6bd37eb4ae184">len</a>;</div> |
| <div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  }</div> |
| <div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>(total_len);</div> |
| <div class="line"><a name="l00106"></a><span class="lineno"> 106</span> }</div> |
| <div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div> |
| <div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="comment">// Decimal4Value... => Decimal8Value</span></div> |
| <div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#af42ec6a8e9c9d94bf947777355209502"> 109</a></span> <a class="code" href="structimpala__udf_1_1DecimalVal.html">DecimalVal</a> <a class="code" href="test-udfs_8cc.html#a2cf05f7c3824052e92fef8af52fcd895">VarSum</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keywordtype">int</span> n, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1DecimalVal.html">DecimalVal</a>* args) {</div> |
| <div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  int64_t result = 0;</div> |
| <div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordtype">bool</span> is_null = <span class="keyword">true</span>;</div> |
| <div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < n; ++i) {</div> |
| <div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1FunctionContext_1_1TypeDesc.html">FunctionContext::TypeDesc</a>* desc = context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a982cd2abfd09cd038eb51fbc3d89366c">GetArgType</a>(i);</div> |
| <div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">if</span> (desc-><a class="code" href="structimpala__udf_1_1FunctionContext_1_1TypeDesc.html#a881ee51ecdb40ac7469151128a9193d7">type</a> != <a class="code" href="classimpala__udf_1_1FunctionContext.html#a0802c4491e244b8b13d4ff8461e960ffa1dd85d0dc61480f9f01982790a3819f4">FunctionContext::TYPE_DECIMAL</a> || desc-><a class="code" href="structimpala__udf_1_1FunctionContext_1_1TypeDesc.html#a4e972765ff3d2151c14349c0e1fb458f">precision</a> > 9) {</div> |
| <div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aa29186643c6b873f95e361b74e54a715">SetError</a>(<span class="stringliteral">"VarSum() only accepts Decimal4Value (precison <= 9)"</span>);</div> |
| <div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1DecimalVal.html#a11ab8f69ae7ec0d13d03681a4715be20">DecimalVal::null</a>();</div> |
| <div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  }</div> |
| <div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">if</span> (args[i].is_null) <span class="keywordflow">continue</span>;</div> |
| <div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  result += args[i].<a class="code" href="structimpala__udf_1_1DecimalVal.html#a328187a144101e220b96f3699a663642">val4</a>;</div> |
| <div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  is_null = <span class="keyword">false</span>;</div> |
| <div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  }</div> |
| <div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keywordflow">if</span> (is_null) <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1DecimalVal.html#a11ab8f69ae7ec0d13d03681a4715be20">DecimalVal::null</a>();</div> |
| <div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1DecimalVal.html">DecimalVal</a>(result);</div> |
| <div class="line"><a name="l00124"></a><span class="lineno"> 124</span> }</div> |
| <div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div> |
| <div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#afb94281c45ada241ff513998d90a79d3"> 126</a></span> <a class="code" href="structimpala__udf_1_1DoubleVal.html">DoubleVal</a> <a class="code" href="test-udfs_8cc.html#afb94281c45ada241ff513998d90a79d3">VarSumMultiply</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context,</div> |
| <div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1DoubleVal.html">DoubleVal</a>& d, <span class="keywordtype">int</span> n, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>* args) {</div> |
| <div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keywordflow">if</span> (d.<a class="code" href="structimpala__udf_1_1AnyVal.html#aded62c6b250c62814c94271856b06cbe">is_null</a>) <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1DoubleVal.html#adf467cc7bb66d03c9833cf6e8feec48f">DoubleVal::null</a>();</div> |
| <div class="line"><a name="l00129"></a><span class="lineno"> 129</span> </div> |
| <div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordtype">int</span> result = 0;</div> |
| <div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordtype">bool</span> is_null = <span class="keyword">true</span>;</div> |
| <div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < n; ++i) {</div> |
| <div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordflow">if</span> (args[i].is_null) <span class="keywordflow">continue</span>;</div> |
| <div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  result += args[i].<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a>;</div> |
| <div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  is_null = <span class="keyword">false</span>;</div> |
| <div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div> |
| <div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">if</span> (is_null) <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1DoubleVal.html#adf467cc7bb66d03c9833cf6e8feec48f">DoubleVal::null</a>();</div> |
| <div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1DoubleVal.html">DoubleVal</a>(result * d.<a class="code" href="structimpala__udf_1_1DoubleVal.html#ab3bafd0d4a8fd509fad59fe1f4bcfc98">val</a>);</div> |
| <div class="line"><a name="l00139"></a><span class="lineno"> 139</span> }</div> |
| <div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div> |
| <div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a4bdbf4535696dea306a1f752e97e10c7"> 141</a></span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a> <a class="code" href="test-udfs_8cc.html#a4bdbf4535696dea306a1f752e97e10c7">TestError</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context) {</div> |
| <div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aa29186643c6b873f95e361b74e54a715">SetError</a>(<span class="stringliteral">"test UDF error"</span>);</div> |
| <div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aa29186643c6b873f95e361b74e54a715">SetError</a>(<span class="stringliteral">"this shouldn't show up"</span>);</div> |
| <div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a>(<span class="keyword">false</span>);</div> |
| <div class="line"><a name="l00145"></a><span class="lineno"> 145</span> }</div> |
| <div class="line"><a name="l00146"></a><span class="lineno"> 146</span> </div> |
| <div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a4e114579b106360c9689677437a783ab"> 147</a></span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a> <a class="code" href="test-udfs_8cc.html#a4e114579b106360c9689677437a783ab">TestWarnings</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context) {</div> |
| <div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a228cf1a119cfe039dbfb1646fa2566f7">AddWarning</a>(<span class="stringliteral">"test UDF warning 1"</span>);</div> |
| <div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a228cf1a119cfe039dbfb1646fa2566f7">AddWarning</a>(<span class="stringliteral">"test UDF warning 2"</span>);</div> |
| <div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a>(<span class="keyword">false</span>);</div> |
| <div class="line"><a name="l00151"></a><span class="lineno"> 151</span> }</div> |
| <div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div> |
| <div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment">// Dummy functions to test ddl.</span></div> |
| <div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#ae3dd41270e5cefbf03647abbe509340d"> 154</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#ae3dd41270e5cefbf03647abbe509340d">Fn</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>*) { <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html#aa55876d07581e316eb5839d522dcab53">IntVal::null</a>(); }</div> |
| <div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#aa472670d5c9d545f7970805ae05e2792"> 155</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#ae3dd41270e5cefbf03647abbe509340d">Fn</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>&) { <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html#aa55876d07581e316eb5839d522dcab53">IntVal::null</a>(); }</div> |
| <div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a864573ef0ce25d42cfff14c800f5a178"> 156</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#ae3dd41270e5cefbf03647abbe509340d">Fn</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>&, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1StringVal.html">StringVal</a>&) { <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html#aa55876d07581e316eb5839d522dcab53">IntVal::null</a>(); }</div> |
| <div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a07afbd999b7599f5a29241e3158162ab"> 157</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#ae3dd41270e5cefbf03647abbe509340d">Fn</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1StringVal.html">StringVal</a>&, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>&) { <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html#aa55876d07581e316eb5839d522dcab53">IntVal::null</a>(); }</div> |
| <div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a620e53596222bf03dc7e58475e593b70"> 158</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#a620e53596222bf03dc7e58475e593b70">Fn2</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>&) { <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html#aa55876d07581e316eb5839d522dcab53">IntVal::null</a>(); }</div> |
| <div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a0a19f9d860f1f3e6145a99a29330db2c"> 159</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#a620e53596222bf03dc7e58475e593b70">Fn2</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>*, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>&, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1StringVal.html">StringVal</a>&) { <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html#aa55876d07581e316eb5839d522dcab53">IntVal::null</a>(); }</div> |
| <div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div> |
| <div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#ad3599e3a68620968547d14cbfcd4a860"> 161</a></span> <a class="code" href="structimpala__udf_1_1TimestampVal.html">TimestampVal</a> <a class="code" href="test-udfs_8cc.html#ad3599e3a68620968547d14cbfcd4a860">ConstantTimestamp</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context) {</div> |
| <div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1TimestampVal.html">TimestampVal</a>(2456575, 1); <span class="comment">// 2013-10-09 00:00:00.000000001</span></div> |
| <div class="line"><a name="l00163"></a><span class="lineno"> 163</span> }</div> |
| <div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div> |
| <div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#aa666c9356e03dbb941198ba520c14979"> 165</a></span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a> <a class="code" href="test-udfs_8cc.html#aa666c9356e03dbb941198ba520c14979">ValidateArgType</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1StringVal.html">StringVal</a>& dummy) {</div> |
| <div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">if</span> (context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a982cd2abfd09cd038eb51fbc3d89366c">GetArgType</a>(0)-><a class="code" href="structimpala__udf_1_1FunctionContext_1_1TypeDesc.html#a881ee51ecdb40ac7469151128a9193d7">type</a> != <a class="code" href="classimpala__udf_1_1FunctionContext.html#a0802c4491e244b8b13d4ff8461e960ffad04b24e07ab4c7fb86cbcd80249bcd55">FunctionContext::TYPE_STRING</a>) {</div> |
| <div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a>(<span class="keyword">false</span>);</div> |
| <div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  }</div> |
| <div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  <span class="keywordflow">if</span> (context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a982cd2abfd09cd038eb51fbc3d89366c">GetArgType</a>(-1) != NULL) <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a>(<span class="keyword">false</span>);</div> |
| <div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordflow">if</span> (context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a982cd2abfd09cd038eb51fbc3d89366c">GetArgType</a>(1) != NULL) <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a>(<span class="keyword">false</span>);</div> |
| <div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a>(<span class="keyword">true</span>);</div> |
| <div class="line"><a name="l00172"></a><span class="lineno"> 172</span> }</div> |
| <div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div> |
| <div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="comment">// Count UDF: counts the number of input rows per thread-local FunctionContext</span></div> |
| <div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#acbe94b96830ee0c2f44ed2eace26ce2a"> 175</a></span> <span class="keywordtype">void</span> <a class="code" href="test-udfs_8cc.html#acbe94b96830ee0c2f44ed2eace26ce2a">CountPrepare</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffc">FunctionContext::FunctionStateScope</a> scope) {</div> |
| <div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">if</span> (scope == <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>) {</div> |
| <div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="classuint64__t.html">uint64_t</a>* state = <span class="keyword">reinterpret_cast<</span><a class="code" href="classuint64__t.html">uint64_t</a>*<span class="keyword">></span>(context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a24a7e63aa708e54ea3c8c9572a00ede2">Allocate</a>(<span class="keyword">sizeof</span>(<a class="code" href="classuint64__t.html">uint64_t</a>)));</div> |
| <div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  *state = 0;</div> |
| <div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aba396e394b1f685d4453f6afb37959dc">SetFunctionState</a>(scope, state);</div> |
| <div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  }</div> |
| <div class="line"><a name="l00181"></a><span class="lineno"> 181</span> }</div> |
| <div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div> |
| <div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a4736d6eee7eef91d6e7807880f0ba64c"> 183</a></span> <a class="code" href="structimpala__udf_1_1BigIntVal.html">BigIntVal</a> <a class="code" href="test-udfs_8cc.html#a4736d6eee7eef91d6e7807880f0ba64c">Count</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context) {</div> |
| <div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <a class="code" href="classuint64__t.html">uint64_t</a>* state = <span class="keyword">reinterpret_cast<</span><a class="code" href="classuint64__t.html">uint64_t</a>*<span class="keyword">></span>(</div> |
| <div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a9f06f92e1567f5de30969ec17bea757d">GetFunctionState</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>));</div> |
| <div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1BigIntVal.html">BigIntVal</a>(++(*state));</div> |
| <div class="line"><a name="l00187"></a><span class="lineno"> 187</span> }</div> |
| <div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div> |
| <div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a6576a232233cd5548e1fa79cc3bad367"> 189</a></span> <span class="keywordtype">void</span> <a class="code" href="test-udfs_8cc.html#a6576a232233cd5548e1fa79cc3bad367">CountClose</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffc">FunctionContext::FunctionStateScope</a> scope) {</div> |
| <div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keywordflow">if</span> (scope == <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>) {</div> |
| <div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordtype">void</span>* state = context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a9f06f92e1567f5de30969ec17bea757d">GetFunctionState</a>(scope);</div> |
| <div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a14904de2d63cac14b1a1ef09b0653a14">Free</a>(reinterpret_cast<uint8_t*>(state));</div> |
| <div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aba396e394b1f685d4453f6afb37959dc">SetFunctionState</a>(scope, NULL);</div> |
| <div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  }</div> |
| <div class="line"><a name="l00195"></a><span class="lineno"> 195</span> }</div> |
| <div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div> |
| <div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="comment">// ConstantArg UDF: returns the first argument if it's constant, otherwise returns NULL.</span></div> |
| <div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a222101ad1dd6ee9a350943bb690b464b"> 198</a></span> <span class="keywordtype">void</span> <a class="code" href="test-udfs_8cc.html#a222101ad1dd6ee9a350943bb690b464b">ConstantArgPrepare</a>(</div> |
| <div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffc">FunctionContext::FunctionStateScope</a> scope) {</div> |
| <div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">if</span> (scope == <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>) {</div> |
| <div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>* state = <span class="keyword">reinterpret_cast<</span><a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>*<span class="keyword">></span>(context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a24a7e63aa708e54ea3c8c9572a00ede2">Allocate</a>(<span class="keyword">sizeof</span>(<a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>)));</div> |
| <div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordflow">if</span> (context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aad06c7a14658a9a42d5de6e7d01ae136">IsArgConstant</a>(0)) {</div> |
| <div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  *state = *<span class="keyword">reinterpret_cast<</span><a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>*<span class="keyword">></span>(context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a80f0af285424f65b0d9f395049f7a75f">GetConstantArg</a>(0));</div> |
| <div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  } <span class="keywordflow">else</span> {</div> |
| <div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  *state = <a class="code" href="structimpala__udf_1_1IntVal.html#aa55876d07581e316eb5839d522dcab53">IntVal::null</a>();</div> |
| <div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  }</div> |
| <div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aba396e394b1f685d4453f6afb37959dc">SetFunctionState</a>(scope, state);</div> |
| <div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  }</div> |
| <div class="line"><a name="l00209"></a><span class="lineno"> 209</span> }</div> |
| <div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div> |
| <div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a4a5dc940feeb13b9626c0d43b16d2790"> 211</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#a4a5dc940feeb13b9626c0d43b16d2790">ConstantArg</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& const_val) {</div> |
| <div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>* state = <span class="keyword">reinterpret_cast<</span><a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>*<span class="keyword">></span>(</div> |
| <div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a9f06f92e1567f5de30969ec17bea757d">GetFunctionState</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>));</div> |
| <div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">return</span> *state;</div> |
| <div class="line"><a name="l00215"></a><span class="lineno"> 215</span> }</div> |
| <div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div> |
| <div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a479947c9377f0d1379b003cc30a5bb52"> 217</a></span> <span class="keywordtype">void</span> <a class="code" href="test-udfs_8cc.html#a479947c9377f0d1379b003cc30a5bb52">ConstantArgClose</a>(</div> |
| <div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffc">FunctionContext::FunctionStateScope</a> scope) {</div> |
| <div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordflow">if</span> (scope == <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>) {</div> |
| <div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordtype">void</span>* state = context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a9f06f92e1567f5de30969ec17bea757d">GetFunctionState</a>(scope);</div> |
| <div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a14904de2d63cac14b1a1ef09b0653a14">Free</a>(reinterpret_cast<uint8_t*>(state));</div> |
| <div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aba396e394b1f685d4453f6afb37959dc">SetFunctionState</a>(scope, NULL);</div> |
| <div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  }</div> |
| <div class="line"><a name="l00224"></a><span class="lineno"> 224</span> }</div> |
| <div class="line"><a name="l00225"></a><span class="lineno"> 225</span> </div> |
| <div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="comment">// ValidateOpen UDF: returns true if the UDF was opened, false otherwise. Can also be</span></div> |
| <div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="comment">// used to validate close since it will leak if it's not closed.</span></div> |
| <div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#af2aa90b703296ef214e37ef23f2aa649"> 228</a></span> <span class="keywordtype">void</span> <a class="code" href="test-udfs_8cc.html#af2aa90b703296ef214e37ef23f2aa649">ValidateOpenPrepare</a>(</div> |
| <div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffc">FunctionContext::FunctionStateScope</a> scope) {</div> |
| <div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">if</span> (scope == <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>) {</div> |
| <div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  uint8_t* state = context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a24a7e63aa708e54ea3c8c9572a00ede2">Allocate</a>(100);</div> |
| <div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aba396e394b1f685d4453f6afb37959dc">SetFunctionState</a>(scope, state);</div> |
| <div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  }</div> |
| <div class="line"><a name="l00234"></a><span class="lineno"> 234</span> }</div> |
| <div class="line"><a name="l00235"></a><span class="lineno"> 235</span> </div> |
| <div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a7eaf13bbe69f7e6a563669abd39192f6"> 236</a></span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a> <a class="code" href="test-udfs_8cc.html#a7eaf13bbe69f7e6a563669abd39192f6">ValidateOpen</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& dummy) {</div> |
| <div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  <span class="keywordtype">void</span>* state = context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a9f06f92e1567f5de30969ec17bea757d">GetFunctionState</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>);</div> |
| <div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1BooleanVal.html">BooleanVal</a>(state != NULL);</div> |
| <div class="line"><a name="l00239"></a><span class="lineno"> 239</span> }</div> |
| <div class="line"><a name="l00240"></a><span class="lineno"> 240</span> </div> |
| <div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#afc9c592a3da5c2002b98e401ed1dce31"> 241</a></span> <span class="keywordtype">void</span> <a class="code" href="test-udfs_8cc.html#afc9c592a3da5c2002b98e401ed1dce31">ValidateOpenClose</a>(</div> |
| <div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffc">FunctionContext::FunctionStateScope</a> scope) {</div> |
| <div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordflow">if</span> (scope == <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>) {</div> |
| <div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keywordtype">void</span>* state = context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a9f06f92e1567f5de30969ec17bea757d">GetFunctionState</a>(scope);</div> |
| <div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a14904de2d63cac14b1a1ef09b0653a14">Free</a>(reinterpret_cast<uint8_t*>(state));</div> |
| <div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aba396e394b1f685d4453f6afb37959dc">SetFunctionState</a>(scope, NULL);</div> |
| <div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  }</div> |
| <div class="line"><a name="l00248"></a><span class="lineno"> 248</span> }</div> |
| <div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div> |
| <div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="comment">// MemTest UDF: "Allocates" the specified number of bytes per call.</span></div> |
| <div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="test-udfs_8h.html#afdbd7c11ddf311d92e713c6592a5c150"> 251</a></span> <span class="keywordtype">void</span> <a class="code" href="test-udfs_8cc.html#afdbd7c11ddf311d92e713c6592a5c150">MemTestPrepare</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffc">FunctionContext::FunctionStateScope</a> scope) {</div> |
| <div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">if</span> (scope == <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>) {</div> |
| <div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  int64_t* total =</div> |
| <div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keyword">reinterpret_cast<</span>int64_t*<span class="keyword">></span>(context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a24a7e63aa708e54ea3c8c9572a00ede2">Allocate</a>(<span class="keyword">sizeof</span>(int64_t)));</div> |
| <div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  *total = 0;</div> |
| <div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aba396e394b1f685d4453f6afb37959dc">SetFunctionState</a>(scope, total);</div> |
| <div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  }</div> |
| <div class="line"><a name="l00258"></a><span class="lineno"> 258</span> }</div> |
| <div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div> |
| <div class="line"><a name="l00260"></a><span class="lineno"><a class="line" href="test-udfs_8h.html#a56b308579445eacf89af16aa8f802756"> 260</a></span> <a class="code" href="structimpala__udf_1_1BigIntVal.html">BigIntVal</a> <a class="code" href="test-udfs_8cc.html#a56b308579445eacf89af16aa8f802756">MemTest</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1BigIntVal.html">BigIntVal</a>& bytes) {</div> |
| <div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  int64_t* total = <span class="keyword">reinterpret_cast<</span>int64_t*<span class="keyword">></span>(</div> |
| <div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a9f06f92e1567f5de30969ec17bea757d">GetFunctionState</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>));</div> |
| <div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aece9636fb109a4e034c311b80de6824c">TrackAllocation</a>(bytes.<a class="code" href="structimpala__udf_1_1BigIntVal.html#a8abd150f41ae695ad81c16eca21c1031">val</a>);</div> |
| <div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  *total += bytes.<a class="code" href="structimpala__udf_1_1BigIntVal.html#a8abd150f41ae695ad81c16eca21c1031">val</a>;</div> |
| <div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordflow">return</span> bytes;</div> |
| <div class="line"><a name="l00266"></a><span class="lineno"> 266</span> }</div> |
| <div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div> |
| <div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="test-udfs_8h.html#af1f505319c0355f84f68c820d6a3ac19"> 268</a></span> <span class="keywordtype">void</span> <a class="code" href="test-udfs_8cc.html#af1f505319c0355f84f68c820d6a3ac19">MemTestClose</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffc">FunctionContext::FunctionStateScope</a> scope) {</div> |
| <div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keywordflow">if</span> (scope == <a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>) {</div> |
| <div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  int64_t* total = <span class="keyword">reinterpret_cast<</span>int64_t*<span class="keyword">></span>(</div> |
| <div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a9f06f92e1567f5de30969ec17bea757d">GetFunctionState</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">FunctionContext::THREAD_LOCAL</a>));</div> |
| <div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a14904de2d63cac14b1a1ef09b0653a14">Free</a>(*total);</div> |
| <div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a14904de2d63cac14b1a1ef09b0653a14">Free</a>(reinterpret_cast<uint8_t*>(total));</div> |
| <div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aba396e394b1f685d4453f6afb37959dc">SetFunctionState</a>(scope, NULL);</div> |
| <div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  }</div> |
| <div class="line"><a name="l00276"></a><span class="lineno"> 276</span> }</div> |
| <div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div> |
| <div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="test-udfs_8h.html#a6cbfde00df38a4f3d34f60f310582af1"> 278</a></span> <a class="code" href="structimpala__udf_1_1BigIntVal.html">BigIntVal</a> <a class="code" href="test-udfs_8cc.html#a6cbfde00df38a4f3d34f60f310582af1">DoubleFreeTest</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <a class="code" href="structimpala__udf_1_1BigIntVal.html">BigIntVal</a> bytes) {</div> |
| <div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#aece9636fb109a4e034c311b80de6824c">TrackAllocation</a>(bytes.<a class="code" href="structimpala__udf_1_1BigIntVal.html#a8abd150f41ae695ad81c16eca21c1031">val</a>);</div> |
| <div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a14904de2d63cac14b1a1ef09b0653a14">Free</a>(bytes.<a class="code" href="structimpala__udf_1_1BigIntVal.html#a8abd150f41ae695ad81c16eca21c1031">val</a>);</div> |
| <div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  context-><a class="code" href="classimpala__udf_1_1FunctionContext.html#a14904de2d63cac14b1a1ef09b0653a14">Free</a>(bytes.<a class="code" href="structimpala__udf_1_1BigIntVal.html#a8abd150f41ae695ad81c16eca21c1031">val</a>);</div> |
| <div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keywordflow">return</span> bytes;</div> |
| <div class="line"><a name="l00283"></a><span class="lineno"> 283</span> }</div> |
| <div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div> |
| <div class="line"><a name="l00285"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a149c1b71f8ae51c1de68a68be81f7105"> 285</a></span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> <a class="code" href="structimpala__udf_1_1BigIntVal.html">BigIntVal</a> <a class="code" href="test-udfs_8cc.html#a149c1b71f8ae51c1de68a68be81f7105">UnmangledSymbol</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context) {</div> |
| <div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1BigIntVal.html">BigIntVal</a>(5);</div> |
| <div class="line"><a name="l00287"></a><span class="lineno"> 287</span> }</div> |
| <div class="line"><a name="l00288"></a><span class="lineno"> 288</span> </div> |
| <div class="line"><a name="l00289"></a><span class="lineno"> 289</span> <span class="comment">// Functions to test interpreted path</span></div> |
| <div class="line"><a name="l00290"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a248300e7f9448b867d3b53fd97430f21"> 290</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#a248300e7f9448b867d3b53fd97430f21">FourArgs</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v1, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v2,</div> |
| <div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v3, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v4) {</div> |
| <div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>(v1.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v2.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v3.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v4.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a>);</div> |
| <div class="line"><a name="l00293"></a><span class="lineno"> 293</span> }</div> |
| <div class="line"><a name="l00294"></a><span class="lineno"> 294</span> </div> |
| <div class="line"><a name="l00295"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#af432498dbca2d5a48da0f1ab8f68ea60"> 295</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#af432498dbca2d5a48da0f1ab8f68ea60">FiveArgs</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v1, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v2,</div> |
| <div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v3, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v4, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v5) {</div> |
| <div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>(v1.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v2.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v3.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v4.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v5.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a>);</div> |
| <div class="line"><a name="l00298"></a><span class="lineno"> 298</span> }</div> |
| <div class="line"><a name="l00299"></a><span class="lineno"> 299</span> </div> |
| <div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a4fb1f77dd9b3cd47bf5c972bba2b7acb"> 300</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#a4fb1f77dd9b3cd47bf5c972bba2b7acb">SixArgs</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v1, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v2,</div> |
| <div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v3, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v4, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v5, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v6) {</div> |
| <div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>(v1.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v2.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v3.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v4.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v5.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v6.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a>);</div> |
| <div class="line"><a name="l00303"></a><span class="lineno"> 303</span> }</div> |
| <div class="line"><a name="l00304"></a><span class="lineno"> 304</span> </div> |
| <div class="line"><a name="l00305"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#aea7c9a2a677a9c5f364dac35e9a25438"> 305</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#aea7c9a2a677a9c5f364dac35e9a25438">SevenArgs</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v1, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v2,</div> |
| <div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v3, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v4, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v5, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v6,</div> |
| <div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v7) {</div> |
| <div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>(v1.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v2.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v3.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v4.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v5.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v6.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v7.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a>);</div> |
| <div class="line"><a name="l00309"></a><span class="lineno"> 309</span> }</div> |
| <div class="line"><a name="l00310"></a><span class="lineno"> 310</span> </div> |
| <div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="test-udfs_8cc.html#a8b046654c6406bb41ff8314f9e0625d8"> 311</a></span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a> <a class="code" href="test-udfs_8cc.html#a8b046654c6406bb41ff8314f9e0625d8">EightArgs</a>(<a class="code" href="classimpala__udf_1_1FunctionContext.html">FunctionContext</a>* context, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v1, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v2,</div> |
| <div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v3, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v4, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v5, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v6,</div> |
| <div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v7, <span class="keyword">const</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>& v8) {</div> |
| <div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordflow">return</span> <a class="code" href="structimpala__udf_1_1IntVal.html">IntVal</a>(v1.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v2.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v3.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v4.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v5.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v6.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v7.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a> + v8.<a class="code" href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">val</a>);</div> |
| <div class="line"><a name="l00315"></a><span class="lineno"> 315</span> }</div> |
| <div class="ttc" id="structimpala__udf_1_1TinyIntVal_html_a54fdc426de0a068b37d7b061cccc3c40"><div class="ttname"><a href="structimpala__udf_1_1TinyIntVal.html#a54fdc426de0a068b37d7b061cccc3c40">impala_udf::TinyIntVal::val</a></div><div class="ttdeci">int8_t val</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00383">udf.h:383</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a56b308579445eacf89af16aa8f802756"><div class="ttname"><a href="test-udfs_8cc.html#a56b308579445eacf89af16aa8f802756">MemTest</a></div><div class="ttdeci">BigIntVal MemTest(FunctionContext *context, const BigIntVal &bytes)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00260">test-udfs.cc:260</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1FunctionContext_1_1TypeDesc_html_a4e972765ff3d2151c14349c0e1fb458f"><div class="ttname"><a href="structimpala__udf_1_1FunctionContext_1_1TypeDesc.html#a4e972765ff3d2151c14349c0e1fb458f">impala_udf::FunctionContext::TypeDesc::precision</a></div><div class="ttdeci">int precision</div><div class="ttdoc">Only valid if type == TYPE_DECIMAL. </div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00075">udf.h:75</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_a1e9662a1bbb78daa9923b47412347ffc"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffc">impala_udf::FunctionContext::FunctionStateScope</a></div><div class="ttdeci">FunctionStateScope</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00087">udf.h:87</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a4736d6eee7eef91d6e7807880f0ba64c"><div class="ttname"><a href="test-udfs_8cc.html#a4736d6eee7eef91d6e7807880f0ba64c">Count</a></div><div class="ttdeci">BigIntVal Count(FunctionContext *context)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00183">test-udfs.cc:183</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1DoubleVal_html_ab3bafd0d4a8fd509fad59fe1f4bcfc98"><div class="ttname"><a href="structimpala__udf_1_1DoubleVal.html#ab3bafd0d4a8fd509fad59fe1f4bcfc98">impala_udf::DoubleVal::val</a></div><div class="ttdeci">double val</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00476">udf.h:476</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a4e114579b106360c9689677437a783ab"><div class="ttname"><a href="test-udfs_8cc.html#a4e114579b106360c9689677437a783ab">TestWarnings</a></div><div class="ttdeci">BooleanVal TestWarnings(FunctionContext *context)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00147">test-udfs.cc:147</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1IntVal_html_aa55876d07581e316eb5839d522dcab53"><div class="ttname"><a href="structimpala__udf_1_1IntVal.html#aa55876d07581e316eb5839d522dcab53">impala_udf::IntVal::null</a></div><div class="ttdeci">static IntVal null()</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00425">udf.h:425</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_ad3599e3a68620968547d14cbfcd4a860"><div class="ttname"><a href="test-udfs_8cc.html#ad3599e3a68620968547d14cbfcd4a860">ConstantTimestamp</a></div><div class="ttdeci">TimestampVal ConstantTimestamp(FunctionContext *context)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00161">test-udfs.cc:161</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_afdbd7c11ddf311d92e713c6592a5c150"><div class="ttname"><a href="test-udfs_8cc.html#afdbd7c11ddf311d92e713c6592a5c150">MemTestPrepare</a></div><div class="ttdeci">void MemTestPrepare(FunctionContext *context, FunctionContext::FunctionStateScope scope)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00251">test-udfs.cc:251</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a8d659298a3b10a3ee562e3053bb0844d"><div class="ttname"><a href="test-udfs_8cc.html#a8d659298a3b10a3ee562e3053bb0844d">Identity</a></div><div class="ttdeci">BooleanVal Identity(FunctionContext *context, const BooleanVal &arg)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00022">test-udfs.cc:22</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1IntVal_html_a48ca54ea2f6824162d8fbdc64d5c3771"><div class="ttname"><a href="structimpala__udf_1_1IntVal.html#a48ca54ea2f6824162d8fbdc64d5c3771">impala_udf::IntVal::val</a></div><div class="ttdeci">int32_t val</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00421">udf.h:421</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1DoubleVal_html"><div class="ttname"><a href="structimpala__udf_1_1DoubleVal.html">impala_udf::DoubleVal</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00475">udf.h:475</a></div></div> |
| <div class="ttc" id="udf_8h_html"><div class="ttname"><a href="udf_8h.html">udf.h</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a620e53596222bf03dc7e58475e593b70"><div class="ttname"><a href="test-udfs_8cc.html#a620e53596222bf03dc7e58475e593b70">Fn2</a></div><div class="ttdeci">IntVal Fn2(FunctionContext *, const IntVal &)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00158">test-udfs.cc:158</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_aa666c9356e03dbb941198ba520c14979"><div class="ttname"><a href="test-udfs_8cc.html#aa666c9356e03dbb941198ba520c14979">ValidateArgType</a></div><div class="ttdeci">BooleanVal ValidateArgType(FunctionContext *context, const StringVal &dummy)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00165">test-udfs.cc:165</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_a0802c4491e244b8b13d4ff8461e960ffa1dd85d0dc61480f9f01982790a3819f4"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#a0802c4491e244b8b13d4ff8461e960ffa1dd85d0dc61480f9f01982790a3819f4">impala_udf::FunctionContext::TYPE_DECIMAL</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00067">udf.h:67</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1DecimalVal_html_a328187a144101e220b96f3699a663642"><div class="ttname"><a href="structimpala__udf_1_1DecimalVal.html#a328187a144101e220b96f3699a663642">impala_udf::DecimalVal::val4</a></div><div class="ttdeci">int32_t val4</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00570">udf.h:570</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1BooleanVal_html_a1be16b2589c9bcf698524ce08c6c7858"><div class="ttname"><a href="structimpala__udf_1_1BooleanVal.html#a1be16b2589c9bcf698524ce08c6c7858">impala_udf::BooleanVal::val</a></div><div class="ttdeci">bool val</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00364">udf.h:364</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1TimestampVal_html"><div class="ttname"><a href="structimpala__udf_1_1TimestampVal.html">impala_udf::TimestampVal</a></div><div class="ttdoc">This object has a compatible storage format with boost::ptime. </div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00495">udf.h:495</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1StringVal_html_a1152442079d2471ec396076f37bf6c35"><div class="ttname"><a href="structimpala__udf_1_1StringVal.html#a1152442079d2471ec396076f37bf6c35">impala_udf::StringVal::ptr</a></div><div class="ttdeci">uint8_t * ptr</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00523">udf.h:523</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a4a5dc940feeb13b9626c0d43b16d2790"><div class="ttname"><a href="test-udfs_8cc.html#a4a5dc940feeb13b9626c0d43b16d2790">ConstantArg</a></div><div class="ttdeci">IntVal ConstantArg(FunctionContext *context, const IntVal &const_val)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00211">test-udfs.cc:211</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html">impala_udf::FunctionContext</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00047">udf.h:47</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_a228cf1a119cfe039dbfb1646fa2566f7"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#a228cf1a119cfe039dbfb1646fa2566f7">impala_udf::FunctionContext::AddWarning</a></div><div class="ttdeci">bool AddWarning(const char *warning_msg)</div><div class="ttdef"><b>Definition:</b> <a href="udf_8cc_source.html#l00345">udf.cc:345</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a2cf05f7c3824052e92fef8af52fcd895"><div class="ttname"><a href="test-udfs_8cc.html#a2cf05f7c3824052e92fef8af52fcd895">VarSum</a></div><div class="ttdeci">IntVal VarSum(FunctionContext *context, int n, const IntVal *args)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00073">test-udfs.cc:73</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1FunctionContext_1_1TypeDesc_html_a881ee51ecdb40ac7469151128a9193d7"><div class="ttname"><a href="structimpala__udf_1_1FunctionContext_1_1TypeDesc.html#a881ee51ecdb40ac7469151128a9193d7">impala_udf::FunctionContext::TypeDesc::type</a></div><div class="ttdeci">Type type</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00072">udf.h:72</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1AnyVal_html_aded62c6b250c62814c94271856b06cbe"><div class="ttname"><a href="structimpala__udf_1_1AnyVal.html#aded62c6b250c62814c94271856b06cbe">impala_udf::AnyVal::is_null</a></div><div class="ttdeci">bool is_null</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00359">udf.h:359</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1TinyIntVal_html"><div class="ttname"><a href="structimpala__udf_1_1TinyIntVal.html">impala_udf::TinyIntVal</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00382">udf.h:382</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1FloatVal_html"><div class="ttname"><a href="structimpala__udf_1_1FloatVal.html">impala_udf::FloatVal</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00458">udf.h:458</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_af432498dbca2d5a48da0f1ab8f68ea60"><div class="ttname"><a href="test-udfs_8cc.html#af432498dbca2d5a48da0f1ab8f68ea60">FiveArgs</a></div><div class="ttdeci">IntVal FiveArgs(FunctionContext *context, const IntVal &v1, const IntVal &v2, const IntVal &v3, const IntVal &v4, const IntVal &v5)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00295">test-udfs.cc:295</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1FunctionContext_1_1TypeDesc_html"><div class="ttname"><a href="structimpala__udf_1_1FunctionContext_1_1TypeDesc.html">impala_udf::FunctionContext::TypeDesc</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00071">udf.h:71</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_a982cd2abfd09cd038eb51fbc3d89366c"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#a982cd2abfd09cd038eb51fbc3d89366c">impala_udf::FunctionContext::GetArgType</a></div><div class="ttdeci">const TypeDesc * GetArgType(int arg_idx) const </div><div class="ttdef"><b>Definition:</b> <a href="udf_8cc_source.html#l00425">udf.cc:425</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1SmallIntVal_html"><div class="ttname"><a href="structimpala__udf_1_1SmallIntVal.html">impala_udf::SmallIntVal</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00401">udf.h:401</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1SmallIntVal_html_a7cdc8edc6fbf61cececddeb074c0a7b0"><div class="ttname"><a href="structimpala__udf_1_1SmallIntVal.html#a7cdc8edc6fbf61cececddeb074c0a7b0">impala_udf::SmallIntVal::val</a></div><div class="ttdeci">int16_t val</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00402">udf.h:402</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1DecimalVal_html"><div class="ttname"><a href="structimpala__udf_1_1DecimalVal.html">impala_udf::DecimalVal</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00556">udf.h:556</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_a9f06f92e1567f5de30969ec17bea757d"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#a9f06f92e1567f5de30969ec17bea757d">impala_udf::FunctionContext::GetFunctionState</a></div><div class="ttdeci">void * GetFunctionState(FunctionStateScope scope) const </div><div class="ttdef"><b>Definition:</b> <a href="udf-ir_8cc_source.html#l00038">udf-ir.cc:38</a></div></div> |
| <div class="ttc" id="classuint64__t_html"><div class="ttname"><a href="classuint64__t.html">uint64_t</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_a14904de2d63cac14b1a1ef09b0653a14"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#a14904de2d63cac14b1a1ef09b0653a14">impala_udf::FunctionContext::Free</a></div><div class="ttdeci">void Free(uint8_t *buffer)</div><div class="ttdoc">Frees a buffer returned from Allocate() or Reallocate() </div><div class="ttdef"><b>Definition:</b> <a href="udf_8cc_source.html#l00291">udf.cc:291</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1BigIntVal_html_a8abd150f41ae695ad81c16eca21c1031"><div class="ttname"><a href="structimpala__udf_1_1BigIntVal.html#a8abd150f41ae695ad81c16eca21c1031">impala_udf::BigIntVal::val</a></div><div class="ttdeci">int64_t val</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00440">udf.h:440</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1StringVal_html"><div class="ttname"><a href="structimpala__udf_1_1StringVal.html">impala_udf::StringVal</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00521">udf.h:521</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1FloatVal_html_a2730b7f917dd586e02668ee76f51b5f9"><div class="ttname"><a href="structimpala__udf_1_1FloatVal.html#a2730b7f917dd586e02668ee76f51b5f9">impala_udf::FloatVal::val</a></div><div class="ttdeci">float val</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00459">udf.h:459</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_afb94281c45ada241ff513998d90a79d3"><div class="ttname"><a href="test-udfs_8cc.html#afb94281c45ada241ff513998d90a79d3">VarSumMultiply</a></div><div class="ttdeci">DoubleVal VarSumMultiply(FunctionContext *context, const DoubleVal &d, int n, const IntVal *args)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00126">test-udfs.cc:126</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1IntVal_html"><div class="ttname"><a href="structimpala__udf_1_1IntVal.html">impala_udf::IntVal</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00420">udf.h:420</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_af060a39263d76fed188d9e7390a08cdc"><div class="ttname"><a href="test-udfs_8cc.html#af060a39263d76fed188d9e7390a08cdc">AllTypes</a></div><div class="ttdeci">IntVal AllTypes(FunctionContext *context, const StringVal &string, const BooleanVal &boolean, const TinyIntVal &tiny_int, const SmallIntVal &small_int, const IntVal &int_val, const BigIntVal &big_int, const FloatVal &float_val, const DoubleVal &double_val, const DecimalVal &decimal)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00042">test-udfs.cc:42</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_aea7c9a2a677a9c5f364dac35e9a25438"><div class="ttname"><a href="test-udfs_8cc.html#aea7c9a2a677a9c5f364dac35e9a25438">SevenArgs</a></div><div class="ttdeci">IntVal SevenArgs(FunctionContext *context, const IntVal &v1, const IntVal &v2, const IntVal &v3, const IntVal &v4, const IntVal &v5, const IntVal &v6, const IntVal &v7)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00305">test-udfs.cc:305</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_aad06c7a14658a9a42d5de6e7d01ae136"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#aad06c7a14658a9a42d5de6e7d01ae136">impala_udf::FunctionContext::IsArgConstant</a></div><div class="ttdeci">bool IsArgConstant(int arg_idx) const </div><div class="ttdef"><b>Definition:</b> <a href="udf-ir_8cc_source.html#l00020">udf-ir.cc:20</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_aba396e394b1f685d4453f6afb37959dc"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#aba396e394b1f685d4453f6afb37959dc">impala_udf::FunctionContext::SetFunctionState</a></div><div class="ttdeci">void SetFunctionState(FunctionStateScope scope, void *ptr)</div><div class="ttdef"><b>Definition:</b> <a href="udf_8cc_source.html#l00370">udf.cc:370</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a222101ad1dd6ee9a350943bb690b464b"><div class="ttname"><a href="test-udfs_8cc.html#a222101ad1dd6ee9a350943bb690b464b">ConstantArgPrepare</a></div><div class="ttdeci">void ConstantArgPrepare(FunctionContext *context, FunctionContext::FunctionStateScope scope)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00198">test-udfs.cc:198</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a4bdbf4535696dea306a1f752e97e10c7"><div class="ttname"><a href="test-udfs_8cc.html#a4bdbf4535696dea306a1f752e97e10c7">TestError</a></div><div class="ttdeci">BooleanVal TestError(FunctionContext *context)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00141">test-udfs.cc:141</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1DecimalVal_html_a11ab8f69ae7ec0d13d03681a4715be20"><div class="ttname"><a href="structimpala__udf_1_1DecimalVal.html#a11ab8f69ae7ec0d13d03681a4715be20">impala_udf::DecimalVal::null</a></div><div class="ttdeci">static DecimalVal null()</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00580">udf.h:580</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_acbe94b96830ee0c2f44ed2eace26ce2a"><div class="ttname"><a href="test-udfs_8cc.html#acbe94b96830ee0c2f44ed2eace26ce2a">CountPrepare</a></div><div class="ttdeci">void CountPrepare(FunctionContext *context, FunctionContext::FunctionStateScope scope)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00175">test-udfs.cc:175</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a6576a232233cd5548e1fa79cc3bad367"><div class="ttname"><a href="test-udfs_8cc.html#a6576a232233cd5548e1fa79cc3bad367">CountClose</a></div><div class="ttdeci">void CountClose(FunctionContext *context, FunctionContext::FunctionStateScope scope)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00189">test-udfs.cc:189</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a149c1b71f8ae51c1de68a68be81f7105"><div class="ttname"><a href="test-udfs_8cc.html#a149c1b71f8ae51c1de68a68be81f7105">UnmangledSymbol</a></div><div class="ttdeci">BigIntVal UnmangledSymbol(FunctionContext *context)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00285">test-udfs.cc:285</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a8b046654c6406bb41ff8314f9e0625d8"><div class="ttname"><a href="test-udfs_8cc.html#a8b046654c6406bb41ff8314f9e0625d8">EightArgs</a></div><div class="ttdeci">IntVal EightArgs(FunctionContext *context, const IntVal &v1, const IntVal &v2, const IntVal &v3, const IntVal &v4, const IntVal &v5, const IntVal &v6, const IntVal &v7, const IntVal &v8)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00311">test-udfs.cc:311</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_afc9c592a3da5c2002b98e401ed1dce31"><div class="ttname"><a href="test-udfs_8cc.html#afc9c592a3da5c2002b98e401ed1dce31">ValidateOpenClose</a></div><div class="ttdeci">void ValidateOpenClose(FunctionContext *context, FunctionContext::FunctionStateScope scope)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00241">test-udfs.cc:241</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_a24a7e63aa708e54ea3c8c9572a00ede2"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#a24a7e63aa708e54ea3c8c9572a00ede2">impala_udf::FunctionContext::Allocate</a></div><div class="ttdeci">uint8_t * Allocate(int byte_size)</div><div class="ttdef"><b>Definition:</b> <a href="udf_8cc_source.html#l00262">udf.cc:262</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a248300e7f9448b867d3b53fd97430f21"><div class="ttname"><a href="test-udfs_8cc.html#a248300e7f9448b867d3b53fd97430f21">FourArgs</a></div><div class="ttdeci">IntVal FourArgs(FunctionContext *context, const IntVal &v1, const IntVal &v2, const IntVal &v3, const IntVal &v4)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00290">test-udfs.cc:290</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_aece9636fb109a4e034c311b80de6824c"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#aece9636fb109a4e034c311b80de6824c">impala_udf::FunctionContext::TrackAllocation</a></div><div class="ttdeci">void TrackAllocation(int64_t byte_size)</div><div class="ttdef"><b>Definition:</b> <a href="udf_8cc_source.html#l00312">udf.cc:312</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_af9c60b1e20fed20c46fc8eb1190bd761"><div class="ttname"><a href="test-udfs_8cc.html#af9c60b1e20fed20c46fc8eb1190bd761">VarAnd</a></div><div class="ttdeci">BooleanVal VarAnd(FunctionContext *context, int n, const BooleanVal *args)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00064">test-udfs.cc:64</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_abb60386c4b25a262c4ea87c1058e627a"><div class="ttname"><a href="test-udfs_8cc.html#abb60386c4b25a262c4ea87c1058e627a">NoArgs</a></div><div class="ttdeci">StringVal NoArgs(FunctionContext *context)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00053">test-udfs.cc:53</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1BigIntVal_html"><div class="ttname"><a href="structimpala__udf_1_1BigIntVal.html">impala_udf::BigIntVal</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00439">udf.h:439</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_af1f505319c0355f84f68c820d6a3ac19"><div class="ttname"><a href="test-udfs_8cc.html#af1f505319c0355f84f68c820d6a3ac19">MemTestClose</a></div><div class="ttdeci">void MemTestClose(FunctionContext *context, FunctionContext::FunctionStateScope scope)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00268">test-udfs.cc:268</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1DoubleVal_html_adf467cc7bb66d03c9833cf6e8feec48f"><div class="ttname"><a href="structimpala__udf_1_1DoubleVal.html#adf467cc7bb66d03c9833cf6e8feec48f">impala_udf::DoubleVal::null</a></div><div class="ttdeci">static DoubleVal null()</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00480">udf.h:480</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_af2aa90b703296ef214e37ef23f2aa649"><div class="ttname"><a href="test-udfs_8cc.html#af2aa90b703296ef214e37ef23f2aa649">ValidateOpenPrepare</a></div><div class="ttdeci">void ValidateOpenPrepare(FunctionContext *context, FunctionContext::FunctionStateScope scope)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00228">test-udfs.cc:228</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#a1e9662a1bbb78daa9923b47412347ffca9ad2da787a2eb3ea3af8eebe653c84a5">impala_udf::FunctionContext::THREAD_LOCAL</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00106">udf.h:106</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_a0802c4491e244b8b13d4ff8461e960ffad04b24e07ab4c7fb86cbcd80249bcd55"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#a0802c4491e244b8b13d4ff8461e960ffad04b24e07ab4c7fb86cbcd80249bcd55">impala_udf::FunctionContext::TYPE_STRING</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00065">udf.h:65</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_aa29186643c6b873f95e361b74e54a715"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#aa29186643c6b873f95e361b74e54a715">impala_udf::FunctionContext::SetError</a></div><div class="ttdeci">void SetError(const char *error_msg)</div><div class="ttdef"><b>Definition:</b> <a href="udf_8cc_source.html#l00332">udf.cc:332</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a6cbfde00df38a4f3d34f60f310582af1"><div class="ttname"><a href="test-udfs_8cc.html#a6cbfde00df38a4f3d34f60f310582af1">DoubleFreeTest</a></div><div class="ttdeci">BigIntVal DoubleFreeTest(FunctionContext *context, BigIntVal bytes)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00278">test-udfs.cc:278</a></div></div> |
| <div class="ttc" id="classimpala__udf_1_1FunctionContext_html_a80f0af285424f65b0d9f395049f7a75f"><div class="ttname"><a href="classimpala__udf_1_1FunctionContext.html#a80f0af285424f65b0d9f395049f7a75f">impala_udf::FunctionContext::GetConstantArg</a></div><div class="ttdeci">AnyVal * GetConstantArg(int arg_idx) const </div><div class="ttdef"><b>Definition:</b> <a href="udf-ir_8cc_source.html#l00025">udf-ir.cc:25</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_ae3dd41270e5cefbf03647abbe509340d"><div class="ttname"><a href="test-udfs_8cc.html#ae3dd41270e5cefbf03647abbe509340d">Fn</a></div><div class="ttdeci">IntVal Fn(FunctionContext *)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00154">test-udfs.cc:154</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a479947c9377f0d1379b003cc30a5bb52"><div class="ttname"><a href="test-udfs_8cc.html#a479947c9377f0d1379b003cc30a5bb52">ConstantArgClose</a></div><div class="ttdeci">void ConstantArgClose(FunctionContext *context, FunctionContext::FunctionStateScope scope)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00217">test-udfs.cc:217</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1StringVal_html_a72a872d5acebca872db6bd37eb4ae184"><div class="ttname"><a href="structimpala__udf_1_1StringVal.html#a72a872d5acebca872db6bd37eb4ae184">impala_udf::StringVal::len</a></div><div class="ttdeci">int len</div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00522">udf.h:522</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a4fb1f77dd9b3cd47bf5c972bba2b7acb"><div class="ttname"><a href="test-udfs_8cc.html#a4fb1f77dd9b3cd47bf5c972bba2b7acb">SixArgs</a></div><div class="ttdeci">IntVal SixArgs(FunctionContext *context, const IntVal &v1, const IntVal &v2, const IntVal &v3, const IntVal &v4, const IntVal &v5, const IntVal &v6)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00300">test-udfs.cc:300</a></div></div> |
| <div class="ttc" id="test-udfs_8cc_html_a7eaf13bbe69f7e6a563669abd39192f6"><div class="ttname"><a href="test-udfs_8cc.html#a7eaf13bbe69f7e6a563669abd39192f6">ValidateOpen</a></div><div class="ttdeci">BooleanVal ValidateOpen(FunctionContext *context, const IntVal &dummy)</div><div class="ttdef"><b>Definition:</b> <a href="test-udfs_8cc_source.html#l00236">test-udfs.cc:236</a></div></div> |
| <div class="ttc" id="structimpala__udf_1_1BooleanVal_html"><div class="ttname"><a href="structimpala__udf_1_1BooleanVal.html">impala_udf::BooleanVal</a></div><div class="ttdef"><b>Definition:</b> <a href="udf_8h_source.html#l00363">udf.h:363</a></div></div> |
| </div><!-- fragment --></div><!-- contents --> |
| </div><!-- doc-content --> |
| <!-- start footer part --> |
| <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| <ul> |
| <li class="navelem"><a class="el" href="dir_e5d120be6b5e8a44336cbfd013b25604.html">be</a></li><li class="navelem"><a class="el" href="dir_68cf7cafb51a962d5bc4848b83cab0de.html">src</a></li><li class="navelem"><a class="el" href="dir_cb9eb13056a2ddaa90910192d09d40dd.html">testutil</a></li><li class="navelem"><a class="el" href="test-udfs_8cc.html">test-udfs.cc</a></li> |
| <li class="footer">Generated on Thu May 7 2015 16:10:37 for Impala by |
| <a href="http://www.doxygen.org/index.html"> |
| <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li> |
| </ul> |
| </div> |
| </body> |
| </html> |