blob: f08e2392c3ca168ceb96d509b8b7170f0494eba7 [file] [log] [blame]
<!-- HTML header for doxygen 1.8.4-->
<!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.10"/>
<meta name="keywords" content="madlib,postgres,greenplum,machine learning,data mining,deep learning,ensemble methods,data science,market basket analysis,affinity analysis,pca,lda,regression,elastic net,huber white,proportional hazards,k-means,latent dirichlet allocation,bayes,support vector machines,svm"/>
<title>MADlib: profile.sql_in File Reference</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="navtreedata.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/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
<script type="text/javascript" src="navtree_hack.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-45382226-1', 'auto');
ga('send', 'pageview');
</script>
</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 id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
<span id="projectnumber">1.8</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
<td> <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>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
</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('profile_8sql__in.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)">
</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="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">profile.sql_in File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>SQL function for single-pass table profiles.
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a22f0136bb3d7740262b13030a2925a80"><td class="memItemLeft" align="right" valign="top">set&lt; profile_result &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="profile_8sql__in.html#a22f0136bb3d7740262b13030a2925a80">profile</a> (text input_table)</td></tr>
<tr class="memdesc:a22f0136bb3d7740262b13030a2925a80"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute a simple "profile" of a table or view. <a href="#a22f0136bb3d7740262b13030a2925a80">More...</a><br /></td></tr>
<tr class="separator:a22f0136bb3d7740262b13030a2925a80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a879e445d74412b093d411ed9a7180a1e"><td class="memItemLeft" align="right" valign="top">set&lt; profile_result &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="profile_8sql__in.html#a879e445d74412b093d411ed9a7180a1e">profile_full</a> (text input_table, integer buckets)</td></tr>
<tr class="memdesc:a879e445d74412b093d411ed9a7180a1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute a full "profile" of a table or view. <a href="#a879e445d74412b093d411ed9a7180a1e">More...</a><br /></td></tr>
<tr class="separator:a879e445d74412b093d411ed9a7180a1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b4ddf1ad8fb4777936f441b873ac968"><td class="memItemLeft" align="right" valign="top">anyarray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="profile_8sql__in.html#a8b4ddf1ad8fb4777936f441b873ac968">array_collapse</a> (anyarray input)</td></tr>
<tr class="memdesc:a8b4ddf1ad8fb4777936f441b873ac968"><td class="mdescLeft">&#160;</td><td class="mdescRight">Collapses n-dimensional Arrays to 1-dim Array, so they can be read in pl/python can read it. Otherwise we would get ERROR: cannot convert multidimensional array to Python list. <a href="#a8b4ddf1ad8fb4777936f441b873ac968">More...</a><br /></td></tr>
<tr class="separator:a8b4ddf1ad8fb4777936f441b873ac968"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section date"><dt>Date</dt><dd>January 2011</dd></dl>
<dl class="section see"><dt>See also</dt><dd>For a brief introduction to "profiles", see the module description <a class="el" href="group__grp__profile.html" title="Produces a &quot;profile&quot; of a table or view by running a predefined set of aggregates on each column...">Profile</a>. Cf. also the module <a class="el" href="group__grp__sketches.html" title="A collection of methods to estimate the number of unique values contained in the data. ">Cardinality Estimators</a>. </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a8b4ddf1ad8fb4777936f441b873ac968"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">anyarray array_collapse </td>
<td>(</td>
<td class="paramtype">anyarray&#160;</td>
<td class="paramname"><em>input</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">input</td><td>Mult-dim array </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>One dimensional anyarray </dd></dl>
</div>
</div>
<a class="anchor" id="a22f0136bb3d7740262b13030a2925a80"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">set&lt;profile_result&gt; profile </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>input_table</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">input_table</td><td>table name to analyze </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Set of PROFILE_RESULT type </dd></dl>
</div>
</div>
<a class="anchor" id="a879e445d74412b093d411ed9a7180a1e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">set&lt;profile_result&gt; profile_full </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>input_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>buckets</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">input_table</td><td>table name to analyze </td></tr>
<tr><td class="paramname">buckets</td><td>number of buckets for histogram functions </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Set of PROFILE_RESULT type </dd></dl>
</div>
</div>
</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_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_efbcf68973d247bbf15f9eecae7f24e3.html">ports</a></li><li class="navelem"><a class="el" href="dir_a4a48839224ef8488facbffa8a397967.html">postgres</a></li><li class="navelem"><a class="el" href="dir_dc596537ad427a4d866006d1a3e1fe29.html">modules</a></li><li class="navelem"><a class="el" href="dir_b39ff06c8d4b923dddf798443565aaed.html">data_profile</a></li><li class="navelem"><a class="el" href="profile_8sql__in.html">profile.sql_in</a></li>
<li class="footer">Generated on Mon Jul 27 2015 20:37:45 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
</div>
</body>
</html>