update version

Change-Id: Iacd392d2659256589eb73c47403c00af936e26a8
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1466
Reviewed-by: Michael Blow <mb...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/asterixdb-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb-site/commit/bf2c56b0
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb-site/tree/bf2c56b0
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb-site/diff/bf2c56b0

Branch: refs/heads/asf-site
Commit: bf2c56b06be7bf81deb36918ff6ef987b263899d
Parents: 35091b4
Author: Ian Maxon <ian@maxons.email>
Authored: Tue Jan 24 14:14:49 2017 -0800
Committer: Ian Maxon <ima...@apache.org>
Committed: Tue Jan 24 17:48:13 2017 -0800

----------------------------------------------------------------------
 _config.yml                                     |   14 +-
 content/about.html                              |    4 +-
 content/community.html                          |    4 +-
 content/dev-setup.html                          |    8 +-
 content/docs/0.9.0/api.html                     |  626 ++
 content/docs/0.9.0/aql/externaldata.html        |  737 +++
 content/docs/0.9.0/aql/filters.html             |  292 +
 content/docs/0.9.0/aql/fulltext.html            |  333 +
 content/docs/0.9.0/aql/manual.html              | 1075 ++++
 content/docs/0.9.0/aql/primer.html              |  983 +++
 content/docs/0.9.0/aql/similarity.html          |  451 ++
 .../0.9.0/css/apache-maven-fluido-1.3.0.min.css |    9 +
 content/docs/0.9.0/css/print.css                |   23 +
 content/docs/0.9.0/css/site.css                 |    1 +
 content/docs/0.9.0/csv.html                     |  436 ++
 content/docs/0.9.0/data/chm.adm                 |   12 +
 content/docs/0.9.0/data/chu.adm                 |    4 +
 content/docs/0.9.0/data/fbm.adm                 |   15 +
 content/docs/0.9.0/data/fbu.adm                 |   10 +
 content/docs/0.9.0/data/gbm.adm                 |   15 +
 content/docs/0.9.0/data/gbu.adm                 |   10 +
 content/docs/0.9.0/data/lineitem.tbl            | 6005 ++++++++++++++++++
 content/docs/0.9.0/data/twm.adm                 |   12 +
 content/docs/0.9.0/data/twu.adm                 |    4 +
 content/docs/0.9.0/datamodel.html               |  883 +++
 content/docs/0.9.0/feeds/tutorial.html          |  442 ++
 content/docs/0.9.0/images/AsterixCluster.png    |  Bin 0 -> 95355 bytes
 .../0.9.0/images/accessories-text-editor.png    |  Bin 0 -> 746 bytes
 content/docs/0.9.0/images/add.gif               |  Bin 0 -> 397 bytes
 .../0.9.0/images/apache-maven-project-2.png     |  Bin 0 -> 33442 bytes
 .../0.9.0/images/application-certificate.png    |  Bin 0 -> 923 bytes
 content/docs/0.9.0/images/asf_logo_wide.png     |  Bin 0 -> 14470 bytes
 content/docs/0.9.0/images/asterix_webui.png     |  Bin 0 -> 55418 bytes
 content/docs/0.9.0/images/asterixlogo.png       |  Bin 0 -> 15334 bytes
 content/docs/0.9.0/images/contact-new.png       |  Bin 0 -> 736 bytes
 .../docs/0.9.0/images/document-properties.png   |  Bin 0 -> 577 bytes
 content/docs/0.9.0/images/drive-harddisk.png    |  Bin 0 -> 700 bytes
 content/docs/0.9.0/images/egg-logo.png          |  Bin 0 -> 8626 bytes
 content/docs/0.9.0/images/fix.gif               |  Bin 0 -> 366 bytes
 content/docs/0.9.0/images/hyrax_ts.png          |  Bin 0 -> 4949 bytes
 content/docs/0.9.0/images/icon_error_sml.gif    |  Bin 0 -> 633 bytes
 content/docs/0.9.0/images/icon_help_sml.gif     |  Bin 0 -> 1072 bytes
 content/docs/0.9.0/images/icon_info_sml.gif     |  Bin 0 -> 638 bytes
 content/docs/0.9.0/images/icon_success_sml.gif  |  Bin 0 -> 604 bytes
 content/docs/0.9.0/images/icon_warning_sml.gif  |  Bin 0 -> 625 bytes
 content/docs/0.9.0/images/image-x-generic.png   |  Bin 0 -> 662 bytes
 .../docs/0.9.0/images/internet-web-browser.png  |  Bin 0 -> 1017 bytes
 .../0.9.0/images/logos/build-by-maven-black.png |  Bin 0 -> 2294 bytes
 .../0.9.0/images/logos/build-by-maven-white.png |  Bin 0 -> 2260 bytes
 .../docs/0.9.0/images/logos/maven-feather.png   |  Bin 0 -> 3330 bytes
 content/docs/0.9.0/images/network-server.png    |  Bin 0 -> 536 bytes
 content/docs/0.9.0/images/package-x-generic.png |  Bin 0 -> 717 bytes
 .../docs/0.9.0/images/profiles/pre-release.png  |  Bin 0 -> 32607 bytes
 content/docs/0.9.0/images/profiles/retired.png  |  Bin 0 -> 22003 bytes
 content/docs/0.9.0/images/profiles/sandbox.png  |  Bin 0 -> 33010 bytes
 content/docs/0.9.0/images/remove.gif            |  Bin 0 -> 607 bytes
 content/docs/0.9.0/images/rss.png               |  Bin 0 -> 474 bytes
 content/docs/0.9.0/images/running_inst.png      |  Bin 0 -> 90641 bytes
 content/docs/0.9.0/images/update.gif            |  Bin 0 -> 1090 bytes
 content/docs/0.9.0/images/window-new.png        |  Bin 0 -> 583 bytes
 content/docs/0.9.0/images/yarn_clust.png        |  Bin 0 -> 61592 bytes
 .../0.9.0/img/glyphicons-halflings-white.png    |  Bin 0 -> 8777 bytes
 content/docs/0.9.0/img/glyphicons-halflings.png |  Bin 0 -> 12799 bytes
 content/docs/0.9.0/index.html                   |  284 +
 content/docs/0.9.0/install.html                 | 1315 ++++
 .../0.9.0/js/apache-maven-fluido-1.3.0.min.js   |   21 +
 content/docs/0.9.0/ncservice.html               |  749 +++
 content/docs/0.9.0/overview.html                |  314 +
 content/docs/0.9.0/sqlpp/primer-sqlpp.html      |  941 +++
 content/docs/0.9.0/udf.html                     |  408 ++
 content/docs/0.9.0/yarn.html                    |  713 +++
 content/download.html                           |    8 +-
 content/extension.html                          |    4 +-
 content/index.html                              |   24 +-
 content/pushing.html                            |    4 +-
 content/site.html                               |    4 +-
 content/tools.html                              |    4 +-
 docs/0.9.0/api.html                             |  626 ++
 docs/0.9.0/aql/externaldata.html                |  737 +++
 docs/0.9.0/aql/filters.html                     |  292 +
 docs/0.9.0/aql/fulltext.html                    |  333 +
 docs/0.9.0/aql/manual.html                      | 1075 ++++
 docs/0.9.0/aql/primer.html                      |  983 +++
 docs/0.9.0/aql/similarity.html                  |  451 ++
 .../0.9.0/css/apache-maven-fluido-1.3.0.min.css |    9 +
 docs/0.9.0/css/print.css                        |   23 +
 docs/0.9.0/css/site.css                         |    1 +
 docs/0.9.0/csv.html                             |  436 ++
 docs/0.9.0/data/chm.adm                         |   12 +
 docs/0.9.0/data/chu.adm                         |    4 +
 docs/0.9.0/data/fbm.adm                         |   15 +
 docs/0.9.0/data/fbu.adm                         |   10 +
 docs/0.9.0/data/gbm.adm                         |   15 +
 docs/0.9.0/data/gbu.adm                         |   10 +
 docs/0.9.0/data/lineitem.tbl                    | 6005 ++++++++++++++++++
 docs/0.9.0/data/twm.adm                         |   12 +
 docs/0.9.0/data/twu.adm                         |    4 +
 docs/0.9.0/datamodel.html                       |  883 +++
 docs/0.9.0/feeds/tutorial.html                  |  442 ++
 docs/0.9.0/images/AsterixCluster.png            |  Bin 0 -> 95355 bytes
 docs/0.9.0/images/accessories-text-editor.png   |  Bin 0 -> 746 bytes
 docs/0.9.0/images/add.gif                       |  Bin 0 -> 397 bytes
 docs/0.9.0/images/apache-maven-project-2.png    |  Bin 0 -> 33442 bytes
 docs/0.9.0/images/application-certificate.png   |  Bin 0 -> 923 bytes
 docs/0.9.0/images/asf_logo_wide.png             |  Bin 0 -> 14470 bytes
 docs/0.9.0/images/asterix_webui.png             |  Bin 0 -> 55418 bytes
 docs/0.9.0/images/asterixlogo.png               |  Bin 0 -> 15334 bytes
 docs/0.9.0/images/contact-new.png               |  Bin 0 -> 736 bytes
 docs/0.9.0/images/document-properties.png       |  Bin 0 -> 577 bytes
 docs/0.9.0/images/drive-harddisk.png            |  Bin 0 -> 700 bytes
 docs/0.9.0/images/egg-logo.png                  |  Bin 0 -> 8626 bytes
 docs/0.9.0/images/fix.gif                       |  Bin 0 -> 366 bytes
 docs/0.9.0/images/hyrax_ts.png                  |  Bin 0 -> 4949 bytes
 docs/0.9.0/images/icon_error_sml.gif            |  Bin 0 -> 633 bytes
 docs/0.9.0/images/icon_help_sml.gif             |  Bin 0 -> 1072 bytes
 docs/0.9.0/images/icon_info_sml.gif             |  Bin 0 -> 638 bytes
 docs/0.9.0/images/icon_success_sml.gif          |  Bin 0 -> 604 bytes
 docs/0.9.0/images/icon_warning_sml.gif          |  Bin 0 -> 625 bytes
 docs/0.9.0/images/image-x-generic.png           |  Bin 0 -> 662 bytes
 docs/0.9.0/images/internet-web-browser.png      |  Bin 0 -> 1017 bytes
 .../0.9.0/images/logos/build-by-maven-black.png |  Bin 0 -> 2294 bytes
 .../0.9.0/images/logos/build-by-maven-white.png |  Bin 0 -> 2260 bytes
 docs/0.9.0/images/logos/maven-feather.png       |  Bin 0 -> 3330 bytes
 docs/0.9.0/images/network-server.png            |  Bin 0 -> 536 bytes
 docs/0.9.0/images/package-x-generic.png         |  Bin 0 -> 717 bytes
 docs/0.9.0/images/profiles/pre-release.png      |  Bin 0 -> 32607 bytes
 docs/0.9.0/images/profiles/retired.png          |  Bin 0 -> 22003 bytes
 docs/0.9.0/images/profiles/sandbox.png          |  Bin 0 -> 33010 bytes
 docs/0.9.0/images/remove.gif                    |  Bin 0 -> 607 bytes
 docs/0.9.0/images/rss.png                       |  Bin 0 -> 474 bytes
 docs/0.9.0/images/running_inst.png              |  Bin 0 -> 90641 bytes
 docs/0.9.0/images/update.gif                    |  Bin 0 -> 1090 bytes
 docs/0.9.0/images/window-new.png                |  Bin 0 -> 583 bytes
 docs/0.9.0/images/yarn_clust.png                |  Bin 0 -> 61592 bytes
 docs/0.9.0/img/glyphicons-halflings-white.png   |  Bin 0 -> 8777 bytes
 docs/0.9.0/img/glyphicons-halflings.png         |  Bin 0 -> 12799 bytes
 docs/0.9.0/index.html                           |  284 +
 docs/0.9.0/install.html                         | 1315 ++++
 docs/0.9.0/js/apache-maven-fluido-1.3.0.min.js  |   21 +
 docs/0.9.0/ncservice.html                       |  749 +++
 docs/0.9.0/overview.html                        |  314 +
 docs/0.9.0/sqlpp/primer-sqlpp.html              |  941 +++
 docs/0.9.0/udf.html                             |  408 ++
 docs/0.9.0/yarn.html                            |  713 +++
 144 files changed, 34286 insertions(+), 38 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/bf2c56b0/_config.yml
