You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2013/06/28 20:54:05 UTC

svn commit: r1497879 - in /hive/site/publish/docs: hcat_r0.5.0/api/index.html r0.10.0/api/index.html r0.11.0/api/index.html r0.9.0/api/index.html

Author: hashutosh
Date: Fri Jun 28 18:54:04 2013
New Revision: 1497879

URL: http://svn.apache.org/r1497879
Log:
HIVE-4783 : Update published Hive javadocs to address #225657 (Brock Noland via Ashutosh Chauhan)

Modified:
    hive/site/publish/docs/hcat_r0.5.0/api/index.html
    hive/site/publish/docs/r0.10.0/api/index.html
    hive/site/publish/docs/r0.11.0/api/index.html
    hive/site/publish/docs/r0.9.0/api/index.html

Modified: hive/site/publish/docs/hcat_r0.5.0/api/index.html
URL: http://svn.apache.org/viewvc/hive/site/publish/docs/hcat_r0.5.0/api/index.html?rev=1497879&r1=1497878&r2=1497879&view=diff
==============================================================================
--- hive/site/publish/docs/hcat_r0.5.0/api/index.html (original)
+++ hive/site/publish/docs/hcat_r0.5.0/api/index.html Fri Jun 28 18:54:04 2013
@@ -12,6 +12,42 @@ HCatalog 0.5.0-incubating API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hive/site/publish/docs/r0.10.0/api/index.html
URL: http://svn.apache.org/viewvc/hive/site/publish/docs/r0.10.0/api/index.html?rev=1497879&r1=1497878&r2=1497879&view=diff
==============================================================================
--- hive/site/publish/docs/r0.10.0/api/index.html (original)
+++ hive/site/publish/docs/r0.10.0/api/index.html Fri Jun 28 18:54:04 2013
@@ -12,6 +12,42 @@ Hive 0.10.0 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hive/site/publish/docs/r0.11.0/api/index.html
URL: http://svn.apache.org/viewvc/hive/site/publish/docs/r0.11.0/api/index.html?rev=1497879&r1=1497878&r2=1497879&view=diff
==============================================================================
--- hive/site/publish/docs/r0.11.0/api/index.html (original)
+++ hive/site/publish/docs/r0.11.0/api/index.html Fri Jun 28 18:54:04 2013
@@ -12,6 +12,42 @@ Hive 0.11.0 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;

Modified: hive/site/publish/docs/r0.9.0/api/index.html
URL: http://svn.apache.org/viewvc/hive/site/publish/docs/r0.9.0/api/index.html?rev=1497879&r1=1497878&r2=1497879&view=diff
==============================================================================
--- hive/site/publish/docs/r0.9.0/api/index.html (original)
+++ hive/site/publish/docs/r0.9.0/api/index.html Fri Jun 28 18:54:04 2013
@@ -12,6 +12,42 @@ Hive 0.9.0 API
         targetPage = targetPage.substring(1);
     if (targetPage.indexOf(":") != -1)
         targetPage = "undefined";
+    if (targetPage != "" && !validURL(targetPage))
+        targetPage = "undefined";
+    function validURL(url) {
+        var pos = url.indexOf(".html");
+        if (pos == -1 || pos != url.length - 5)
+            return false;
+        var allowNumber = false;
+        var allowSep = false;
+        var seenDot = false;
+        for (var i = 0; i < url.length - 5; i++) {
+            var ch = url.charAt(i);
+            if ('a' <= ch && ch <= 'z' ||
+                    'A' <= ch && ch <= 'Z' ||
+                    ch == '$' ||
+                    ch == '_') {
+                allowNumber = true;
+                allowSep = true;
+            } else if ('0' <= ch && ch <= '9'
+                    || ch == '-') {
+                if (!allowNumber)
+                     return false;
+            } else if (ch == '/' || ch == '.') {
+                if (!allowSep)
+                    return false;
+                allowNumber = false;
+                allowSep = false;
+                if (ch == '.')
+                     seenDot = true;
+                if (ch == '/' && seenDot)
+                     return false;
+            } else {
+                return false;
+            }
+        }
+        return true;
+    }
     function loadFrames() {
         if (targetPage != "" && targetPage != "undefined")
              top.classFrame.location = top.targetPage;