Repository: drill-site Updated Branches: refs/heads/asf-site e83079aee -> 354639303
http://git-wip-us.apache.org/repos/asf/drill-site/blob/35463930/docs/why-drill/index.html ---------------------------------------------------------------------- diff --git a/docs/why-drill/index.html b/docs/why-drill/index.html index a3e3cc9..6e3c6ae 100644 --- a/docs/why-drill/index.html +++ b/docs/why-drill/index.html @@ -801,7 +801,11 @@ - <li class="toctree-l2"><a class="reference internal" href="/docs/develop-a-simple-function/">Develop a Simple Function</a></li> + <li class="toctree-l2"><a class="reference internal" href="/docs/developing-a-simple-function/">Developing a Simple Function</a></li> + + + + <li class="toctree-l2"><a class="reference internal" href="/docs/tutorial-develop-a-simple-function/">Tutorial: Develop a Simple Function</a></li> @@ -1005,7 +1009,7 @@ <h3 id="1.-get-started-in-minutes">1. Get started in minutes</h3> -<p>It takes a couple of minutes to start working with Drill. Untar the Drill software on your Mac or Windows laptop and run a query on a local file. No need to set up any infrastructure or to define schemas. Just point to the data, such as data in a file, directory, HBase table, and drill.</p> +<p>It takes just a few minutes to get started with Drill. Untar the Drill software on your Mac or Windows laptop and run a query on a local file. No need to set up any infrastructure or to define schemas. Just point to the data, such as data in a file, directory, HBase table, and drill.</p> <div class="highlight"><pre><code class="language-text" data-lang="text">$ tar -xvf apache-drill-<version>.tar.gz $ <install directory>/bin/drill-embedded 0: jdbc:drill:zk=local> SELECT * FROM cp.`employee.json` LIMIT 5; @@ -1070,9 +1074,9 @@ WHERE orders.cust_id = custview.cust_id AND orders.cust_id = c.user_info.cust_id GROUP BY custview.membership ORDER BY 2; </code></pre></div> -<h2 id="8.-user-defined-functions-(udfs)">8. User-Defined Functions (UDFs)</h2> +<h2 id="8.-user-defined-functions-(udfs)-for-drill-and-hive">8. User-Defined Functions (UDFs) for Drill and Hive</h2> -<p>Drill exposes a simple and high-performance Java API to build custom functions (UDFs and UDAFs) so that you can add your own business logic. If you have already built UDFs in Hive, you can reuse them with Drill with no modifications. Refer to [Developing Custom Functions]((/docs/develop-custom-functions/) for more information.</p> +<p>Drill exposes a simple, high-performance Java API to build <a href="/docs/develop-custom-functions/">custom user-defined functions</a> (UDFs) for adding your own business logic to Drill. Drill also supports Hive UDFs. If you have already built UDFs in Hive, you can reuse them with Drill with no modifications. </p> <h2 id="9.-high-performance">9. High performance</h2> http://git-wip-us.apache.org/repos/asf/drill-site/blob/35463930/docs/wikipedia-edit-history/index.html ---------------------------------------------------------------------- diff --git a/docs/wikipedia-edit-history/index.html b/docs/wikipedia-edit-history/index.html index ed6f42b..32b1da2 100644 --- a/docs/wikipedia-edit-history/index.html +++ b/docs/wikipedia-edit-history/index.html @@ -801,7 +801,11 @@ - <li class="toctree-l2"><a class="reference internal" href="/docs/develop-a-simple-function/">Develop a Simple Function</a></li> + <li class="toctree-l2"><a class="reference internal" href="/docs/developing-a-simple-function/">Developing a Simple Function</a></li> + + + + <li class="toctree-l2"><a class="reference internal" href="/docs/tutorial-develop-a-simple-function/">Tutorial: Develop a Simple Function</a></li> http://git-wip-us.apache.org/repos/asf/drill-site/blob/35463930/docs/with-clause/index.html ---------------------------------------------------------------------- diff --git a/docs/with-clause/index.html b/docs/with-clause/index.html index 090091d..e9cf694 100644 --- a/docs/with-clause/index.html +++ b/docs/with-clause/index.html @@ -801,7 +801,11 @@ - <li class="toctree-l2"><a class="reference internal" href="/docs/develop-a-simple-function/">Develop a Simple Function</a></li> + <li class="toctree-l2"><a class="reference internal" href="/docs/developing-a-simple-function/">Developing a Simple Function</a></li> + + + + <li class="toctree-l2"><a class="reference internal" href="/docs/tutorial-develop-a-simple-function/">Tutorial: Develop a Simple Function</a></li> http://git-wip-us.apache.org/repos/asf/drill-site/blob/35463930/docs/workspaces/index.html ---------------------------------------------------------------------- diff --git a/docs/workspaces/index.html b/docs/workspaces/index.html index b1bfe78..e2c9ce3 100644 --- a/docs/workspaces/index.html +++ b/docs/workspaces/index.html @@ -801,7 +801,11 @@ - <li class="toctree-l2"><a class="reference internal" href="/docs/develop-a-simple-function/">Develop a Simple Function</a></li> + <li class="toctree-l2"><a class="reference internal" href="/docs/developing-a-simple-function/">Developing a Simple Function</a></li> + + + + <li class="toctree-l2"><a class="reference internal" href="/docs/tutorial-develop-a-simple-function/">Tutorial: Develop a Simple Function</a></li> @@ -1003,25 +1007,27 @@ <div class="int_text" align="left"> - <p>You can define one or more workspaces in a storage plugin configuration. The workspace defines the directory location of files in a local or distributed file system. Drill searches the workspace to locate data when + <p>You can define one or more workspaces in a storage plugin configuration. The workspace defines the location of files in subdirectories of a local or distributed file system. Drill searches the workspace to locate data when you run a query. The <code>default</code> workspace points to the root of the file system. </p> -<p>Configuring <code>workspaces</code> to include a file location simplifies the query, which is important when querying the same data source repeatedly. After you configure a long path name in the workspaces location property, instead of -using the full path to the data source, you use dot notation in the FROM +<p>Configuring workspaces to include a subdirectory simplifies the query, which is important when querying the same files repeatedly. After you configure a long path name in the workspace <code>location</code> property, instead of +using the full path name to the data source, you use dot notation in the FROM clause.</p> -<p><code><workspaces>.`<location></code>`</p> +<p><code><workspace name>.`<location></code>`</p> + +<p>Where <code><location></code> is the path name of a subdirectory, such as <code>/users/max/drill/json</code> enclosed in double quotation marks as shown in the <a href="/docs/file-system-storage-plugin/#querying-donuts-example">"Querying Donuts Example."</a></p> -<p>To query the data source while you are not <em>using</em> that storage plugin, include the plugin name. This syntax assumes you did not issue a USE statement to connect to a storage plugin that defines the +<p>To query the data source when you have not set the default schema name to the storage plugin configuration, include the plugin name. This syntax assumes you did not issue a USE statement to connect to a storage plugin that defines the location of the data:</p> -<p><code><plugin>.<workspaces>.`<location></code>`</p> +<p><code><plugin>.<workspace name>.`<location></code>`</p> <h2 id="no-workspaces-for-hive-and-hbase">No Workspaces for Hive and HBase</h2> -<p>You cannot configure workspaces for -<code>hive</code> and <code>hbase</code>, though Hive databases show up as workspaces in +<p>You cannot include workspaces in the configurations of the +<code>hive</code> and <code>hbase</code> plugins installed with Apache Drill, though Hive databases show up as workspaces in Drill. Each <code>hive</code> instance includes a <code>default</code> workspace that points to the Hive metastore. When you query files and tables in the <code>hive default</code> workspaces, you can omit the workspace name from the query.</p> @@ -1035,10 +1041,10 @@ SELECT * FROM hive.`default`.customers LIMIT 10; </code></pre></div> <div class="admonition note"> <p class="first admonition-title">Note</p> - <p class="last">Default is a reserved word. You must enclose reserved words in back ticks. </p> + <p class="last">Default is a reserved word. You must enclose reserved words when used as identifiers in back ticks. </p> </div> -<p>Because the HBase storage plugin configuration does not have a workspace, you can use the following +<p>Because the HBase storage plugin does not accommodate a workspace, you can use the following query:</p> <div class="highlight"><pre><code class="language-text" data-lang="text">SELECT * FROM hbase.customers LIMIT 10; </code></pre></div> http://git-wip-us.apache.org/repos/asf/drill-site/blob/35463930/feed.xml ---------------------------------------------------------------------- diff --git a/feed.xml b/feed.xml index 7e4e754..aeab41d 100644 --- a/feed.xml +++ b/feed.xml @@ -6,15 +6,14 @@ </description> <link>/</link> <atom:link href="/feed.xml" rel="self" type="application/rss+xml"/> - <pubDate>Thu, 23 Jul 2015 16:43:18 -0700</pubDate> - <lastBuildDate>Thu, 23 Jul 2015 16:43:18 -0700</lastBuildDate> - <generator>Jekyll v2.5.3</generator> + <pubDate>Tue, 04 Aug 2015 16:33:04 -0700</pubDate> + <lastBuildDate>Tue, 04 Aug 2015 16:33:04 -0700</lastBuildDate> + <generator>Jekyll v2.5.2</generator> <item> <title>Drill Tutorial at NoSQL Now! 2015</title> - <description><script type="text/javascript" src="//addthisevent.com/libs/1.5.8/ate.min.js"></script> - -<p><a href="/blog/2015/07/23/drill-tutorial-at-nosql-now-2015/" title="Add to Calendar" class="addthisevent"> + <description><p><script type="text/javascript" src="//addthisevent.com/libs/1.5.8/ate.min.js"></script> +<a href="/blog/2015/07/23/drill-tutorial-at-nosql-now-2015/" title="Add to Calendar" class="addthisevent"> Add to Calendar <span class="_start">08-20-2015 13:00:00</span> <span class="_end">08-20-2014 16:15:00</span> http://git-wip-us.apache.org/repos/asf/drill-site/blob/35463930/js/script.js ---------------------------------------------------------------------- diff --git a/js/script.js b/js/script.js index ea318e2..8fc7a54 100644 --- a/js/script.js +++ b/js/script.js @@ -1,107 +1,107 @@ -var reelPointer = null; -$(document).ready(function(e) { - - $(".aLeft").click(function() { - moveReel("prev"); - }); - $(".aRight").click(function() { - moveReel("next"); - }); - - if ($("#header .scroller .item").length == 1) { - - } else { - - $("#header .dots, .aLeft, .aRight").css({ display: 'block' }); - $("#header .scroller .item").each(function(i) { - $("#header .dots").append("<div class='dot'></div>"); - $("#header .dots .dot").eq(i).click(function() { - var index = $(this).prevAll(".dot").length; - moveReel(index); - }); - }); - - reelPointer = setTimeout(function() { moveReel(1); },5000); - } - - $("#menu ul li").each(function(index, element) { - if ($(this).find("ul").length) { - $(this).addClass("parent"); - } - }); - - $("#header .dots .dot:eq(0)").addClass("sel"); - - resized(); - - $(window).scroll(onScroll); - - var pathname = window.location.pathname; - var pathSlashesReplaced = pathname.replace(/\//g, " "); - var pathSlashesReplacedNoFirstDash = pathSlashesReplaced.replace(" ",""); - var newClass = pathSlashesReplacedNoFirstDash.replace(/(\.[\s\S]+)/ig, ""); - $("body").addClass(newClass); - if ( $("body").attr("class") == "") - { - $("body").addClass("class"); - } -}); - -var reel_currentIndex = 0; -function resized() { - - var WW = parseInt($(window).width(),10); - var IW = (WW < 999) ? 999 : WW; - var IH = parseInt($("#header .scroller .item").css("height"),10); - var IN = $("#header .scroller .item").length; - - $("#header .scroller").css({ width: (IN * IW)+"px", marginLeft: -(reel_currentIndex * IW)+"px" }); - $("#header .scroller .item").css({ width: IW+"px" }); - - - $("#header .scroller .item").each(function(i) { - var th = parseInt($(this).find(".tc").height(),10); - var d = IH - th + 25; - $(this).find(".tc").css({ top: Math.round(d/2)+"px" }); - }); - - if (WW < 999) $("#menu").addClass("r"); - else $("#menu").removeClass("r"); - - onScroll(); - -} - -function moveReel(direction) { - - if (reelPointer) clearTimeout(reelPointer); - - var IN = $("#header .scroller .item").length; - var IW = $("#header .scroller .item").width(); - if (direction == "next") reel_currentIndex++; - else if (direction == "prev") reel_currentIndex--; - else reel_currentIndex = direction; - - if (reel_currentIndex >= IN) reel_currentIndex = 0; - if (reel_currentIndex < 0) reel_currentIndex = IN-1; - - $("#header .dots .dot").removeClass("sel"); - $("#header .dots .dot").eq(reel_currentIndex).addClass("sel"); - - $("#header .scroller").stop(false,true,false).animate({ marginLeft: -(reel_currentIndex * IW)+"px" }, 1000, "easeOutQuart"); - - reelPointer = setTimeout(function() { moveReel(1); },5000); - -} - -function onScroll() { - var ST = document.body.scrollTop || document.documentElement.scrollTop; - //if ($("#menu.r").length) { - // $("#menu.r").css({ top: ST+"px" }); - //} else { - // $("#menu").css({ top: "0px" }); - //} - - if (ST > 400) $("#subhead").addClass("show"); - else $("#subhead").removeClass("show"); -} +var reelPointer = null; +$(document).ready(function(e) { + + $(".aLeft").click(function() { + moveReel("prev"); + }); + $(".aRight").click(function() { + moveReel("next"); + }); + + if ($("#header .scroller .item").length == 1) { + + } else { + + $("#header .dots, .aLeft, .aRight").css({ display: 'block' }); + $("#header .scroller .item").each(function(i) { + $("#header .dots").append("<div class='dot'></div>"); + $("#header .dots .dot").eq(i).click(function() { + var index = $(this).prevAll(".dot").length; + moveReel(index); + }); + }); + + reelPointer = setTimeout(function() { moveReel(1); },5000); + } + + $("#menu ul li").each(function(index, element) { + if ($(this).find("ul").length) { + $(this).addClass("parent"); + } + }); + + $("#header .dots .dot:eq(0)").addClass("sel"); + + resized(); + + $(window).scroll(onScroll); + + var pathname = window.location.pathname; + var pathSlashesReplaced = pathname.replace(/\//g, " "); + var pathSlashesReplacedNoFirstDash = pathSlashesReplaced.replace(" ",""); + var newClass = pathSlashesReplacedNoFirstDash.replace(/(\.[\s\S]+)/ig, ""); + $("body").addClass(newClass); + if ( $("body").attr("class") == "") + { + $("body").addClass("class"); + } +}); + +var reel_currentIndex = 0; +function resized() { + + var WW = parseInt($(window).width(),10); + var IW = (WW < 999) ? 999 : WW; + var IH = parseInt($("#header .scroller .item").css("height"),10); + var IN = $("#header .scroller .item").length; + + $("#header .scroller").css({ width: (IN * IW)+"px", marginLeft: -(reel_currentIndex * IW)+"px" }); + $("#header .scroller .item").css({ width: IW+"px" }); + + + $("#header .scroller .item").each(function(i) { + var th = parseInt($(this).find(".tc").height(),10); + var d = IH - th + 25; + $(this).find(".tc").css({ top: Math.round(d/2)+"px" }); + }); + + if (WW < 999) $("#menu").addClass("r"); + else $("#menu").removeClass("r"); + + onScroll(); + +} + +function moveReel(direction) { + + if (reelPointer) clearTimeout(reelPointer); + + var IN = $("#header .scroller .item").length; + var IW = $("#header .scroller .item").width(); + if (direction == "next") reel_currentIndex++; + else if (direction == "prev") reel_currentIndex--; + else reel_currentIndex = direction; + + if (reel_currentIndex >= IN) reel_currentIndex = 0; + if (reel_currentIndex < 0) reel_currentIndex = IN-1; + + $("#header .dots .dot").removeClass("sel"); + $("#header .dots .dot").eq(reel_currentIndex).addClass("sel"); + + $("#header .scroller").stop(false,true,false).animate({ marginLeft: -(reel_currentIndex * IW)+"px" }, 1000, "easeOutQuart"); + + reelPointer = setTimeout(function() { moveReel(1); },5000); + +} + +function onScroll() { + var ST = document.body.scrollTop || document.documentElement.scrollTop; + //if ($("#menu.r").length) { + // $("#menu.r").css({ top: ST+"px" }); + //} else { + // $("#menu").css({ top: "0px" }); + //} + + if (ST > 400) $("#subhead").addClass("show"); + else $("#subhead").removeClass("show"); +} http://git-wip-us.apache.org/repos/asf/drill-site/blob/35463930/toc/index.html ---------------------------------------------------------------------- diff --git a/toc/index.html b/toc/index.html index eb08a4e..285059d 100644 --- a/toc/index.html +++ b/toc/index.html @@ -168,6 +168,8 @@ + + <li class="toctree-l2"><a class="reference internal" href="/docs/drill-introduction/">Drill Introduction</a></li> @@ -1018,6 +1020,8 @@ + + </ul> @@ -1486,6 +1490,8 @@ + + <li class="toctree-l2"><a class="reference internal" href="/docs/tutorials-introduction/">Tutorials Introduction</a></li> @@ -1982,6 +1988,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/about-the-mapr-sandbox/">About the MapR Sandbox</a></li> @@ -2211,6 +2219,8 @@ + + <li class="toctree-l2"><a class="reference internal" href="/docs/install-drill-introduction/">Install Drill Introduction</a></li> @@ -2395,6 +2405,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/embedded-mode-prerequisites/">Embedded Mode Prerequisites</a></li> @@ -2892,6 +2904,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/distributed-mode-prerequisites/">Distributed Mode Prerequisites</a></li> @@ -4111,6 +4125,8 @@ + + </ul> @@ -4637,6 +4653,8 @@ + + </ul> @@ -5061,6 +5079,8 @@ + + </ul> @@ -5671,6 +5691,8 @@ + + </ul> @@ -6077,6 +6099,8 @@ + + </ul> @@ -6279,6 +6303,8 @@ + + <li class="toctree-l2"><a class="reference internal" href="/docs/interfaces-introduction/">Interfaces Introduction</a></li> @@ -6521,6 +6547,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/installing-the-driver-on-linux/">Installing the Driver on Linux</a></li> @@ -7012,6 +7040,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/odbc-configuration-reference/">ODBC Configuration Reference</a></li> @@ -7533,6 +7563,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/drill-explorer-introduction/">Drill Explorer Introduction</a></li> @@ -8038,6 +8070,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/using-drill-with-bi-tools-introduction/">Using Drill with BI Tools Introduction</a></li> @@ -8881,6 +8915,8 @@ + + <li class="toctree-l2"><a class="reference internal" href="/docs/query-data-introduction/">Query Data Introduction</a></li> @@ -9191,6 +9227,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/querying-a-file-system-introduction/">Querying a File System Introduction</a></li> @@ -9711,6 +9749,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/querying-complex-data-introduction/">Querying Complex Data Introduction</a></li> @@ -10372,6 +10412,8 @@ + + <li class="toctree-l2"><a class="reference internal" href="/docs/performance-tuning-introduction/">Performance Tuning Introduction</a></li> @@ -10664,6 +10706,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/query-plans-and-tuning-introduction/">Query Plans and Tuning Introduction</a></li> @@ -11163,6 +11207,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/query-plans/">Query Plans</a></li> @@ -11664,6 +11710,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/query-profile-column-descriptions/">Query Profile Column Descriptions</a></li> @@ -12311,6 +12359,8 @@ + + <li class="toctree-l2"><a class="reference internal" href="/docs/log-and-debug-introduction/">Log and Debug Introduction</a></li> @@ -12993,6 +13043,8 @@ + + <li class="toctree-l2"><a class="reference internal" href="/docs/sql-reference-introduction/">SQL Reference Introduction</a></li> @@ -13375,6 +13427,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/supported-data-types/">Supported Data Types</a></li> @@ -13954,6 +14008,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/about-sql-function-examples/">About SQL Function Examples</a></li> @@ -14475,6 +14531,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/sql-window-functions-introduction/">SQL Window Functions Introduction</a></li> @@ -14902,6 +14960,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/nested-data-limitations/">Nested Data Limitations</a></li> @@ -15422,6 +15482,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/supported-sql-commands/">Supported SQL Commands</a></li> @@ -16011,6 +16073,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/case/">CASE</a></li> @@ -16717,6 +16781,8 @@ + + </ul> @@ -16854,7 +16920,14 @@ - <li class="toctree-l2"><a class="reference internal" href="/docs/develop-a-simple-function/">Develop a Simple Function</a></li> + <li class="toctree-l2"><a class="reference internal" href="/docs/developing-a-simple-function/">Developing a Simple Function</a></li> + + + + + + + <li class="toctree-l2"><a class="reference internal" href="/docs/tutorial-develop-a-simple-function/">Tutorial: Develop a Simple Function</a></li> @@ -17389,6 +17462,8 @@ + + <li class="toctree-l2"><a class="reference internal" href="/docs/develop-drill/">Develop Drill</a></li> @@ -17546,6 +17621,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/compiling-drill-from-source/">Compiling Drill from Source</a></li> @@ -18029,6 +18106,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/apache-drill-contribution-guidelines/">Apache Drill Contribution Guidelines</a></li> @@ -18530,6 +18609,8 @@ + + <li class="toctree-l3"><a class="reference internal" href="/docs/drill-plan-syntax/">Drill Plan Syntax</a></li> @@ -19561,6 +19642,8 @@ + + <li class="toctree-l2"><a class="reference internal" href="/docs/apache-drill-1-1-0-release-notes/">Apache Drill 1.1.0 Release Notes</a></li> @@ -20124,6 +20207,8 @@ + + <li class="toctree-l2"><a class="reference internal" href="/docs/aol-search/">AOL Search</a></li> @@ -20785,6 +20870,8 @@ + + </ul> @@ -21075,6 +21162,8 @@ + + <li class="toctree-l2"><a class="reference internal" href="/docs/2014-q1-drill-report/">2014 Q1 Drill Report</a></li> @@ -21736,6 +21825,8 @@ + + </ul> </div>