----------------------------------------------------------------------
diff --git a/_config.yml b/_config.yml
index 90afade..d9389d8 100644
--- a/_config.yml
+++ b/_config.yml
@@ -1,12 +1,14 @@
 url: ""
 name: "Apache AsterixDB"
 
-STABLE_VERSION: 0.8.8-incubating
-UNSTABLE_VERSION: 0.8.9-SNAPSHOT
-STABLE_DOWNLOAD_URL: 
"http://www.apache.org/dyn/closer.lua/asterixdb/asterixdb-0.8.8-incubating/asterix-installer-0.8.8-incubating-binary-assembly.zip";
-UNSTABLE_DOWNLOAD_URL: 
"https://asterix-jenkins.ics.uci.edu/job/asterix-integration-tests/lastSuccessfulBuild/org.apache.asterix$asterix-installer/artifact/org.apache.asterix/asterix-installer/0.8.9-SNAPSHOT/asterix-installer-0.8.9-SNAPSHOT-binary-assembly.zip";
-STABLE_YARN_URL: 
"http://www.apache.org/dyn/closer.lua/asterixdb/asterixdb-0.8.8-incubating/asterix-yarn-0.8.8-incubating-binary-assembly.zip";
-UNSTABLE_YARN_URL: 
"https://asterix-jenkins.ics.uci.edu/job/asterix-integration-tests/lastSuccessfulBuild/org.apache.asterix$asterix-yarn/artifact/org.apache.asterix/asterix-yarn/0.8.9-SNAPSHOT/asterix-yarn-0.8.9-SNAPSHOT-binary-assembly.zip";
+STABLE_VERSION: 0.9.0
+UNSTABLE_VERSION: 0.9.1-SNAPSHOT
+STABLE_DOWNLOAD_URL: 
"http://www.apache.org/dyn/closer.lua/asterixdb/asterixdb-0.9.0/asterix-installer-0.9.0-binary-assembly.zip";
+UNSTABLE_DOWNLOAD_URL: 
"https://asterix-jenkins.ics.uci.edu/job/asterix-integration-tests/lastSuccessfulBuild/org.apache.asterix$asterix-installer/artifact/org.apache.asterix/asterix-installer/0.9.1-SNAPSHOT/asterix-installer-0.9.1-SNAPSHOT-binary-assembly.zip";
+STABLE_YARN_URL: 
"http://www.apache.org/dyn/closer.lua/asterixdb/asterixdb-0.9.0/asterix-yarn-0.9.0-binary-assembly.zip";
+UNSTABLE_YARN_URL: 
"https://asterix-jenkins.ics.uci.edu/job/asterix-integration-tests/lastSuccessfulBuild/org.apache.asterix$asterix-yarn/artifact/org.apache.asterix/asterix-yarn/0.9.1-SNAPSHOT/asterix-yarn-0.9.1-SNAPSHOT-binary-assembly.zip";
+STABLE_NCSERVICE_URL: 
"http://www.apache.org/dyn/closer.lua/asterixdb/asterixdb-0.9.0/asterix-server-0.9.0-binary-assembly.zip";
+UNSTABLE_NCSERVICE_URL: 
"https://asterix-jenkins.ics.uci.edu/job/asterix-integration-tests/lastSuccessfulBuild/org.apache.asterix$asterix-server/artifact/org.apache.asterix/asterix-server/0.9.1-SNAPSHOT/asterix-server-0.9.1-SNAPSHOT-binary-assembly.zip";
 DOCS_BASE_URL: "docs"
 UNSTABLE_DOCS_BASE_URL: "https://ci.apache.org/projects/asterixdb/";
 ICS_DOWNLOAD_BASE_URL: "https://asterixdb.ics.uci.edu/download";

http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/bf2c56b0/content/about.html
----------------------------------------------------------------------
diff --git a/content/about.html b/content/about.html
index 1d48a19..01672ea 100644
--- a/content/about.html
+++ b/content/about.html
@@ -53,10 +53,10 @@
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" 
role="button" aria-expanded="false">Documentation<span class="caret"></span></a>
                 <ul class="dropdown-menu" role="menu">
                   <li class="dropdown-header">Stable release</li>
-                  <li><a href="docs/0.8.8-incubating/index.html">Documentation 
for 0.8.8-incubating<i class="fa fa-external-link fa-sm"></i></a></li>
+                  <li><a href="docs/0.9.0/index.html">Documentation for 
0.9.0<i class="fa fa-external-link fa-sm"></i></a></li>
                   <li class="divider"></li>
                   <li class="dropdown-header">Snapshot release</li>
-                  <li><a 
href="https://ci.apache.org/projects/asterixdb/index.html";>Documentation for 
0.8.9-SNAPSHOT  <i class="fa fa-external-link fa-sm"></i></a></li>
+                  <li><a 
href="https://ci.apache.org/projects/asterixdb/index.html";>Documentation for 
0.9.1-SNAPSHOT  <i class="fa fa-external-link fa-sm"></i></a></li>
                 </ul>
               </li>
               <li><a href="about.html">About</a></li>

http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/bf2c56b0/content/community.html
----------------------------------------------------------------------
diff --git a/content/community.html b/content/community.html
index 8ada863..f506d15 100644
--- a/content/community.html
+++ b/content/community.html
@@ -53,10 +53,10 @@
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" 
role="button" aria-expanded="false">Documentation<span class="caret"></span></a>
                 <ul class="dropdown-menu" role="menu">
                   <li class="dropdown-header">Stable release</li>
-                  <li><a href="docs/0.8.8-incubating/index.html">Documentation 
for 0.8.8-incubating<i class="fa fa-external-link fa-sm"></i></a></li>
+                  <li><a href="docs/0.9.0/index.html">Documentation for 
0.9.0<i class="fa fa-external-link fa-sm"></i></a></li>
                   <li class="divider"></li>
                   <li class="dropdown-header">Snapshot release</li>
-                  <li><a 
href="https://ci.apache.org/projects/asterixdb/index.html";>Documentation for 
0.8.9-SNAPSHOT  <i class="fa fa-external-link fa-sm"></i></a></li>
+                  <li><a 
href="https://ci.apache.org/projects/asterixdb/index.html";>Documentation for 
0.9.1-SNAPSHOT  <i class="fa fa-external-link fa-sm"></i></a></li>
                 </ul>
               </li>
               <li><a href="about.html">About</a></li>

http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/bf2c56b0/content/dev-setup.html
----------------------------------------------------------------------
diff --git a/content/dev-setup.html b/content/dev-setup.html
index da9f7d3..e9a2f9e 100644
--- a/content/dev-setup.html
+++ b/content/dev-setup.html
@@ -53,10 +53,10 @@
                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" 
role="button" aria-expanded="false">Documentation<span class="caret"></span></a>
                 <ul class="dropdown-menu" role="menu">
                   <li class="dropdown-header">Stable release</li>
-                  <li><a href="docs/0.8.8-incubating/index.html">Documentation 
for 0.8.8-incubating<i class="fa fa-external-link fa-sm"></i></a></li>
+                  <li><a href="docs/0.9.0/index.html">Documentation for 
0.9.0<i class="fa fa-external-link fa-sm"></i></a></li>
                   <li class="divider"></li>
                   <li class="dropdown-header">Snapshot release</li>
