You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@asterixdb.apache.org by im...@apache.org on 2015/11/25 20:30:29 UTC
[30/30] incubator-asterixdb-site git commit: Include stable docs,
use Apache URLs
Include stable docs, use Apache URLs
Change-Id: Iadb5074e130d4a21b2af123aa405e9fc21a14aed
Reviewed-on: https://asterix-gerrit.ics.uci.edu/519
Reviewed-by: Till Westmann <ti...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site/commit/e2b799e7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site/tree/e2b799e7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site/diff/e2b799e7
Branch: refs/heads/asf-site
Commit: e2b799e7f3e90723f409633464b4bd8f25e72573
Parents: 1bd6777
Author: Ian Maxon <ia...@maxons.email>
Authored: Tue Nov 24 18:20:03 2015 -0800
Committer: Ian Maxon <im...@apache.org>
Committed: Wed Nov 25 11:26:12 2015 -0800
----------------------------------------------------------------------
_config.yml | 6 +-
_includes/nav_header.html | 4 +-
content/about.html | 4 +-
content/community.html | 4 +-
content/dev-setup.html | 4 +-
content/docs/0.8.7-incubating/api.html | 606 ++
content/docs/0.8.7-incubating/aql/allens.html | 660 ++
.../docs/0.8.7-incubating/aql/datamodel.html | 783 +++
.../docs/0.8.7-incubating/aql/externaldata.html | 633 ++
content/docs/0.8.7-incubating/aql/filters.html | 272 +
.../docs/0.8.7-incubating/aql/functions.html | 5111 +++++++++++++++
content/docs/0.8.7-incubating/aql/js-sdk.html | 958 +++
content/docs/0.8.7-incubating/aql/manual.html | 1029 +++
.../0.8.7-incubating/aql/primer-sql-like.html | 886 +++
content/docs/0.8.7-incubating/aql/primer.html | 896 +++
.../docs/0.8.7-incubating/aql/similarity.html | 431 ++
.../css/apache-maven-fluido-1.3.0.min.css | 9 +
content/docs/0.8.7-incubating/css/print.css | 23 +
content/docs/0.8.7-incubating/css/site.css | 1 +
content/docs/0.8.7-incubating/csv.html | 416 ++
content/docs/0.8.7-incubating/data/fbm.adm | 15 +
content/docs/0.8.7-incubating/data/fbu.adm | 10 +
content/docs/0.8.7-incubating/data/lineitem.tbl | 6005 ++++++++++++++++++
content/docs/0.8.7-incubating/data/twm.adm | 12 +
content/docs/0.8.7-incubating/data/twu.adm | 4 +
.../docs/0.8.7-incubating/feeds/tutorial.html | 425 ++
.../0.8.7-incubating/images/AsterixCluster.png | Bin 0 -> 95355 bytes
.../images/accessories-text-editor.png | Bin 0 -> 746 bytes
content/docs/0.8.7-incubating/images/add.gif | Bin 0 -> 397 bytes
.../images/apache-maven-project-2.png | Bin 0 -> 33442 bytes
.../images/application-certificate.png | Bin 0 -> 923 bytes
.../0.8.7-incubating/images/asf_logo_wide.png | Bin 0 -> 14470 bytes
.../0.8.7-incubating/images/asterix_webui.png | Bin 0 -> 55418 bytes
.../0.8.7-incubating/images/asterixlogo.png | Bin 0 -> 15334 bytes
.../0.8.7-incubating/images/contact-new.png | Bin 0 -> 736 bytes
.../images/document-properties.png | Bin 0 -> 577 bytes
.../0.8.7-incubating/images/drive-harddisk.png | Bin 0 -> 700 bytes
.../docs/0.8.7-incubating/images/egg-logo.png | Bin 0 -> 8626 bytes
content/docs/0.8.7-incubating/images/fix.gif | Bin 0 -> 366 bytes
.../docs/0.8.7-incubating/images/hyrax_ts.png | Bin 0 -> 4949 bytes
.../0.8.7-incubating/images/icon_error_sml.gif | Bin 0 -> 633 bytes
.../0.8.7-incubating/images/icon_help_sml.gif | Bin 0 -> 1072 bytes
.../0.8.7-incubating/images/icon_info_sml.gif | Bin 0 -> 638 bytes
.../images/icon_success_sml.gif | Bin 0 -> 604 bytes
.../images/icon_warning_sml.gif | Bin 0 -> 625 bytes
.../0.8.7-incubating/images/image-x-generic.png | Bin 0 -> 662 bytes
.../images/internet-web-browser.png | Bin 0 -> 1017 bytes
.../images/logos/build-by-maven-black.png | Bin 0 -> 2294 bytes
.../images/logos/build-by-maven-white.png | Bin 0 -> 2260 bytes
.../images/logos/maven-feather.png | Bin 0 -> 3330 bytes
.../0.8.7-incubating/images/network-server.png | Bin 0 -> 536 bytes
.../images/package-x-generic.png | Bin 0 -> 717 bytes
.../images/profiles/pre-release.png | Bin 0 -> 32607 bytes
.../images/profiles/retired.png | Bin 0 -> 22003 bytes
.../images/profiles/sandbox.png | Bin 0 -> 33010 bytes
content/docs/0.8.7-incubating/images/remove.gif | Bin 0 -> 607 bytes
content/docs/0.8.7-incubating/images/rss.png | Bin 0 -> 474 bytes
.../0.8.7-incubating/images/running_inst.png | Bin 0 -> 90641 bytes
content/docs/0.8.7-incubating/images/update.gif | Bin 0 -> 1090 bytes
.../docs/0.8.7-incubating/images/window-new.png | Bin 0 -> 583 bytes
.../docs/0.8.7-incubating/images/yarn_clust.png | Bin 0 -> 61592 bytes
.../img/glyphicons-halflings-white.png | Bin 0 -> 8777 bytes
.../img/glyphicons-halflings.png | Bin 0 -> 12799 bytes
content/docs/0.8.7-incubating/index.html | 268 +
content/docs/0.8.7-incubating/install.html | 1297 ++++
.../js/apache-maven-fluido-1.3.0.min.js | 21 +
content/docs/0.8.7-incubating/overview.html | 294 +
content/docs/0.8.7-incubating/udf.html | 388 ++
content/docs/0.8.7-incubating/yarn.html | 693 ++
content/download.html | 6 +-
content/index.html | 8 +-
content/pushing.html | 4 +-
content/tools.html | 4 +-
docs/0.8.7-incubating/api.html | 606 ++
docs/0.8.7-incubating/aql/allens.html | 660 ++
docs/0.8.7-incubating/aql/datamodel.html | 783 +++
docs/0.8.7-incubating/aql/externaldata.html | 633 ++
docs/0.8.7-incubating/aql/filters.html | 272 +
docs/0.8.7-incubating/aql/functions.html | 5111 +++++++++++++++
docs/0.8.7-incubating/aql/js-sdk.html | 958 +++
docs/0.8.7-incubating/aql/manual.html | 1029 +++
docs/0.8.7-incubating/aql/primer-sql-like.html | 886 +++
docs/0.8.7-incubating/aql/primer.html | 896 +++
docs/0.8.7-incubating/aql/similarity.html | 431 ++
.../css/apache-maven-fluido-1.3.0.min.css | 9 +
docs/0.8.7-incubating/css/print.css | 23 +
docs/0.8.7-incubating/css/site.css | 1 +
docs/0.8.7-incubating/csv.html | 416 ++
docs/0.8.7-incubating/data/fbm.adm | 15 +
docs/0.8.7-incubating/data/fbu.adm | 10 +
docs/0.8.7-incubating/data/lineitem.tbl | 6005 ++++++++++++++++++
docs/0.8.7-incubating/data/twm.adm | 12 +
docs/0.8.7-incubating/data/twu.adm | 4 +
docs/0.8.7-incubating/feeds/tutorial.html | 425 ++
docs/0.8.7-incubating/images/AsterixCluster.png | Bin 0 -> 95355 bytes
.../images/accessories-text-editor.png | Bin 0 -> 746 bytes
docs/0.8.7-incubating/images/add.gif | Bin 0 -> 397 bytes
.../images/apache-maven-project-2.png | Bin 0 -> 33442 bytes
.../images/application-certificate.png | Bin 0 -> 923 bytes
docs/0.8.7-incubating/images/asf_logo_wide.png | Bin 0 -> 14470 bytes
docs/0.8.7-incubating/images/asterix_webui.png | Bin 0 -> 55418 bytes
docs/0.8.7-incubating/images/asterixlogo.png | Bin 0 -> 15334 bytes
docs/0.8.7-incubating/images/contact-new.png | Bin 0 -> 736 bytes
.../images/document-properties.png | Bin 0 -> 577 bytes
docs/0.8.7-incubating/images/drive-harddisk.png | Bin 0 -> 700 bytes
docs/0.8.7-incubating/images/egg-logo.png | Bin 0 -> 8626 bytes
docs/0.8.7-incubating/images/fix.gif | Bin 0 -> 366 bytes
docs/0.8.7-incubating/images/hyrax_ts.png | Bin 0 -> 4949 bytes
docs/0.8.7-incubating/images/icon_error_sml.gif | Bin 0 -> 633 bytes
docs/0.8.7-incubating/images/icon_help_sml.gif | Bin 0 -> 1072 bytes
docs/0.8.7-incubating/images/icon_info_sml.gif | Bin 0 -> 638 bytes
.../images/icon_success_sml.gif | Bin 0 -> 604 bytes
.../images/icon_warning_sml.gif | Bin 0 -> 625 bytes
.../0.8.7-incubating/images/image-x-generic.png | Bin 0 -> 662 bytes
.../images/internet-web-browser.png | Bin 0 -> 1017 bytes
.../images/logos/build-by-maven-black.png | Bin 0 -> 2294 bytes
.../images/logos/build-by-maven-white.png | Bin 0 -> 2260 bytes
.../images/logos/maven-feather.png | Bin 0 -> 3330 bytes
docs/0.8.7-incubating/images/network-server.png | Bin 0 -> 536 bytes
.../images/package-x-generic.png | Bin 0 -> 717 bytes
.../images/profiles/pre-release.png | Bin 0 -> 32607 bytes
.../images/profiles/retired.png | Bin 0 -> 22003 bytes
.../images/profiles/sandbox.png | Bin 0 -> 33010 bytes
docs/0.8.7-incubating/images/remove.gif | Bin 0 -> 607 bytes
docs/0.8.7-incubating/images/rss.png | Bin 0 -> 474 bytes
docs/0.8.7-incubating/images/running_inst.png | Bin 0 -> 90641 bytes
docs/0.8.7-incubating/images/update.gif | Bin 0 -> 1090 bytes
docs/0.8.7-incubating/images/window-new.png | Bin 0 -> 583 bytes
docs/0.8.7-incubating/images/yarn_clust.png | Bin 0 -> 61592 bytes
.../img/glyphicons-halflings-white.png | Bin 0 -> 8777 bytes
.../img/glyphicons-halflings.png | Bin 0 -> 12799 bytes
docs/0.8.7-incubating/index.html | 268 +
docs/0.8.7-incubating/install.html | 1297 ++++
.../js/apache-maven-fluido-1.3.0.min.js | 21 +
docs/0.8.7-incubating/overview.html | 294 +
docs/0.8.7-incubating/udf.html | 388 ++
docs/0.8.7-incubating/yarn.html | 693 ++
137 files changed, 44314 insertions(+), 22 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site/blob/e2b799e7/_config.yml
----------------------------------------------------------------------
diff --git a/_config.yml b/_config.yml
index 3ed0922..e3019e9 100644
--- a/_config.yml
+++ b/_config.yml
@@ -2,14 +2,14 @@ url: https://asterixdb.incubator.apache.org/
name: "Apache AsterixDB"
-STABLE_VERSION: 0.8.7
+STABLE_VERSION: 0.8.7-incubating
UNSTABLE_VERSION: 0.8.8-SNAPSHOT
STABLE_DOWNLOAD_URL: "http://asterixdb.ics.uci.edu/download/0.8.6/asterix-installer-0.8.6-binary-assembly.zip"
UNSTABLE_DOWNLOAD_URL: "https://asterix-jenkins.ics.uci.edu/job/asterix-test-full/lastStableBuild/org.apache.asterix$asterix-installer/artifact/org.apache.asterix/asterix-installer/0.8.8-SNAPSHOT/asterix-installer-0.8.8-SNAPSHOT-binary-assembly.zip"
STABLE_YARN_URL: ""
UNSTABLE_YARN_URL: "https://asterix-jenkins.ics.uci.edu/job/asterix-test-full/lastStableBuild/org.apache.asterix$asterix-yarn/artifact/org.apache.asterix/asterix-yarn/0.8.8-SNAPSHOT/asterix-yarn-0.8.8-SNAPSHOT-binary-assembly.zip"
-DOCS_BASE_URL: "http://asterixdb.ics.uci.edu/documentation"
-UNSTABLE_DOCS_BASE_URL: "https://asterix-jenkins.ics.uci.edu/job/asterix-test-full/site/asterix-doc"
+DOCS_BASE_URL: "docs"
+UNSTABLE_DOCS_BASE_URL: "https://ci.apache.org/projects/asterixdb/"
ICS_DOWNLOAD_BASE_URL: "https://asterixdb.ics.uci.edu/download"
# Build settings
http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site/blob/e2b799e7/_includes/nav_header.html
----------------------------------------------------------------------
diff --git a/_includes/nav_header.html b/_includes/nav_header.html
index c121456..5123fab 100644
--- a/_includes/nav_header.html
+++ b/_includes/nav_header.html
@@ -22,10 +22,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="{{ site.DOCS_BASE_URL }}/index.html">Documentation for {{ site.STABLE_VERSION }}<i class="fa fa-external-link fa-sm"></i></a></li>
+ <li><a href="{{ site.DOCS_BASE_URL }}/{{ site.STABLE_VERSION }}/index.html">Documentation for {{ site.STABLE_VERSION }}<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="{{ site.UNSTABLE_DOCS_BASE_URL }}/index.html">Documentation for {{ site.UNSTABLE_VERSION }} <i class="fa fa-external-link fa-sm"></i></a></li>
+ <li><a href="{{ site.UNSTABLE_DOCS_BASE_URL }}index.html">Documentation for {{ site.UNSTABLE_VERSION }} <i class="fa fa-external-link fa-sm"></i></a></li>
</ul>
</li>
<li><a href="{{ site.url }}about.html">About</a></li>
http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site/blob/e2b799e7/content/about.html
----------------------------------------------------------------------
diff --git a/content/about.html b/content/about.html
index c43f3da..0f49df3 100644
--- a/content/about.html
+++ b/content/about.html
@@ -51,10 +51,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="http://asterixdb.ics.uci.edu/documentation/index.html">Documentation for 0.8.7<i class="fa fa-external-link fa-sm"></i></a></li>
+ <li><a href="docs/0.8.7-incubating/index.html">Documentation for 0.8.7-incubating<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://asterix-jenkins.ics.uci.edu/job/asterix-test-full/site/asterix-doc/index.html">Documentation for 0.8.8-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.8.8-SNAPSHOT <i class="fa fa-external-link fa-sm"></i></a></li>
</ul>
</li>
<li><a href="https://asterixdb.incubator.apache.org/about.html">About</a></li>
http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site/blob/e2b799e7/content/community.html
----------------------------------------------------------------------
diff --git a/content/community.html b/content/community.html
index 70cb118..9ab8a30 100644
--- a/content/community.html
+++ b/content/community.html
@@ -51,10 +51,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="http://asterixdb.ics.uci.edu/documentation/index.html">Documentation for 0.8.7<i class="fa fa-external-link fa-sm"></i></a></li>
+ <li><a href="docs/0.8.7-incubating/index.html">Documentation for 0.8.7-incubating<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://asterix-jenkins.ics.uci.edu/job/asterix-test-full/site/asterix-doc/index.html">Documentation for 0.8.8-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.8.8-SNAPSHOT <i class="fa fa-external-link fa-sm"></i></a></li>
</ul>
</li>
<li><a href="https://asterixdb.incubator.apache.org/about.html">About</a></li>
http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site/blob/e2b799e7/content/dev-setup.html
----------------------------------------------------------------------
diff --git a/content/dev-setup.html b/content/dev-setup.html
index ef15fc6..00a4e16 100644
--- a/content/dev-setup.html
+++ b/content/dev-setup.html
@@ -51,10 +51,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="http://asterixdb.ics.uci.edu/documentation/index.html">Documentation for 0.8.7<i class="fa fa-external-link fa-sm"></i></a></li>
+ <li><a href="docs/0.8.7-incubating/index.html">Documentation for 0.8.7-incubating<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://asterix-jenkins.ics.uci.edu/job/asterix-test-full/site/asterix-doc/index.html">Documentation for 0.8.8-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.8.8-SNAPSHOT <i class="fa fa-external-link fa-sm"></i></a></li>
</ul>
</li>
<li><a href="https://asterixdb.incubator.apache.org/about.html">About</a></li>
http://git-wip-us.apache.org/repos/asf/incubator-asterixdb-site/blob/e2b799e7/content/docs/0.8.7-incubating/api.html
----------------------------------------------------------------------
diff --git a/content/docs/0.8.7-incubating/api.html b/content/docs/0.8.7-incubating/api.html
new file mode 100644
index 0000000..72fd689
--- /dev/null
+++ b/content/docs/0.8.7-incubating/api.html
@@ -0,0 +1,606 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2015-11-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="20151124" />
+ <meta http-equiv="Content-Language" content="en" />
+ <title>AsterixDB – 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="http://asterixdb.apache.org/" 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: 2015-11-24</li>
+
+
+
+ <li id="projectVersion" class="pull-right">Version: 0.8.7-incubating</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">Documentation</li>
+
+ <li>
+
+ <a href="install.html" title="Installing and Managing AsterixDB using Managix">
+ <i class="none"></i>
+ Installing and Managing AsterixDB using Managix</a>
+ </li>
+
+ <li>
+
+ <a href="yarn.html" title="Deploying AsterixDB using YARN">
+ <i class="none"></i>
+ Deploying AsterixDB using YARN</a>
+ </li>
+
+ <li>
+
+ <a href="aql/primer.html" title="AsterixDB 101: An ADM and AQL Primer">
+ <i class="none"></i>
+ AsterixDB 101: An ADM and AQL Primer</a>
+ </li>
+
+ <li>
+
+ <a href="aql/primer-sql-like.html" title="AsterixDB 101: An ADM and AQL Primer (For SQL Fans)">
+ <i class="none"></i>
+ AsterixDB 101: An ADM and AQL Primer (For SQL Fans)</a>
+ </li>
+
+ <li>
+
+ <a href="aql/js-sdk.html" title="AsterixDB Javascript SDK">
+ <i class="none"></i>
+ AsterixDB Javascript SDK</a>
+ </li>
+
+ <li>
+
+ <a href="aql/datamodel.html" title="Asterix Data Model (ADM)">
+ <i class="none"></i>
+ Asterix Data Model (ADM)</a>
+ </li>
+
+ <li>
+
+ <a href="aql/manual.html" title="Asterix Query Language (AQL)">
+ <i class="none"></i>
+ Asterix Query Language (AQL)</a>
+ </li>
+
+ <li>
+
+ <a href="aql/functions.html" title="AQL Functions">
+ <i class="none"></i>
+ AQL Functions</a>
+ </li>
+
+ <li>
+
+ <a href="aql/allens.html" title="AQL Allen's Relations Functions">
+ <i class="none"></i>
+ AQL Allen's Relations Functions</a>
+ </li>
+
+ <li>
+
+ <a href="aql/similarity.html" title="AQL Support of Similarity Queries">
+ <i class="none"></i>
+ AQL Support of Similarity 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 in AsterixDB">
+ <i class="none"></i>
+ Support for Data Ingestion in AsterixDB</a>
+ </li>
+
+ <li>
+
+ <a href="udf.html" title="Support for User Defined Functions in AsterixDB">
+ <i class="none"></i>
+ Support for User Defined Functions in AsterixDB</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="active">
+
+ <a href="#"><i class="none"></i>HTTP API to AsterixDB</a>
+ </li>
+ </ul>
+
+
+
+ <hr class="divider" />
+
+ <div id="poweredBy">
+ <div class="clear"></div>
+ <div class="clear"></div>
+ <div class="clear"></div>
+ <a href="https://code.google.com/p/hyracks/" title="Hyracks" class="builtBy">
+ <img class="builtBy" alt="Hyracks" src="images/hyrax_ts.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><NO PAYLOAD></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({ "id":123,"name":"John Doe"});
+</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><NO PAYLOAD></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’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: <result as a string, if mode = synchronous>
+ error-code: [<code>, <message>] (if an error occurs)
+ handle: <opaque result handle, if mode = asynchronous>
+ }
+</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(‘Employee’)%20return%20$l;](<a class="externalLink" href="http://localhost:19002/query?query=use%20dataverse%20company;for%20$l%20in%20dataset('Employee')%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> {
+ "results": [
+ [
+ "{ "id": 123, "name": "John Doe" }"
+ ]
+ ]
+ }
+</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(‘Employee’)%20return%20$l;&mode=asynchronous](<a class="externalLink" href="http://localhost:19002/query?query=use%20dataverse%20company;for%20$l%20in%20dataset('Employee')%20return%20$l;&mode=asynchronous">http://localhost:19002/query?query=use%20dataverse%20company;for%20$l%20in%20dataset('Employee')%20return%20$l;&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> {
+ "handle": [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’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: <result as a string, if mode = synchronous, or mode = asynchronous and results are available>
+ error-code: [<code>, <message>] (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> {
+ "handle": [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> {
+ "results": [
+ [
+ "{ "id": 123, "name": "John Doe" }"
+ ]
+ ]
+ }
+</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: ("RUNNING" | "SUCCESS" | "ERROR")
+ }
+</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 © 2015
+ <a href="http://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/incubator-asterixdb-site/blob/e2b799e7/content/docs/0.8.7-incubating/aql/allens.html
----------------------------------------------------------------------
diff --git a/content/docs/0.8.7-incubating/aql/allens.html b/content/docs/0.8.7-incubating/aql/allens.html
new file mode 100644
index 0000000..ec566c2
--- /dev/null
+++ b/content/docs/0.8.7-incubating/aql/allens.html
@@ -0,0 +1,660 @@
+<!DOCTYPE html>
+<!--
+ | Generated by Apache Maven Doxia at 2015-11-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="20151124" />
+ <meta http-equiv="Content-Language" content="en" />
+ <title>AsterixDB – AsterixDB Temporal Functions: Allens Relations</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="http://asterixdb.apache.org/" 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: 2015-11-24</li>
+
+
+
+ <li id="projectVersion" class="pull-right">Version: 0.8.7-incubating</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">Documentation</li>
+
+ <li>
+
+ <a href="../install.html" title="Installing and Managing AsterixDB using Managix">
+ <i class="none"></i>
+ Installing and Managing AsterixDB using Managix</a>
+ </li>
+
+ <li>
+
+ <a href="../yarn.html" title="Deploying AsterixDB using YARN">
+ <i class="none"></i>
+ Deploying AsterixDB using YARN</a>
+ </li>
+
+ <li>
+
+ <a href="../aql/primer.html" title="AsterixDB 101: An ADM and AQL Primer">
+ <i class="none"></i>
+ AsterixDB 101: An ADM and AQL Primer</a>
+ </li>
+
+ <li>
+
+ <a href="../aql/primer-sql-like.html" title="AsterixDB 101: An ADM and AQL Primer (For SQL Fans)">
+ <i class="none"></i>
+ AsterixDB 101: An ADM and AQL Primer (For SQL Fans)</a>
+ </li>
+
+ <li>
+
+ <a href="../aql/js-sdk.html" title="AsterixDB Javascript SDK">
+ <i class="none"></i>
+ AsterixDB Javascript SDK</a>
+ </li>
+
+ <li>
+
+ <a href="../aql/datamodel.html" title="Asterix Data Model (ADM)">
+ <i class="none"></i>
+ Asterix Data Model (ADM)</a>
+ </li>
+
+ <li>
+
+ <a href="../aql/manual.html" title="Asterix Query Language (AQL)">
+ <i class="none"></i>
+ Asterix Query Language (AQL)</a>
+ </li>
+
+ <li>
+
+ <a href="../aql/functions.html" title="AQL Functions">
+ <i class="none"></i>
+ AQL Functions</a>
+ </li>
+
+ <li class="active">
+
+ <a href="#"><i class="none"></i>AQL Allen's Relations Functions</a>
+ </li>
+
+ <li>
+
+ <a href="../aql/similarity.html" title="AQL Support of Similarity Queries">
+ <i class="none"></i>
+ AQL Support of Similarity 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 in AsterixDB">
+ <i class="none"></i>
+ Support for Data Ingestion in AsterixDB</a>
+ </li>
+
+ <li>
+
+ <a href="../udf.html" title="Support for User Defined Functions in AsterixDB">
+ <i class="none"></i>
+ Support for User Defined Functions in AsterixDB</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>
+
+ <a href="../api.html" title="HTTP API to AsterixDB">
+ <i class="none"></i>
+ HTTP API to AsterixDB</a>
+ </li>
+ </ul>
+
+
+
+ <hr class="divider" />
+
+ <div id="poweredBy">
+ <div class="clear"></div>
+ <div class="clear"></div>
+ <div class="clear"></div>
+ <a href="https://code.google.com/p/hyracks/" title="Hyracks" class="builtBy">
+ <img class="builtBy" alt="Hyracks" src="../images/hyrax_ts.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>AsterixDB Temporal Functions: Allen’s Relations</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="#AboutAllensRelations">About Allen’s Relations</a></li>
+
+<li><a href="#AllensRelatonsFunctions">Allen’s Relations Functions</a></li>
+</ul></div>
+<div class="section">
+<h2><a name="About_Allens_Relations_Back_to_TOC"></a><a name="AboutAllensRelations" id="AboutAllensRelations">About Allen’s Relations</a> <font size="4"><a href="#toc">[Back to TOC]</a></font></h2>
+<p>AsterixDB supports Allen’s relations over interval types. Allen’s relations are also called Allen’s interval algebra. There are totally 13 base relations described by this algebra, and all of them are supported in AsterixDB (note that <tt>interval-equals</tt> is supported by the <tt>=</tt> comparison symbol so there is no extra function for it). </p>
+<p>A detailed description of Allen’s relations can be found from its <a class="externalLink" href="http://en.wikipedia.org/wiki/Allen's_interval_algebra">wikipedia entry</a>. </p></div>
+<div class="section">
+<h2><a name="Allens_Relations_Functions_Back_to_TOC"></a><a name="AllensRelatonsFunctions" id="AllensRelatonsFunctions">Allen’s Relations Functions</a> <font size="4"><a href="#toc">[Back to TOC]</a></font></h2>
+<div class="section">
+<h3><a name="interval-before_interval-after"></a>interval-before, interval-after</h3>
+
+<ul>
+
+<li>
+<p>Syntax:</p>
+
+<div class="source">
+<div class="source">
+<pre>interval-before(interval1, interval2)
+interval-after(interval1, interval2)
+</pre></div></div></li>
+
+<li>
+<p>These two functions check whether an interval happens before/after another interval. </p></li>
+
+<li>Arguments:
+
+<ul>
+
+<li><tt>interval1</tt>, <tt>interval2</tt>: two intervals to be compared</li>
+ </ul></li>
+
+<li>
+<p>Return Value:</p>
+<p>A <tt>boolean</tt> value. Specifically, <tt>interval-before(interval1, interval2)</tt> is true if and only if <tt>interval1.end < interval2.start</tt>, and <tt>interval-after(interval1, interval2)</tt> is true if and only if <tt>interval1.start > interval2.end</tt>. If any of the two inputs is <tt>null</tt>, <tt>null</tt> is returned.</p></li>
+
+<li>
+<p>Examples:</p>
+
+<div class="source">
+<div class="source">
+<pre>let $itv1 := interval-from-date("2000-01-01", "2005-01-01")
+let $itv2 := interval-from-date("2005-05-01", "2012-09-09")
+return {"interval-before": interval-before($itv1, $itv2), "interval-after": interval-after($itv2, $itv1)}
+</pre></div></div></li>
+
+<li>
+<p>The expected result is:</p>
+
+<div class="source">
+<div class="source">
+<pre>{ "interval-before": true, "interval-after": true }
+</pre></div></div></li>
+</ul></div>
+<div class="section">
+<h3><a name="interval-covers_interval-covered-by"></a>interval-covers, interval-covered-by</h3>
+
+<ul>
+
+<li>
+<p>Syntax:</p>
+
+<div class="source">
+<div class="source">
+<pre>interval-covers(interval1, interval2)
+interval-covered-by(interval1, interval2)
+</pre></div></div></li>
+
+<li>
+<p>These two functions check whether one interval covers the other interval.</p></li>
+
+<li>Arguments:
+
+<ul>
+
+<li><tt>interval1</tt>, <tt>interval2</tt>: two intervals to be compared</li>
+ </ul></li>
+
+<li>
+<p>Return Value:</p>
+<p>A <tt>boolean</tt> value. Specifically, <tt>interval-covers(interval1, interval2)</tt> is true if and only if</p>
+
+<div class="source">
+<div class="source">
+<pre>interval1.start <= interval2.start
+AND interval1.end >= interval2.end
+</pre></div></div>
+<p><tt>interval-covered-by(interval1, interval2)</tt> is true if and only if</p>
+
+<div class="source">
+<div class="source">
+<pre>interval2.start <= interval1.start
+AND interval2.end >= interval1.end
+</pre></div></div>
+<p>For both functions, if any of the two inputs is <tt>null</tt>, <tt>null</tt> is returned.</p></li>
+
+<li>
+<p>Examples:</p>
+
+<div class="source">
+<div class="source">
+<pre>let $itv1 := interval-from-date("2000-01-01", "2005-01-01")
+let $itv2 := interval-from-date("2000-03-01", "2004-09-09")
+let $itv3 := interval-from-date("2006-08-01", "2007-03-01")
+let $itv4 := interval-from-date("2004-09-10", "2012-08-01")
+return {"interval-covers": interval-covers($itv1, $itv2), "interval-covered-by": interval-covered-by($itv3, $itv4)}
+</pre></div></div></li>
+
+<li>
+<p>The expected result is:</p>
+
+<div class="source">
+<div class="source">
+<pre>{ "interval-covers": true, "interval-covered-by": true }
+</pre></div></div></li>
+</ul></div>
+<div class="section">
+<h3><a name="interval-overlaps_interval-overlapped-by"></a>interval-overlaps, interval-overlapped-by</h3>
+
+<ul>
+
+<li>
+<p>Syntax:</p>
+
+<div class="source">
+<div class="source">
+<pre>interval-overlaps(interval1, interval2)
+interval-overlapped-by(interval1, interval2)
+</pre></div></div></li>
+
+<li>
+<p>These functions check whether two intervals overlap with each other.</p></li>
+
+<li>Arguments:
+
+<ul>
+
+<li><tt>interval1</tt>, <tt>interval2</tt>: two intervals to be compared</li>
+ </ul></li>
+
+<li>
+<p>Return Value:</p>
+<p>A <tt>boolean</tt> value. Specifically, <tt>interval-overlaps(interval1, interval2)</tt> is true if and only if</p>
+
+<div class="source">
+<div class="source">
+<pre>interval1.start < interval2.start
+AND interval2.end > interval1.end
+AND interval1.end > interval2.start
+</pre></div></div>
+<p><tt>interval-overlapped-by(interval1, interval2)</tt> is true if and only if</p>
+
+<div class="source">
+<div class="source">
+<pre>interval2.start < interval1.start
+AND interval1.end > interval2.end
+AND interval2.end > interval1.start
+</pre></div></div>
+<p>For all these functions, if any of the two inputs is <tt>null</tt>, <tt>null</tt> is returned.</p>
+<p>Note that <tt>interval-overlaps</tt> and <tt>interval-overlapped-by</tt> are following the Allen’s relations on the definition of overlap.</p></li>
+
+<li>
+<p>Examples:</p>
+
+<div class="source">
+<div class="source">
+<pre>let $itv1 := interval-from-date("2000-01-01", "2005-01-01")
+let $itv2 := interval-from-date("2004-05-01", "2012-09-09")
+let $itv3 := interval-from-date("2006-08-01", "2007-03-01")
+let $itv4 := interval-from-date("2004-09-10", "2006-12-31")
+return {"overlaps": interval-overlaps($itv1, $itv2),
+ "overlapped-by": interval-overlapped-by($itv3, $itv4)}
+</pre></div></div></li>
+
+<li>
+<p>The expected result is:</p>
+
+<div class="source">
+<div class="source">
+<pre>{ "overlaps": true, "overlapped-by": true }
+</pre></div></div></li>
+</ul></div>
+<div class="section">
+<h3><a name="interval-overlapping"></a>interval-overlapping</h3>
+<p>Note that <tt>interval-overlapping</tt> is not an Allen’s Relation, but syntactic sugar we added for the case that the intersect of two intervals is not empty. Basically this function returns true if any of these functions return true: <tt>interval-overlaps</tt>, <tt>interval-overlapped-by</tt>, <tt>interval-covers</tt>, or <tt>interval-covered-by</tt>.</p>
+
+<ul>
+
+<li>
+<p>Syntax:</p>
+
+<div class="source">
+<div class="source">
+<pre>interval-overlapping(interval1, interval2)
+</pre></div></div></li>
+
+<li>
+<p>This functions check whether two intervals share any points with each other. </p></li>
+
+<li>Arguments:
+
+<ul>
+
+<li><tt>interval1</tt>, <tt>interval2</tt>: two intervals to be compared</li>
+ </ul></li>
+
+<li>
+<p>Return Value:</p>
+<p>A <tt>boolean</tt> value. Specifically, <tt>interval-overlapping(interval1, interval2)</tt> is true if</p>
+
+<div class="source">
+<div class="source">
+<pre>(interval2.start >= interval1.start
+AND interval2.start < interval1.end)
+OR
+(interval2.end > interval1.start
+AND interval2.end <= interval1.end)
+</pre></div></div>
+<p>If any of the two inputs is <tt>null</tt>, <tt>null</tt> is returned.</p></li>
+
+<li>
+<p>Examples:</p>
+
+<div class="source">
+<div class="source">
+<pre>let $itv1 := interval-from-date("2000-01-01", "2005-01-01")
+let $itv2 := interval-from-date("2004-05-01", "2012-09-09")
+let $itv3 := interval-from-date("2006-08-01", "2007-03-01")
+let $itv4 := interval-from-date("2004-09-10", "2006-12-31")
+return {"overlapping1": interval-overlapping($itv1, $itv2),
+ "overlapping2": interval-overlapping($itv3, $itv4)}
+</pre></div></div></li>
+
+<li>
+<p>The expected result is:</p>
+
+<div class="source">
+<div class="source">
+<pre>{ "overlapping1": true, "overlapping2": true }
+</pre></div></div></li>
+</ul></div>
+<div class="section">
+<h3><a name="interval-meets_interval-met-by"></a>interval-meets, interval-met-by</h3>
+
+<ul>
+
+<li>
+<p>Syntax:</p>
+
+<div class="source">
+<div class="source">
+<pre>interval-meets(interval1, interval2)
+interval-met-by(interval1, interval2)
+</pre></div></div></li>
+
+<li>
+<p>These two functions check whether an interval meets with another interval. </p></li>
+
+<li>Arguments:
+
+<ul>
+
+<li><tt>interval1</tt>, <tt>interval2</tt>: two intervals to be compared</li>
+ </ul></li>
+
+<li>
+<p>Return Value:</p>
+<p>A <tt>boolean</tt> value. Specifically, <tt>interval-meets(interval1, interval2)</tt> is true if and only if <tt>interval1.end = interval2.start</tt>, and <tt>interval-met-by(interval1, interval2)</tt> is true if and only if <tt>interval1.start = interval2.end</tt>. If any of the two inputs is <tt>null</tt>, <tt>null</tt> is returned.</p></li>
+
+<li>
+<p>Examples:</p>
+
+<div class="source">
+<div class="source">
+<pre>let $itv1 := interval-from-date("2000-01-01", "2005-01-01")
+let $itv2 := interval-from-date("2005-01-01", "2012-09-09")
+let $itv3 := interval-from-date("2006-08-01", "2007-03-01")
+let $itv4 := interval-from-date("2004-09-10", "2006-08-01")
+return {"meets": interval-meets($itv1, $itv2), "metby": interval-met-by($itv3, $itv4)}
+</pre></div></div></li>
+
+<li>
+<p>The expected result is:</p>
+
+<div class="source">
+<div class="source">
+<pre>{ "meets": true, "metby": true }
+</pre></div></div></li>
+</ul></div>
+<div class="section">
+<h3><a name="interval-starts_interval-started-by"></a>interval-starts, interval-started-by</h3>
+
+<ul>
+
+<li>
+<p>Syntax:</p>
+
+<div class="source">
+<div class="source">
+<pre>interval-starts(interval1, interval2)
+interval-started-by(interval1, interval2)
+</pre></div></div></li>
+
+<li>
+<p>These two functions check whether one interval starts with the other interval.</p></li>
+
+<li>Arguments:
+
+<ul>
+
+<li><tt>interval1</tt>, <tt>interval2</tt>: two intervals to be compared</li>
+ </ul></li>
+
+<li>
+<p>Return Value:</p>
+<p>A <tt>boolean</tt> value. Specifically, <tt>interval-starts(interval1, interval2)</tt> returns true if and only if</p>
+
+<div class="source">
+<div class="source">
+<pre>interval1.start = interval2.start
+AND interval1.end <= interval2.end
+</pre></div></div>
+<p><tt>interval-started-by(interval1, interval2)</tt> returns true if and only if</p>
+
+<div class="source">
+<div class="source">
+<pre>interval1.start = interval2.start
+AND interval2.end <= interval1.end
+</pre></div></div>
+<p>For both functions, if any of the two inputs is <tt>null</tt>, <tt>null</tt> is returned.</p></li>
+
+<li>
+<p>Examples:</p>
+
+<div class="source">
+<div class="source">
+<pre>let $itv1 := interval-from-date("2000-01-01", "2005-01-01")
+let $itv2 := interval-from-date("2000-01-01", "2012-09-09")
+let $itv3 := interval-from-date("2006-08-01", "2007-03-01")
+let $itv4 := interval-from-date("2006-08-01", "2006-08-01")
+return {"interval-starts": interval-starts($itv1, $itv2), "interval-started-by": interval-started-by($itv3, $itv4)}
+</pre></div></div></li>
+
+<li>
+<p>The expected result is:</p>
+
+<div class="source">
+<div class="source">
+<pre>{ "interval-starts": true, "interval-started-by": true }
+</pre></div></div></li>
+</ul></div>
+<div class="section">
+<h3><a name="interval-ends_interval-ended-by"></a>interval-ends, interval-ended-by</h3>
+
+<ul>
+
+<li>
+<p>Syntax:</p>
+
+<div class="source">
+<div class="source">
+<pre>interval-ends(interval1, interval2)
+interval-ended-by(interval1, interval2)
+</pre></div></div></li>
+
+<li>
+<p>These two functions check whether one interval ends with the other interval.</p></li>
+
+<li>Arguments:
+
+<ul>
+
+<li><tt>interval1</tt>, <tt>interval2</tt>: two intervals to be compared</li>
+ </ul></li>
+
+<li>
+<p>Return Value:</p>
+<p>A <tt>boolean</tt> value. Specifically, <tt>interval-ends(interval1, interval2)</tt> returns true if and only if</p>
+
+<div class="source">
+<div class="source">
+<pre>interval1.end = interval2.end
+AND interval1.start >= interval2.start
+</pre></div></div>
+<p><tt>interval-ended-by(interval1, interval2)</tt> returns true if and only if</p>
+
+<div class="source">
+<div class="source">
+<pre>interval2.end = interval1.end
+AND interval2.start >= interval1.start
+</pre></div></div>
+<p>For both functions, if any of the two inputs is <tt>null</tt>, <tt>null</tt> is returned.</p></li>
+
+<li>
+<p>Examples:</p>
+
+<div class="source">
+<div class="source">
+<pre>let $itv1 := interval-from-date("2000-01-01", "2005-01-01")
+let $itv2 := interval-from-date("1998-01-01", "2005-01-01")
+let $itv3 := interval-from-date("2006-08-01", "2007-03-01")
+let $itv4 := interval-from-date("2006-09-10", "2007-03-01")
+return {"interval-ends": interval-ends($itv1, $itv2), "interval-ended-by": interval-ended-by($itv3, $itv4) }
+</pre></div></div></li>
+
+<li>
+<p>The expected result is:</p>
+
+<div class="source">
+<div class="source">
+<pre>{ "interval-ends": true, "interval-ended-by": true }
+</pre></div></div></li>
+</ul></div></div>
+ </div>
+ </div>
+ </div>
+
+ <hr/>
+
+ <footer>
+ <div class="container-fluid">
+ <div class="row span12">Copyright © 2015
+ <a href="http://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>