FAQ
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;

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedJun 28, '13 at 6:54p
activeJun 28, '13 at 6:54p
posts1
users1
websitehive.apache.org

1 user in discussion

Hashutosh: 1 post

People

Translate

site design / logo © 2021 Grokbase