-                  <li><a 
href="https://ci.apache.org/projects/asterixdb/index.html";>Documentation for 
0.8.9-SNAPSHOT  <i class="fa fa-external-link fa-sm"></i></a></li>
+                  <li><a 
href="https://ci.apache.org/projects/asterixdb/index.html";>Documentation for 
0.9.1-SNAPSHOT  <i class="fa fa-external-link fa-sm"></i></a></li>
                 </ul>
               </li>
               <li><a href="about.html">About</a></li>
@@ -147,10 +147,10 @@ A great way to start contributing is to pick a bug 
labelled starter in JIRA and
 <p>If you are a developer simply looking for a snapshot of the latest 
development version of AsterixDB to test out your application that is based on 
top of AsterixDB, snapshots from the latest successful push to our master 
branch are available below. These are non ASF-release, automatic builds.</p>
 
 <h3 id="managix-installer">Managix Installer</h3>
-<p><a class="btn btn-md btn-warning" 
href="https://asterix-jenkins.ics.uci.edu/job/asterix-integration-tests/lastSuccessfulBuild/org.apache.asterix$asterix-installer/artifact/org.apache.asterix/asterix-installer/0.8.9-SNAPSHOT/asterix-installer-0.8.9-SNAPSHOT-binary-assembly.zip";
 role="button">Download AsterixDB 0.8.9-SNAPSHOT <i class="fa fa-download 
fa-lg"></i> </a></p>
+<p><a class="btn btn-md btn-warning" 
href="https://asterix-jenkins.ics.uci.edu/job/asterix-integration-tests/lastSuccessfulBuild/org.apache.asterix$asterix-installer/artifact/org.apache.asterix/asterix-installer/0.9.1-SNAPSHOT/asterix-installer-0.9.1-SNAPSHOT-binary-assembly.zip";
 role="button">Download AsterixDB 0.9.1-SNAPSHOT <i class="fa fa-download 
fa-lg"></i> </a></p>
 
 <h3 id="yarn-installer">YARN Installer</h3>
-<p><a class="btn btn-md btn-warning" 
href="https://asterix-jenkins.ics.uci.edu/job/asterix-integration-tests/lastSuccessfulBuild/org.apache.asterix$asterix-yarn/artifact/org.apache.asterix/asterix-yarn/0.8.9-SNAPSHOT/asterix-yarn-0.8.9-SNAPSHOT-binary-assembly.zip";
 role="button">Download AsterixDB 0.8.9-SNAPSHOT <i class="fa fa-download 
fa-lg"></i> </a></p>
+<p><a class="btn btn-md btn-warning" 
href="https://asterix-jenkins.ics.uci.edu/job/asterix-integration-tests/lastSuccessfulBuild/org.apache.asterix$asterix-yarn/artifact/org.apache.asterix/asterix-yarn/0.9.1-SNAPSHOT/asterix-yarn-0.9.1-SNAPSHOT-binary-assembly.zip";
 role="button">Download AsterixDB 0.9.1-SNAPSHOT <i class="fa fa-download 
fa-lg"></i> </a></p>
 
 <hr />
 

http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/bf2c56b0/content/docs/0.9.0/api.html
----------------------------------------------------------------------
diff --git a/content/docs/0.9.0/api.html b/content/docs/0.9.0/api.html
new file mode 100644
index 0000000..1cb9a25
--- /dev/null
+++ b/content/docs/0.9.0/api.html
@@ -0,0 +1,626 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2017-01-24
+ | Rendered using Apache Maven Fluido Skin 1.3.0
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20170124" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>AsterixDB &#x2013; HTTP API to AsterixDB</title>
+    <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
+    <link rel="stylesheet" href="./css/site.css" />
+    <link rel="stylesheet" href="./css/print.css" media="print" />
+
+      
+    <script type="text/javascript" 
src="./js/apache-maven-fluido-1.3.0.min.js"></script>
+
+                          
+        
+<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-41536543-1', 'uci.edu');
+        ga('send', 'pageview');</script>
+          
+            </head>
+        <body class="topBarDisabled">
+          
+                
+                    
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                                  <a href="./" id="bannerLeft">
+                                                                               
                 <img src="images/asterixlogo.png"  alt="AsterixDB"/>
+                </a>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                  <li id="publishDate">Last Published: 2017-01-24</li>
+                      
+                
+                    
+                 <li id="projectVersion" class="pull-right">Version: 0.9.0</li>
+      
+                                            <li class="divider 
pull-right">|</li>
+                        
+    <li class="pull-right">              <a href="index.html" 
title="Documentation Home">
+        Documentation Home</a>
+  </li>
+
+                        </ul>
+      </div>
+
+            
+      <div class="row-fluid">
+        <div id="leftColumn" class="span3">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Get Started - Installation</li>
+                                
+      <li>
+    
+                          <a href="ncservice.html" title="Option 1: using 
NCService">
+          <i class="none"></i>
+        Option 1: using NCService</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="install.html" title="Option 2: using 
Managix">
+          <i class="none"></i>
+        Option 2: using Managix</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="yarn.html" title="Option 3: using YARN">
+          <i class="none"></i>
+        Option 3: using YARN</a>
+            </li>
+                              <li class="nav-header">AsterixDB Primer</li>
+                                
+      <li>
+    
+                          <a href="sqlpp/primer-sqlpp.html" title="Option 1: 
using SQL++">
+          <i class="none"></i>
+        Option 1: using SQL++</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="aql/primer.html" title="Option 2: using 
AQL">
+          <i class="none"></i>
+        Option 2: using AQL</a>
+            </li>
+                              <li class="nav-header">Data Model</li>
+                                
+      <li>
+    
+                          <a href="datamodel.html" title="The Asterix Data 
Model">
+          <i class="none"></i>
+        The Asterix Data Model</a>
+            </li>
+                              <li class="nav-header">Queries - SQL++</li>
+                                
+      <li>
+    
+                          <a href="sqlpp/manual.html" title="The SQL++ Query 
Language">
+          <i class="none"></i>
+        The SQL++ Query Language</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="sqlpp/builtins.html" title="Builtin 
Functions">
+          <i class="none"></i>
+        Builtin Functions</a>
+            </li>
+                              <li class="nav-header">Queries - AQL</li>
+                                
+      <li>
+    
+                          <a href="aql/manual.html" title="The Asterix Query 
Language (AQL)">
+          <i class="none"></i>
+        The Asterix Query Language (AQL)</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="aql/builtins.html" title="Builtin 
Functions">
+          <i class="none"></i>
+        Builtin Functions</a>
+            </li>
+                              <li class="nav-header">Advanced Features</li>
+                                
+      <li>
+    
+                          <a href="aql/similarity.html" title="Support of 
Similarity Queries">
+          <i class="none"></i>
+        Support of Similarity Queries</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="aql/fulltext.html" title="Support of 
Full-text Queries">
+          <i class="none"></i>
+        Support of Full-text Queries</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="aql/externaldata.html" title="Accessing 
External Data">
+          <i class="none"></i>
+        Accessing External Data</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="feeds/tutorial.html" title="Support for 
Data Ingestion">
+          <i class="none"></i>
+        Support for Data Ingestion</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="udf.html" title="User Defined Functions">
+          <i class="none"></i>
+        User Defined Functions</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="aql/filters.html" title="Filter-Based LSM 
Index Acceleration">
+          <i class="none"></i>
+        Filter-Based LSM Index Acceleration</a>
+            </li>
+                              <li class="nav-header">API/SDK</li>
+                                
+      <li class="active">
+    
+            <a href="#"><i class="none"></i>HTTP API</a>
+          </li>
+            </ul>
+                
+                    
+                
+          <hr class="divider" />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                                                                               
                                          <a href="./" title="AsterixDB" 
class="builtBy">
+        <img class="builtBy"  alt="AsterixDB" src="images/asterixlogo.png"    
/>
+      </a>
+                      </div>
+          </div>
+        </div>
+        
+                
+        <div id="bodyColumn"  class="span9" >
+                                  
+            <!-- ! Licensed to the Apache Software Foundation (ASF) under one
+ ! or more contributor license agreements.  See the NOTICE file
+ ! distributed with this work for additional information
+ ! regarding copyright ownership.  The ASF licenses this file
+ ! to you under the Apache License, Version 2.0 (the
+ ! "License"); you may not use this file except in compliance
+ ! with the License.  You may obtain a copy of the License at
+ !
+ !   http://www.apache.org/licenses/LICENSE-2.0
+ !
+ ! Unless required by applicable law or agreed to in writing,
+ ! software distributed under the License is distributed on an
+ ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ! KIND, either express or implied.  See the License for the
+ ! specific language governing permissions and limitations
+ ! under the License.
+ ! --><h1>HTTP API to AsterixDB</h1>
+<div class="section">
+<h2><a name="Table_of_Contents"></a><a name="toc" id="toc">Table of 
Contents</a></h2>
+
+<ul>
+  
+<li><a href="#DdlApi">DDL API</a></li>
+  
+<li><a href="#UpdateApi">Update API</a></li>
+  
+<li><a href="#QueryApi">Query API</a></li>
+  
+<li><a href="#AnyApi">Mixed API</a></li>
+  
+<li><a href="#AsynchronousResultApi">Asynchronous Result API</a></li>
+  
+<li><a href="#QueryStatusApi">Query Status API</a></li>
+  
+<li><a href="#ErrorCodes">Error Codes</a></li>
+</ul></div>
+<div class="section">
+<h2><a name="DDL_API_Back_to_TOC"></a><a name="DdlApi" id="DdlApi">DDL API</a> 
<font size="4"><a href="#toc">[Back to TOC]</a></font></h2>
+<p><i>End point for the data definition statements</i></p>
+<p>Endpoint: <i>/ddl</i></p>
+<p>Parameters:</p>
+
+<table border="0" class="table table-striped">
+
+<tr class="a">
+  
+<td>Parameter</td>
+  
+<td>Description</td>
+  
+<td>Required?</td>
+</tr>
+
+<tr class="b">
+  
+<td>ddl</td>
+  
+<td>String containing DDL statements to modify Metadata</td>
+  
+<td>Yes</td>
+</tr>
+</table>
+<p>This call does not return any result. If the operations were successful, 
HTTP OK status code is returned.</p>
+<div class="section">
+<h3><a name="Example"></a>Example</h3>
+<div class="section">
+<h4><a name="DDL_Statements"></a>DDL Statements</h4>
+
+<div class="source">
+<div class="source">
+<pre>    drop dataverse company if exists;
+    create dataverse company;
+    use dataverse company;
+
+    create type Emp as open {
+      id : int32,
+      name : string
+    };
+
+    create dataset Employee(Emp) primary key id;
+</pre></div></div>
+<p>API call for the above DDL statements in the URL-encoded form.</p>
+<p>[http://localhost:19002/ddl?ddl=drop%20dataverse%20company%20if%20exists;create%20dataverse%20company;use%20dataverse%20company;create%20type%20Emp%20as%20open%20{id%20:%20int32,name%20:%20string};create%20dataset%20Employee(Emp)%20primary%20key%20id;](<a
 class="externalLink" 
href="http://localhost:19002/ddl?ddl=drop%20dataverse%20company%20if%20exists;create%20dataverse%20company;use%20dataverse%20company;create%20type%20Emp%20as%20open%20{id%20:%20int32,name%20:%20string};create%20dataset%20Employee(Emp)%20primary%20key%20id;">http://localhost:19002/ddl?ddl=drop%20dataverse%20company%20if%20exists;create%20dataverse%20company;use%20dataverse%20company;create%20type%20Emp%20as%20open%20{id%20:%20int32,name%20:%20string};create%20dataset%20Employee(Emp)%20primary%20key%20id;</a>)</p></div>
+<div class="section">
+<h4><a name="Response"></a>Response</h4>
+<p><i>HTTP OK 200</i><br /><tt>&lt;NO PAYLOAD&gt;</tt></p></div></div></div>
+<div class="section">
+<h2><a name="Update_API_Back_to_TOC"></a><a name="UpdateApi" 
id="UpdateApi">Update API</a> <font size="4"><a href="#toc">[Back to 
TOC]</a></font></h2>
+<p><i>End point for update statements (INSERT, DELETE and LOAD)</i></p>
+<p>Endpoint: <i>/update</i></p>
+<p>Parameters:</p>
+
+<table border="0" class="table table-striped">
+
+<tr class="a">
+  
+<td>Parameter</td>
+  
+<td>Description</td>
+  
+<td>Required?</td>
+</tr>
+
+<tr class="b">
+  
+<td>statements</td>
+  
+<td>String containing update (insert/delete) statements to execute</td>
+  
+<td>Yes</td>
+</tr>
+</table>
+<p>This call does not return any result. If the operations were successful, 
HTTP OK status code is returned.</p>
+<div class="section">
+<h3><a name="Example"></a>Example</h3>
+<div class="section">
+<h4><a name="Update_Statements"></a>Update Statements</h4>
+
+<div class="source">
+<div class="source">
+<pre>    use dataverse company;
+
+    insert into dataset Employee({ 
&quot;id&quot;:123,&quot;name&quot;:&quot;John Doe&quot;});
+</pre></div></div>
+<p>API call for the above update statement in the URL-encoded form.</p>
+<p>[http://localhost:19002/update?statements=use%20dataverse%20company;insert%20into%20dataset%20Employee({%20%22id%22:123,%22name%22:%22John%20Doe%22});](<a
 class="externalLink" 
href="http://localhost:19002/update?statements=use%20dataverse%20company;insert%20into%20dataset%20Employee({%20%22id%22:123,%22name%22:%22John%20Doe%22});">http://localhost:19002/update?statements=use%20dataverse%20company;insert%20into%20dataset%20Employee({%20%22id%22:123,%22name%22:%22John%20Doe%22});</a>)</p></div>
+<div class="section">
+<h4><a name="Response"></a>Response</h4>
+<p><i>HTTP OK 200</i><br /><tt>&lt;NO PAYLOAD&gt;</tt></p></div></div></div>
+<div class="section">
+<h2><a name="Query_API_Back_to_TOC"></a><a name="QueryApi" id="QueryApi">Query 
API</a> <font size="4"><a href="#toc">[Back to TOC]</a></font></h2>
+<p><i>End point for query statements</i></p>
+<p>Endpoint: <i>/query</i></p>
+<p>Parameters:</p>
+
+<table border="0" class="table table-striped">
+
+<tr class="a">
+  
+<td>Parameter</td>
+  
+<td>Description</td>
+  
+<td>Required?</td>
+</tr>
+
+<tr class="b">
+  
+<td>query</td>
+  
+<td>Query string to pass to ASTERIX for execution</td>
+  
+<td>Yes</td>
+</tr>
+
+<tr class="a">
+  
+<td>mode</td>
+  
+<td>Indicate if call should be synchronous or asynchronous. mode = synchronous 
blocks the call until results are available; mode = asynchronous returns 
immediately with a handle that can be used later to check the query&#x2019;s 
status and to fetch results when available</td>
+  
+<td>No. default mode = synchronous</td>
+</tr>
+</table>
+<p>Result: The result is returned as a JSON object as follows</p>
+
+<div class="source">
+<div class="source">
+<pre>    {
+       results: &lt;result as a string, if mode = synchronous&gt;
+       error-code: [&lt;code&gt;, &lt;message&gt;] (if an error occurs)
+       handle: &lt;opaque result handle, if mode = asynchronous&gt;
+    }
+</pre></div></div>
+<div class="section">
+<h3><a name="Example"></a>Example</h3>
+<div class="section">
+<h4><a name="Select_query_with_synchronous_result_delivery"></a>Select query 
with synchronous result delivery</h4>
+
+<div class="source">
+<div class="source">
+<pre>    use dataverse company;
+
+    for $l in dataset('Employee') return $l;
+</pre></div></div>
+<p>API call for the above query statement in the URL-encoded form.</p>
+<p>[http://localhost:19002/query?query=use%20dataverse%20company;for%20$l%20in%20dataset(&#x2018;Employee&#x2019;)%20return%20$l;](<a
 class="externalLink" 
href="http://localhost:19002/query?query=use%20dataverse%20company;for%20$l%20in%20dataset(&apos;Employee&apos;)%20return%20$l;">http://localhost:19002/query?query=use%20dataverse%20company;for%20$l%20in%20dataset('Employee')%20return%20$l;</a>)</p></div>
+<div class="section">
+<h4><a name="Response"></a>Response</h4>
+<p><i>HTTP OK 200</i><br />Payload</p>
+
+<div class="source">
+<div class="source">
+<pre>    {
+      &quot;results&quot;: [
+          [
+              &quot;{ &quot;id&quot;: 123, &quot;name&quot;: &quot;John 
Doe&quot; }&quot;
+          ]
+      ]
+    }
+</pre></div></div></div>
+<div class="section">
+<h4><a name="Same_select_query_with_asynchronous_result_delivery"></a>Same 
select query with asynchronous result delivery</h4>
+<p>API call for the above query statement in the URL-encoded form with 
mode=asynchronous</p>
+<p>[http://localhost:19002/query?query=use%20dataverse%20company;for%20$l%20in%20dataset(&#x2018;Employee&#x2019;)%20return%20$l;&amp;mode=asynchronous](<a
 class="externalLink" 
href="http://localhost:19002/query?query=use%20dataverse%20company;for%20$l%20in%20dataset(&apos;Employee&apos;)%20return%20$l;&amp;mode=asynchronous">http://localhost:19002/query?query=use%20dataverse%20company;for%20$l%20in%20dataset('Employee')%20return%20$l;&amp;mode=asynchronous</a>)</p></div>
+<div class="section">
+<h4><a name="Response"></a>Response</h4>
+<p><i>HTTP OK 200</i><br />Payload</p>
+
+<div class="source">
+<div class="source">
+<pre>    {
+        &quot;handle&quot;: [45,0]
+    }
+</pre></div></div></div></div></div>
+<div class="section">
+<h2><a name="Mixed_API_Back_to_TOC"></a><a name="AnyApi" id="AnyApi">Mixed 
API</a> <font size="4"><a href="#toc">[Back to TOC]</a></font></h2>
+<p><i>End point for any/mixed statement</i></p>
+<p>Endpoint: <i>/aql</i></p>
+<p>Parameters:</p>
+
+<table border="0" class="table table-striped">
+
+<tr class="a">
+  
+<td>Parameter</td>
+  
+<td>Description</td>
+  
+<td>Required?</td>
+</tr>
+
+<tr class="b">
+  
+<td>query</td>
+  
+<td>Query string to pass to ASTERIX for execution</td>
+  
+<td>Yes</td>
+</tr>
+
+<tr class="a">
+  
+<td>mode</td>
+  
+<td>Indicate if call should be synchronous or asynchronous. mode = synchronous 
blocks the call until results are available; mode = asynchronous returns 
immediately with a handle that can be used later to check the query&#x2019;s 
status and to fetch results when available</td>
+  
+<td>No. default mode = synchronous</td>
+</tr>
+</table>
+<p>Similar to <i><i>/update</i></i> but allows any arbitrary AQL statement 
rather than only modifications.</p></div>
+<div class="section">
+<h2><a name="Asynchronous_Result_API_Back_to_TOC"></a><a 
name="AsynchronousResultApi" id="AsynchronousResultApi">Asynchronous Result 
API</a> <font size="4"><a href="#toc">[Back to TOC]</a></font></h2>
+<p><i>End point to fetch the results of an asynchronous query</i></p>
+<p>Endpoint: <i>/query/result</i></p>
+<p>Parameters:</p>
+
+<table border="0" class="table table-striped">
+
+<tr class="a">
+  
+<td>Parameter</td>
+  
+<td>Description</td>
+  
+<td>Required?</td>
+</tr>
+
+<tr class="b">
+  
+<td>handle</td>
+  
+<td>Result handle that was returned by a previous call to a /query call with 
mode = asynchronous</td>
+  
+<td>Yes</td>
+</tr>
+</table>
+<p>Result: The result is returned as a JSON object as follows:</p>
+
+<div class="source">
+<div class="source">
+<pre>    {
+       results: &lt;result as a string, if mode = synchronous, or mode = 
asynchronous and results are available&gt;
+       error-code: [&lt;code&gt;, &lt;message&gt;] (if an error occurs)
+    }
+</pre></div></div>
+<p>If mode = asynchronous and results are not available, the returned JSON 
object is empty: { }</p>
+<div class="section">
+<h3><a name="Example"></a>Example</h3>
+<div class="section">
+<h4><a name="Fetching_results_for_asynchronous_query"></a>Fetching results for 
asynchronous query</h4>
+<p>We use the handle returned by the asynchronous query to get the results for 
the query. The handle returned was:</p>
+
+<div class="source">
+<div class="source">
+<pre>    {
+        &quot;handle&quot;: [45,0]
+    }
+</pre></div></div>
+<p>API call for reading results from the previous asynchronous query in the 
URL-encoded form.</p>
+<p><a class="externalLink" 
href="http://localhost:19002/query/result?handle=%7B%22handle%22%3A+%5B45%2C+0%5D%7D";>http://localhost:19002/query/result?handle=%7B%22handle%22%3A+%5B45%2C+0%5D%7D</a></p></div>
+<div class="section">
+<h4><a name="Response"></a>Response</h4>
+<p><i>HTTP OK 200</i><br />Payload</p>
+
+<div class="source">
+<div class="source">
+<pre>    {
+      &quot;results&quot;: [
+          [
+              &quot;{ &quot;id&quot;: 123, &quot;name&quot;: &quot;John 
Doe&quot; }&quot;
+          ]
+      ]
+    }
+</pre></div></div></div></div></div>
+<div class="section">
+<h2><a name="Query_Status_API_Back_to_TOC"></a><a name="QueryStatusApi" 
id="QueryStatusApi">Query Status API</a> <font size="4"><a href="#toc">[Back to 
TOC]</a></font></h2>
+<p><i>End point to check the status of the query asynchronous</i></p>
+<p>Endpoint: <i>/query/status</i></p>
+<p>Parameters:</p>
+
+<table border="0" class="table table-striped">
+
+<tr class="a">
+  
+<td>Parameter</td>
+  
+<td>Description</td>
+  
+<td>Required?</td>
+</tr>
+
+<tr class="b">
+  
+<td>handle</td>
+  
+<td>Result handle that was returned by a previous call to a /query call with 
mode = asynchronous</td>
+  
+<td>Yes</td>
+</tr>
+</table>
+<p>Result: The result is returned as a JSON object as follows:</p>
+
+<div class="source">
+<div class="source">
+<pre>    {
+       status: (&quot;RUNNING&quot; | &quot;SUCCESS&quot; | &quot;ERROR&quot;)
+    }
+</pre></div></div></div>
+<div class="section">
+<h2><a name="Error_Codes_Back_to_TOC"></a><a name="ErrorCodes" 
id="ErrorCodes">Error Codes</a> <font size="4"><a href="#toc">[Back to 
TOC]</a></font></h2>
+<p>Table of error codes and their types:</p>
+
+<table border="0" class="table table-striped">
+
+<tr class="a">
+  
+<td>Code</td>
+  
+<td>Type</td>
+</tr>
+
+<tr class="b">
+  
+<td>1</td>
+  
+<td>Invalid statement</td>
+</tr>
+
+<tr class="a">
+  
+<td>2</td>
+  
+<td>Parse failures</td>
+</tr>
+
+<tr class="b">
+  
+<td>99</td>
+  
+<td>Uncategorized error</td>
+</tr>
+</table></div>
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+              <div class="row span12">Copyright &copy;                    2017
+                        <a href="https://www.apache.org/";>The Apache Software 
Foundation</a>.
+            All Rights Reserved.      
+                    
+      </div>
+
+                                                                  <?xml 
version="1.0" encoding="UTF-8"?>
+<div class="row-fluid">Apache AsterixDB, AsterixDB, Apache, the Apache
+        feather logo, and the Apache AsterixDB project logo are either
+        registered trademarks or trademarks of The Apache Software
+        Foundation in the United States and other countries.
+        All other marks mentioned may be trademarks or registered
+        trademarks of their respective owners.</div>
+                  
+        
+                </div>
+    </footer>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/asterixdb-site/blob/bf2c56b0/content/docs/0.9.0/aql/externaldata.html
----------------------------------------------------------------------
diff --git a/content/docs/0.9.0/aql/externaldata.html 
b/content/docs/0.9.0/aql/externaldata.html
new file mode 100644
index 0000000..c065ab3
--- /dev/null
+++ b/content/docs/0.9.0/aql/externaldata.html
@@ -0,0 +1,737 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2017-01-24
+ | Rendered using Apache Maven Fluido Skin 1.3.0
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <meta name="Date-Revision-yyyymmdd" content="20170124" />
+    <meta http-equiv="Content-Language" content="en" />
+    <title>AsterixDB &#x2013; Accessing External Data in AsterixDB</title>
+    <link rel="stylesheet" href="../css/apache-maven-fluido-1.3.0.min.css" />
+    <link rel="stylesheet" href="../css/site.css" />
+    <link rel="stylesheet" href="../css/print.css" media="print" />
+
+      
+    <script type="text/javascript" 
src="../js/apache-maven-fluido-1.3.0.min.js"></script>
+
+                          
+        
+<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-41536543-1', 'uci.edu');
+        ga('send', 'pageview');</script>
+          
+            </head>
+        <body class="topBarDisabled">
+          
+                
+                    
+    
+        <div class="container-fluid">
+          <div id="banner">
+        <div class="pull-left">
+                                                  <a href=".././" 
id="bannerLeft">
+                                                                               
                 <img src="../images/asterixlogo.png"  alt="AsterixDB"/>
+                </a>
+                      </div>
+        <div class="pull-right">  </div>
+        <div class="clear"><hr/></div>
+      </div>
+
+      <div id="breadcrumbs">
+        <ul class="breadcrumb">
+                
+                    
+                  <li id="publishDate">Last Published: 2017-01-24</li>
+                      
+                
+                    
+                 <li id="projectVersion" class="pull-right">Version: 0.9.0</li>
+      
+                                            <li class="divider 
pull-right">|</li>
+                        
+    <li class="pull-right">              <a href="../index.html" 
title="Documentation Home">
+        Documentation Home</a>
+  </li>
+
+                        </ul>
+      </div>
+
+            
+      <div class="row-fluid">
+        <div id="leftColumn" class="span3">
+          <div class="well sidebar-nav">
+                
+                    
+                <ul class="nav nav-list">
+                    <li class="nav-header">Get Started - Installation</li>
+                                
+      <li>
+    
+                          <a href="../ncservice.html" title="Option 1: using 
NCService">
+          <i class="none"></i>
+        Option 1: using NCService</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="../install.html" title="Option 2: using 
Managix">
+          <i class="none"></i>
+        Option 2: using Managix</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="../yarn.html" title="Option 3: using YARN">
+          <i class="none"></i>
+        Option 3: using YARN</a>
+            </li>
+                              <li class="nav-header">AsterixDB Primer</li>
+                                
+      <li>
+    
+                          <a href="../sqlpp/primer-sqlpp.html" title="Option 
1: using SQL++">
+          <i class="none"></i>
+        Option 1: using SQL++</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="../aql/primer.html" title="Option 2: using 
AQL">
+          <i class="none"></i>
+        Option 2: using AQL</a>
+            </li>
+                              <li class="nav-header">Data Model</li>
+                                
+      <li>
+    
+                          <a href="../datamodel.html" title="The Asterix Data 
Model">
+          <i class="none"></i>
+        The Asterix Data Model</a>
+            </li>
+                              <li class="nav-header">Queries - SQL++</li>
+                                
+      <li>
+    
+                          <a href="../sqlpp/manual.html" title="The SQL++ 
Query Language">
+          <i class="none"></i>
+        The SQL++ Query Language</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="../sqlpp/builtins.html" title="Builtin 
Functions">
+          <i class="none"></i>
+        Builtin Functions</a>
+            </li>
+                              <li class="nav-header">Queries - AQL</li>
+                                
+      <li>
+    
+                          <a href="../aql/manual.html" title="The Asterix 
Query Language (AQL)">
+          <i class="none"></i>
+        The Asterix Query Language (AQL)</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="../aql/builtins.html" title="Builtin 
Functions">
+          <i class="none"></i>
+        Builtin Functions</a>
+            </li>
+                              <li class="nav-header">Advanced Features</li>
+                                
+      <li>
+    
+                          <a href="../aql/similarity.html" title="Support of 
Similarity Queries">
+          <i class="none"></i>
+        Support of Similarity Queries</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="../aql/fulltext.html" title="Support of 
Full-text Queries">
+          <i class="none"></i>
+        Support of Full-text Queries</a>
+            </li>
+                  
+      <li class="active">
+    
+            <a href="#"><i class="none"></i>Accessing External Data</a>
+          </li>
+                  
+      <li>
+    
+                          <a href="../feeds/tutorial.html" title="Support for 
Data Ingestion">
+          <i class="none"></i>
+        Support for Data Ingestion</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="../udf.html" title="User Defined Functions">
+          <i class="none"></i>
+        User Defined Functions</a>
+            </li>
+                  
+      <li>
+    
+                          <a href="../aql/filters.html" title="Filter-Based 
LSM Index Acceleration">
+          <i class="none"></i>
+        Filter-Based LSM Index Acceleration</a>
+            </li>
+                              <li class="nav-header">API/SDK</li>
+                                
+      <li>
+    
+                          <a href="../api.html" title="HTTP API">
+          <i class="none"></i>
+        HTTP API</a>
+            </li>
+            </ul>
+                
+                    
+                
+          <hr class="divider" />
+
+           <div id="poweredBy">
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                            <div class="clear"></div>
+                                                                               
                                          <a href=".././" title="AsterixDB" 
class="builtBy">
+        <img class="builtBy"  alt="AsterixDB" src="../images/asterixlogo.png"  
  />
+      </a>
+                      </div>
+          </div>
+        </div>
+        
+                
+        <div id="bodyColumn"  class="span9" >
+                                  
+            <!-- ! Licensed to the Apache Software Foundation (ASF) under one
+ ! or more contributor license agreements.  See the NOTICE file
+ ! distributed with this work for additional information
+ ! regarding copyright ownership.  The ASF licenses this file
+ ! to you under the Apache License, Version 2.0 (the
+ ! "License"); you may not use this file except in compliance
+ ! with the License.  You may obtain a copy of the License at
+ !
+ !   http://www.apache.org/licenses/LICENSE-2.0
+ !
+ ! Unless required by applicable law or agreed to in writing,
+ ! software distributed under the License is distributed on an
+ ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ! KIND, either express or implied.  See the License for the
+ ! specific language governing permissions and limitations
+ ! under the License.
+ ! --><h1>Accessing External Data in AsterixDB</h1>
+<div class="section">
+<h2><a name="Table_of_Contents"></a><a name="toc" id="toc">Table of 
Contents</a></h2>
+
+<ul>
+  
+<li><a href="#Introduction">Introduction</a></li>
+  
+<li><a href="#IntroductionAdapterForAnExternalDataset">Adapter for an External 
Dataset</a></li>
+  
+<li><a href="#BuiltinAdapters">Builtin Adapters</a></li>
+  
+<li><a href="#IntroductionCreatingAnExternalDataset">Creating an External 
Dataset</a></li>
+  
+<li><a href="#WritingQueriesAgainstAnExternalDataset">Writing Queries against 
an External Dataset</a></li>
+  
+<li><a href="#BuildingIndexesOverExternalDatasets">Building Indexes over 
External Datasets</a></li>
+  
+<li><a href="#ExternalDataSnapshot">External Data Snapshots</a></li>
+  
+<li><a href="#FAQ">Frequently Asked Questions</a></li>
+</ul></div>
+<div class="section">
+<h2><a name="Introduction_Back_to_TOC"></a><a name="Introduction" 
id="Introduction">Introduction</a> <font size="4"><a href="#toc">[Back to 
TOC]</a></font></h2>
+<p>Data that needs to be processed by AsterixDB could be residing outside 
AsterixDB storage. Examples include data files on a distributed file system 
such as HDFS or on the local file system of a machine that is part of an 
AsterixDB cluster. For AsterixDB to process such data, an end-user may create a 
regular dataset in AsterixDB (a.k.a. an internal dataset) and load the dataset 
with the data. AsterixDB also supports &#x2018;&#x2018;external 
datasets&#x2019;&#x2019; so that it is not necessary to &#x201c;load&#x201d; 
all data prior to using it. This also avoids creating multiple copies of data 
and the need to keep the copies in sync.</p>
+<div class="section">
+<h3><a name="Adapter_for_an_External_Dataset_Back_to_TOC"></a><a 
name="IntroductionAdapterForAnExternalDataset" 
id="IntroductionAdapterForAnExternalDataset">Adapter for an External 
Dataset</a> <font size="4"><a href="#toc">[Back to TOC]</a></font></h3>
+<p>External data is accessed using wrappers (adapters in AsterixDB) that 
abstract away the mechanism of connecting with an external service, receiving 
its data and transforming the data into ADM objects that are understood by 
AsterixDB. AsterixDB comes with built-in adapters for common storage systems 
such as HDFS or the local file system.</p></div>
+<div class="section">
+<h3><a name="Builtin_Adapters_Back_to_TOC"></a><a name="BuiltinAdapters" 
id="BuiltinAdapters">Builtin Adapters</a> <font size="4"><a href="#toc">[Back 
to TOC]</a></font></h3>
+<p>AsterixDB offers a set of builtin adapters that can be used to query 
external data or for loading data into an internal dataset using a load 
statement or a data feed. Each adapter requires specifying the <tt>format</tt> 
of the data in order to be able to parse objects correctly. Using adapters with 
feeds, the parameter <tt>output-type</tt> must also be specified.</p>
+<p>Following is a listing of existing built-in adapters and their 
configuration parameters:</p>
+
+<ol style="list-style-type: decimal">
+  
+<li><b><i>localfs</i></b>: used for reading data stored in a local filesystem 
in one or more of the node controllers
+  
+<ul>
+    
+<li><tt>path</tt>: A fully qualified path of the form 
<tt>host://absolute_path</tt>. Comma separated list if there are  multiple 
directories or files</li>
+    
+<li><tt>expression</tt>: A <a class="externalLink" 
href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html";>regular
 expression</a> to match and filter against file names</li>
+  </ul></li>
+  
+<li><b><i>hdfs</i></b>: used for reading data stored in an HDFS instance
+  
+<ul>
+    
+<li><tt>path</tt>: A fully qualified path of the form 
<tt>host://absolute_path</tt>. Comma separated list if there are  multiple 
directories or files</li>
+    
+<li><tt>expression</tt>: A <a class="externalLink" 
href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html";>regular
 expression</a> to match and filter against file names</li>
+    
+<li><tt>input-format</tt>: A fully qualified name or an alias for a class of 
HDFS input format</li>
+    
+<li><tt>hdfs</tt>: The HDFS name node URL</li>
+  </ul></li>
+  
+<li><b><i>socket</i></b>: used for listening to connections that sends data 
streams through one or more sockets
+  
+<ul>
+    
+<li><tt>sockets</tt>: comma separated list of sockets to listen to</li>
+    
+<li><tt>address-type</tt>: either IP if the list uses IP addresses, or NC if 
the list uses NC names</li>
+  </ul></li>
+  
+<li><b><i>socket_client</i></b>: used for connecting to one or more sockets 
and reading data streams
+  
+<ul>
+    
+<li><tt>sockets</tt>: comma separated list of sockets to connect to</li>
+  </ul></li>
+  
+<li><b><i>twitter_push</i></b>: used for establishing a connection and 
subscribing to a twitter feed
+  
+<ul>
+    
+<li><tt>consumer.key</tt>: access parameter provided by twitter OAuth</li>
+    
+<li><tt>consumer.secret</tt>: access parameter provided by twitter OAuth</li>
+    
+<li><tt>access.token</tt>: access parameter provided by twitter OAuth</li>
+    
+<li><tt>access.token.secret</tt>: access parameter provided by twitter 
OAuth</li>
+  </ul></li>
+  
+<li><b><i>twitter_pull</i></b>: used for polling a twitter feed for tweets 
based on a configurable frequency
+  
+<ul>
+    
+<li><tt>consumer.key</tt>: access parameter provided by twitter OAuth</li>
+    
+<li><tt>consumer.secret</tt>: access parameter provided by twitter OAuth</li>
+    
+<li><tt>access.token</tt>: access parameter provided by twitter OAuth</li>
+    
+<li><tt>access.token.secret</tt>: access parameter provided by twitter 
OAuth</li>
+    
+<li><tt>query</tt>: twitter query string</li>
+    
+<li><tt>interval</tt>: poll interval in seconds</li>
+  </ul></li>
+  
+<li><b><i>rss</i></b>: used for reading RSS feed
+  
+<ul>
+    
+<li><tt>url</tt>: a comma separated list of RSS urls</li>
+  </ul></li>
+</ol></div>
+<div class="section">
+<h3><a name="Creating_an_External_Dataset_Back_to_TOC"></a><a 
name="IntroductionCreatingAnExternalDataset" 
id="IntroductionCreatingAnExternalDataset">Creating an External Dataset</a> 
<font size="4"><a href="#toc">[Back to TOC]</a></font></h3>
+<p>As an example we consider the Lineitem dataset from the <a 
class="externalLink" 
href="http://www.openlinksw.com/dataspace/doc/dav/wiki/Main/VOSTPCHLinkedData/tpch.sql";>TPCH
 schema</a>. We assume that you have successfully created an AsterixDB instance 
following the instructions at <a href="../install.html">Installing AsterixDB 
Using Managix</a>. <i>For constructing an example, we assume a single machine 
setup..</i></p>
+<p>Similar to a regular dataset, an external dataset has an associated 
datatype. We shall first create the datatype associated with each object in 
Lineitem data. Paste the following in the query textbox on the webpage at <a 
class="externalLink" href="http://127.0.0.1:19001";>http://127.0.0.1:19001</a> 
and hit &#x2018;Execute&#x2019;.</p>
+
+<div class="source">
+<div class="source">
+<pre>    create dataverse ExternalFileDemo;
+    use dataverse ExternalFileDemo;
+
+    create type LineitemType as closed {
+      l_orderkey:int32,
+      l_partkey: int32,
+      l_suppkey: int32,
+      l_linenumber: int32,
+      l_quantity: double,
+      l_extendedprice: double,
+      l_discount: double,
+      l_tax: double,
+      l_returnflag: string,
+      l_linestatus: string,
+      l_shipdate: string,
+      l_commitdate: string,
+      l_receiptdate: string,
+      l_shipinstruct: string,
+      l_shipmode: string,
+      l_comment: string}
+</pre></div></div>
+<p>Here, we describe two scenarios.</p>
+<div class="section">
+<h4><a name="a1_Data_file_resides_on_the_local_file_system_of_a_host"></a>1) 
Data file resides on the local file system of a host</h4>
+<p>Prerequisite: The host is a part of the ASTERIX cluster.</p>
+<p>Earlier, we assumed a single machine ASTERIX setup. To satisfy the 
prerequisite, log-in to the machine running ASTERIX.</p>
+
+<ul>
+  
+<li>Download the <a href="../data/lineitem.tbl">data file</a> to an 
appropriate location. We denote this location by SOURCE_PATH.</li>
+</ul>
+<p>ASTERIX provides a built-in adapter for data residing on the local file 
system. The adapter is referred by its alias- &#x2018;localfs&#x2019;. We 
create an external dataset named Lineitem and use the &#x2018;localfs&#x2019; 
adapter.</p>
+
+<div class="source">
+<div class="source">
+<pre>    create external dataset Lineitem(LineitemType)
+    using localfs
+</pre></div></div>
+<p>Above, the definition is not complete as we need to provide a set of 
parameters that are specific to the source file.</p>
+
+<table border="0" class="table table-striped">
+
+<tr class="a">
+  
+<td> Parameter </td>
+  
+<td> Description </td>
+</tr>
+
+<tr class="b">
+  
+<td> path </td>
+  
+<td> A fully qualified path of the form <tt>host://&lt;absolute path&gt;</tt>.
+  Use a comma separated list if there are multiple files.
+  E.g. <tt>host1://&lt;absolute path&gt;</tt>, <tt>host2://&lt;absolute 
path&gt;</tt> and so forth. </td>
+</tr>
+
+<tr class="a">
+  
+<td> format </td>
+  
+<td> The format for the content. Use 'adm' for data in ADM (ASTERIX Data 
Model) or <a class="externalLink" href="http://www.json.org/";>JSON</a> format. 
Use 'delimited-text' if fields are separated by a delimiting character (eg., 
CSV). </td></tr>
+
+<tr class="b">
+  
+<td>delimiter</td>
+  
+<td>The delimiting character in the source file if format is 'delimited 
text'</td>
+</tr>
+</table>
+<p>As we are using a single single machine ASTERIX instance, we use 127.0.0.1 
as host in the path parameter. We <i>complete the create dataset statement</i> 
as follows.</p>
+
+<div class="source">
+<div class="source">
+<pre>    use dataverse ExternalFileDemo;
+
+    create external dataset Lineitem(LineitemType)
+    using localfs
+    ((&quot;path&quot;=&quot;127.0.0.1://SOURCE_PATH&quot;),
+    (&quot;format&quot;=&quot;delimited-text&quot;),
+    (&quot;delimiter&quot;=&quot;|&quot;));
+</pre></div></div>
+<p>Please substitute SOURCE_PATH with the absolute path to the source file on 
the local file system.</p></div>
+<div class="section">
+<h4><a name="Common_source_of_error"></a>Common source of error</h4>
+<p>An incorrect value for the path parameter will give the following exception 
message when the dataset is used in a query.</p>
+
+<div class="source">
+<div class="source">
+<pre>    org.apache.hyracks.algebricks.common.exceptions.AlgebricksException: 
org.apache.hyracks.api.exceptions.HyracksDataException: 
org.apache.hyracks.api.exceptions.HyracksDataException: Job failed.
+</pre></div></div>
+<p>Verify the correctness of the path parameter provided to the localfs 
adapter. Note that the path parameter must be an absolute path to the data 
file. For e.g. if you saved your file in your home directory (assume it to be 
/home/joe), then the path value should be</p>
+
+<div class="source">
+<div class="source">
+<pre>    127.0.0.1:///home/joe/lineitem.tbl.
+</pre></div></div>
+<p>In your web-browser, navigate to 127.0.0.1:19001 and paste the above to the 
query text box. Finally hit &#x2018;Execute&#x2019;.</p>
+<p>Next we move over to the the section <a 
href="#Writing_Queries_against_an_External_Dataset">Writing Queries against an 
External Dataset</a> and try a sample query against the external 
dataset.</p></div>
+<div class="section">
+<h4><a name="a2_Data_file_resides_on_an_HDFS_instance"></a>2) Data file 
resides on an HDFS instance</h4>
+<p>rerequisite: It is required that the Namenode and HDFS Datanodes are 
reachable from the hosts that form the AsterixDB cluster. AsterixDB provides a 
built-in adapter for data residing on HDFS. The HDFS adapter can be referred 
(in AQL) by its alias - &#x2018;hdfs&#x2019;. We can create an external dataset 
named Lineitem and associate the HDFS adapter with it as follows;</p>
+
+<div class="source">
+<div class="source">
+<pre>    create external dataset Lineitem(LineitemType)
+    using 
hdfs((&#x201c;hdfs&#x201d;:&#x201d;hdfs://localhost:54310&#x201d;),(&#x201c;path&#x201d;:&#x201d;/asterix/Lineitem.tbl&#x201d;),...,(&#x201c;input-
 format&#x201d;:&#x201d;rc-format&#x201d;));
+</pre></div></div>
+<p>The expected parameters are described below:</p>
+
+<table border="0" class="table table-striped">
+
+<tr class="a">
+  
+<td> Parameter </td>
+  
+<td> Description </td>
+</tr>
+
+<tr class="b">
+  
+<td> hdfs </td>
+  
+<td> The HDFS URL </td>
+</tr>
+
+<tr class="a">
+  
+<td> path </td>
+  
+<td> The absolute path to the source HDFS file or directory. Use a comma 
separated list if there are multiple files or directories. </td></tr>
+
+<tr class="b">
+  
+<td> input-format </td>
+  
+<td> The associated input format. Use 'text-input-format' for text files , 
'sequence-input-format' for hadoop sequence files, 'rc-input-format' for Hadoop 
Object Columnar files, or a fully qualified name of an implementation of 
org.apache.hadoop.mapred.InputFormat. </td>
+</tr>
+
+<tr class="a">
+  
+<td> format </td>
+  
+<td> The format of the input content. Use 'adm' for text data in ADM (ASTERIX 
Data Model) or <a class="externalLink" href="http://www.json.org/";>JSON</a> 
format, 'delimited-text' for text delimited data that has fields separated by a 
delimiting character, 'binary' for other data.</td>
+</tr>
+
+<tr class="b">
+  
+<td> delimiter </td>
+  
+<td> The delimiting character in the source file if format is 'delimited text' 
</td>
+</tr>
+
+<tr class="a">
+  
+<td> parser </td>
+  
+<td> The parser used to parse HDFS objects if the format is 'binary'. Use 
'hive- parser' for data deserialized by a Hive Serde (AsterixDB can understand 
deserialized Hive objects) or a fully qualified class name of user- implemented 
parser that implements the interface 
org.apache.asterix.external.input.InputParser. </td>
+</tr>
+
+<tr class="b">
+  
+<td> hive-serde </td>
+  
+<td> The Hive serde is used to deserialize HDFS objects if format is binary 
and the parser is hive-parser. Use a fully qualified name of a class 
implementation of org.apache.hadoop.hive.serde2.SerDe. </td>
+</tr>
+
+<tr class="a">
+  
+<td> local-socket-path </td>
+  
+<td> The UNIX domain socket path if local short-circuit reads are enabled in 
the HDFS instance</td>
+</tr>
+</table>
+<p><i>Difference between &#x2018;input-format&#x2019; and 
&#x2018;format&#x2019;</i></p>
+<p><i>input-format</i>: Files stored under HDFS have an associated storage 
format. For example, TextInputFormat represents plain text files. 
SequenceFileInputFormat indicates binary compressed files. RCFileInputFormat 
corresponds to objects stored in a object columnar fashion. The parameter 
&#x2018;input-format&#x2019; is used to distinguish between these and other 
HDFS input formats.</p>
+<p><i>format</i>: The parameter &#x2018;format&#x2019; refers to the type of 
the data contained in the file. For example, data contained in a file could be 
in json or ADM format, could be in delimited-text with fields separated by a 
delimiting character or could be in binary format.</p>
+<p>As an example. consider the <a href="../data/lineitem.tbl">data file</a>. 
The file is a text file with each line representing a object. The fields in 
each object are separated by the &#x2018;|&#x2019; character.</p>
+<p>We assume the HDFS URL to be <a class="externalLink" 
href="hdfs://localhost:54310">hdfs://localhost:54310</a>. We further assume 
that the example data file is copied to HDFS at a path denoted by 
&#x201c;/asterix/Lineitem.tbl&#x201d;.</p>
+<p>The complete set of parameters for our example file are as follows. 
((&#x201c;hdfs&#x201d;=&#x201c;hdfs://localhost:54310&#x201d;,(&#x201c;path&#x201d;=&#x201c;/asterix/Lineitem.tbl&#x201d;),(&#x201c;input-format&#x201d;=&#x201c;text-
 
input-format&#x201d;),(&#x201c;format&#x201d;=&#x201c;delimited-text&#x201d;),(&#x201c;delimiter&#x201d;=&#x201c;|&#x201d;))</p></div>
+<div class="section">
+<h4><a name="Using_the_Hive_Parser"></a>Using the Hive Parser</h4>
+<p>if a user wants to create an external dataset that uses hive-parser to 
parse HDFS objects, it is important that the datatype associated with the 
dataset matches the actual data in the Hive table for the correct 
initialization of the Hive SerDe. Here is the conversion from the supported 
Hive data types to AsterixDB data types:</p>
+
+<table border="0" class="table table-striped">
+
+<tr class="a">
+  
+<td> Hive </td>
+  
+<td> AsterixDB </td>
+</tr>
+
+<tr class="b">
+  
+<td>BOOLEAN</td>
+  
+<td>Boolean</td>
+</tr>
+
+<tr class="a">
+  
+<td>BYTE(TINY INT)</td>
+  
+<td>Int8</td>
+</tr>
+
+<tr class="b">
+  
+<td>DOUBLE</td>
+  
+<td>Double</td>
+</tr>
+
+<tr class="a">
+  
+<td>FLOAT</td>
+  
+<td>Float</td>
+</tr>
+
+<tr class="b">
+  
+<td>INT</td>
+  
+<td>Int32</td>
+</tr>
+
+<tr class="a">
+  
+<td>LONG(BIG INT)</td>
+  
+<td>Int64</td>
+</tr>
+
+<tr class="b">
+  
+<td>SHORT(SMALL INT)</td>
+  
+<td>Int16</td>
+</tr>
+
+<tr class="a">
+  
+<td>STRING</td>
+  
+<td>String</td>
+</tr>
+
+<tr class="b">
+  
+<td>TIMESTAMP</td>
+  
+<td>Datetime</td>
+</tr>
+
+<tr class="a">
+  
+<td>DATE</td>
+  
+<td>Date</td>
+</tr>
+
+<tr class="b">
+  
+<td>STRUCT</td>
+  
+<td>Nested Object</td>
+</tr>
+
+<tr class="a">
+  
+<td>LIST</td>
+  
+<td>OrderedList or UnorderedList</td>
+</tr>
+</table></div>
+<div class="section">
+<h4><a 
name="Examples_of_dataset_definitions_for_external_datasets"></a>Examples of 
dataset definitions for external datasets</h4>
+<p><i>Example 1</i>: We can modify the create external dataset statement as 
follows:</p>
+
+<div class="source">
+<div class="source">
+<pre>    create external dataset Lineitem('LineitemType)
+    using 
hdfs((&quot;hdfs&quot;=&quot;hdfs://localhost:54310&quot;),(&quot;path&quot;=&quot;/asterix/Lineitem.tbl&quot;),(&quot;input-format&quot;=&quot;text-
 
input-format&quot;),(&quot;format&quot;=&quot;delimited-text&quot;),(&quot;delimiter&quot;=&quot;|&quot;));
+</pre></div></div>
+<p><i>Example 2</i>: Here, we create an external dataset of lineitem objects 
stored in sequence files that has content in ADM format:</p>
+
+<div class="source">
+<div class="source">
+<pre>    create external dataset Lineitem('LineitemType)
+    using 
hdfs((&quot;hdfs&quot;=&quot;hdfs://localhost:54310&quot;),(&quot;path&quot;=&quot;/asterix/SequenceLineitem.tbl&quot;),(&quot;input-
 
format&quot;=&quot;sequence-input-format&quot;),(&quot;format&quot;=&quot;adm&quot;));
+</pre></div></div>
+<p><i>Example 3</i>: Here, we create an external dataset of lineitem objects 
stored in object-columnar files that has content in binary format parsed using 
hive-parser with hive ColumnarSerde:</p>
+
+<div class="source">
+<div class="source">
+<pre>    create external dataset Lineitem('LineitemType)
+    using 
hdfs((&quot;hdfs&quot;=&quot;hdfs://localhost:54310&quot;),(&quot;path&quot;=&quot;/asterix/RCLineitem.tbl&quot;),(&quot;input-format&quot;=&quot;rc-input-format&quot;),(&quot;format&quot;=&quot;binary&quot;),(&quot;parser&quot;=&quot;hive-parser&quot;),(&quot;hive-
 serde&quot;=&quot;org.apache.hadoop.hive.serde2.columnar.ColumnarSerde&quot;));
+</pre></div></div></div></div></div>
+<div class="section">
+<h2><a name="Writing_Queries_against_an_External_Dataset_Back_to_TOC"></a><a 
name="WritingQueriesAgainstAnExternalDataset" 
id="WritingQueriesAgainstAnExternalDataset">Writing Queries against an External 
Dataset</a> <font size="4"><a href="#toc">[Back to TOC]</a></font></h2>
+<p>You may write AQL queries against an external dataset in exactly the same 
way that queries are written against internal datasets. The following is an 
example of an AQL query that applies a filter and returns an ordered result.</p>
+
+<div class="source">
+<div class="source">
+<pre>    use dataverse ExternalFileDemo;
+
+    for $c in dataset('Lineitem')
+    where $c.l_orderkey &lt;= 3
+    order by $c.l_orderkey, $c.l_linenumber
+    return $c
+</pre></div></div></div>
+<div class="section">
+<h2><a name="Building_Indexes_over_External_Datasets_Back_to_TOC"></a><a 
name="BuildingIndexesOverExternalDatasets" 
id="BuildingIndexesOverExternalDatasets">Building Indexes over External 
Datasets</a> <font size="4"><a href="#toc">[Back to TOC]</a></font></h2>
+<p>AsterixDB supports building B-Tree and R-Tree indexes over static data 
stored in the Hadoop Distributed File System. To create an index, first create 
an external dataset over the data as follows</p>
+
+<div class="source">
+<div class="source">
+<pre>    create external dataset Lineitem(LineitemType)
+    using 
hdfs((&quot;hdfs&quot;=&quot;hdfs://localhost:54310&quot;),(&quot;path&quot;=&quot;/asterix/Lineitem.tbl&quot;),(&quot;input-format&quot;=&quot;text-input-
 
format&quot;),(&quot;format&quot;=&quot;delimited-text&quot;),(&quot;delimiter&quot;=&quot;|&quot;));
+</pre></div></div>
+<p>You can then create a B-Tree index on this dataset instance as if the 
dataset was internally stored as follows:</p>
+
+<div class="source">
+<div class="source">
+<pre>    create index PartkeyIdx on Lineitem(l_partkey);
+</pre></div></div>
+<p>You could also create an R-Tree index as follows:</p>
+
+<div class="source">
+<div class="source">
+<pre>    &#xfffc;create index IndexName on DatasetName(attribute-name) type 
rtree;
+</pre></div></div>
+<p>After building the indexes, the AsterixDB query compiler can use them to 
access the dataset and answer queries in a more cost effective manner. 
AsterixDB can read all HDFS input formats, but indexes over external datasets 
can currently be built only for HDFS datasets with 
&#x2018;text-input-format&#x2019;, &#x2018;sequence-input-format&#x2019; or 
&#x2018;rc-input-format&#x2019;.</p></div>
+<div class="section">
+<h2><a name="External_Data_Snapshots_Back_to_TOC"></a><a 
name="ExternalDataSnapshots" id="ExternalDataSnapshots">External Data 
Snapshots</a> <font size="4"><a href="#toc">[Back to TOC]</a></font></h2>
+<p>An external data snapshot represents the status of a dataset&#x2019;s files 
in HDFS at a point in time. Upon creating the first index over an external 
dataset, AsterixDB captures and stores a snapshot of the dataset in HDFS. Only 
objects present at the snapshot capture time are indexed, and any additional 
indexes created afterwards will only contain data that was present at the 
snapshot capture time thus preserving consistency across all indexes of a 
dataset. To update all indexes of an external dataset and advance the snapshot 
time to be the present time, a user can use the refresh external dataset 
command as follows:</p>
+
+<div class="source">
+<div class="source">
+<pre>    refresh external dataset DatasetName;
+</pre></div></div>
+<p>After a refresh operation commits, all of the dataset&#x2019;s indexes will 
reflect the status of the data as of the new snapshot capture time.</p></div>
+<div class="section">
+<h2><a name="Frequently_Asked_Questions_Back_to_TOC"></a><a name="FAQ" 
id="FAQ">Frequently Asked Questions</a> <font size="4"><a href="#toc">[Back to 
TOC]</a></font></h2>
+<p>Q. I added data to my dataset in HDFS, Will the dataset indexes in 
AsterixDB be updated automatically?</p>
+<p>A. No, you must use the refresh external dataset statement to make the 
indexes aware of any changes in the dataset files in HDFS.</p>
+<p>Q. Why doesn&#x2019;t AsterixDB update external indexes automatically?</p>
+<p>A. Since external data is managed by other users/systems with mechanisms 
that are system dependent, AsterixDB has no way of knowing exactly when data is 
added or deleted in HDFS, so the responsibility of refreshing indexes are left 
to the user. A user can use internal datasets for which AsterixDB manages the 
data and its indexes.</p>
+<p>Q. I created an index over an external dataset and then added some data to 
my HDFS dataset. Will a query that uses the index return different results from 
a query that doesn&#x2019;t use the index?</p>
+<p>A. No, queries&#x2019; results are access path independent and the stored 
snapshot is used to determines which data are going to be included when 
processing queries.</p>
+<p>Q. I created an index over an external dataset and then deleted some of my 
dataset&#x2019;s files in HDFS, Will indexed data access still return the 
objects in deleted files?</p>
+<p>A. No. When AsterixDB accesses external data, with or without the use of 
indexes, it only access files present in the file system at runtime.</p>
+<p>Q. I submitted a refresh command on a an external dataset and a failure 
occurred, What has happened to my indexes?</p>
+<p>A. External Indexes Refreshes are treated as a single transaction. In case 
of a failure, a rollback occurs and indexes are restored to their previous 
state. An error message with the cause of failure is returned to the user.</p>
+<p>Q. I was trying to refresh an external dataset while some queries were 
accessing the data using index access method. Will the queries be affected by 
the refresh operation?</p>
+<p>A. Queries have access to external dataset indexes state at the time where 
the queries are submitted. A query that was submitted before a refresh commits 
will only access data under the snapshot taken before the refresh; queries that 
are submitted after the refresh commits will access data under the snapshot 
taken after the refresh.</p>
+<p>Q. What happens when I try to create an additional index while a refresh 
operation is in progress or vice versa?</p>
+<p>A. The create index operation will wait until the refresh commits or aborts 
and then the index will be built according to the external data snapshot at the 
end of the refresh operation. Creating indexes and refreshing datasets are 
mutually exclusive operations and will not be run in parallel. Multiple indexes 
can be created in parallel, but not multiple refresh operations.</p></div>
+                  </div>
+            </div>
+          </div>
+
+    <hr/>
+
+    <footer>
+            <div class="container-fluid">
+              <div class="row span12">Copyright &copy;                    2017
+                        <a href="https://www.apache.org/";>The Apache Software 
Foundation</a>.
+            All Rights Reserved.      
+                    
+      </div>
+
+                                                                  <?xml 
version="1.0" encoding="UTF-8"?>
+<div class="row-fluid">Apache AsterixDB, AsterixDB, Apache, the Apache
+        feather logo, and the Apache AsterixDB project logo are either
+        registered trademarks or trademarks of The Apache Software
+        Foundation in the United States and other countries.
+        All other marks mentioned may be trademarks or registered
+        trademarks of their respective owners.</div>
+                  
+        
+                </div>
+    </footer>
+  </body>
+</html>

Reply via email to