hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [01/27] hbase-site git commit: Published site at .
Date Thu, 07 Sep 2017 15:13:48 GMT
Repository: hbase-site
Updated Branches:
  refs/heads/asf-site 76716de14 -> f9e8b54d2


http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f9e8b54d/testdevapidocs/src-html/org/apache/hadoop/hbase/rest/model/TestStorageClusterVersionModel.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/rest/model/TestStorageClusterVersionModel.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/rest/model/TestStorageClusterVersionModel.html
index 9535af0..5a3765b 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/rest/model/TestStorageClusterVersionModel.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/rest/model/TestStorageClusterVersionModel.html
@@ -39,9 +39,9 @@
 <span class="sourceLineNo">031</span>    super(StorageClusterVersionModel.class);<a name="line.31"></a>
 <span class="sourceLineNo">032</span>    AS_XML =<a name="line.32"></a>
 <span class="sourceLineNo">033</span>      "&lt;?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?&gt;"+<a name="line.33"></a>
-<span class="sourceLineNo">034</span>      "&lt;ClusterVersion&gt;" + VERSION + "&lt;/ClusterVersion&gt;";<a name="line.34"></a>
+<span class="sourceLineNo">034</span>      "&lt;ClusterVersion Version=\"" + VERSION + "\"/&gt;";<a name="line.34"></a>
 <span class="sourceLineNo">035</span><a name="line.35"></a>
-<span class="sourceLineNo">036</span>    AS_JSON = "\"0.0.1-testing\"";<a name="line.36"></a>
+<span class="sourceLineNo">036</span>    AS_JSON = "{\"Version\": \"0.0.1-testing\"}";<a name="line.36"></a>
 <span class="sourceLineNo">037</span>  }<a name="line.37"></a>
 <span class="sourceLineNo">038</span><a name="line.38"></a>
 <span class="sourceLineNo">039</span>  protected StorageClusterVersionModel buildTestModel() {<a name="line.39"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f9e8b54d/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestAccessController2.MyAccessController.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestAccessController2.MyAccessController.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestAccessController2.MyAccessController.html
index 5b43d56..49e17de 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestAccessController2.MyAccessController.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestAccessController2.MyAccessController.html
@@ -62,7 +62,7 @@
 <span class="sourceLineNo">054</span>import org.apache.hadoop.hbase.testclassification.LargeTests;<a name="line.54"></a>
 <span class="sourceLineNo">055</span>import org.apache.hadoop.hbase.testclassification.SecurityTests;<a name="line.55"></a>
 <span class="sourceLineNo">056</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.56"></a>
-<span class="sourceLineNo">057</span>import org.apache.hadoop.hbase.util.TestTableName;<a name="line.57"></a>
+<span class="sourceLineNo">057</span>import org.apache.hadoop.hbase.TestTableName;<a name="line.57"></a>
 <span class="sourceLineNo">058</span>import org.apache.hadoop.hbase.zookeeper.ZKUtil;<a name="line.58"></a>
 <span class="sourceLineNo">059</span>import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher;<a name="line.59"></a>
 <span class="sourceLineNo">060</span>import org.junit.After;<a name="line.60"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f9e8b54d/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestAccessController2.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestAccessController2.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestAccessController2.html
index 5b43d56..49e17de 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestAccessController2.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestAccessController2.html
@@ -62,7 +62,7 @@
 <span class="sourceLineNo">054</span>import org.apache.hadoop.hbase.testclassification.LargeTests;<a name="line.54"></a>
 <span class="sourceLineNo">055</span>import org.apache.hadoop.hbase.testclassification.SecurityTests;<a name="line.55"></a>
 <span class="sourceLineNo">056</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.56"></a>
-<span class="sourceLineNo">057</span>import org.apache.hadoop.hbase.util.TestTableName;<a name="line.57"></a>
+<span class="sourceLineNo">057</span>import org.apache.hadoop.hbase.TestTableName;<a name="line.57"></a>
 <span class="sourceLineNo">058</span>import org.apache.hadoop.hbase.zookeeper.ZKUtil;<a name="line.58"></a>
 <span class="sourceLineNo">059</span>import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher;<a name="line.59"></a>
 <span class="sourceLineNo">060</span>import org.junit.After;<a name="line.60"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f9e8b54d/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestCellACLWithMultipleVersions.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestCellACLWithMultipleVersions.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestCellACLWithMultipleVersions.html
index c731afc..1735f2e 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestCellACLWithMultipleVersions.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestCellACLWithMultipleVersions.html
@@ -58,7 +58,7 @@
 <span class="sourceLineNo">050</span>import org.apache.hadoop.hbase.testclassification.SecurityTests;<a name="line.50"></a>
 <span class="sourceLineNo">051</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.51"></a>
 <span class="sourceLineNo">052</span>import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>import org.apache.hadoop.hbase.util.TestTableName;<a name="line.53"></a>
+<span class="sourceLineNo">053</span>import org.apache.hadoop.hbase.TestTableName;<a name="line.53"></a>
 <span class="sourceLineNo">054</span>import org.apache.hadoop.hbase.util.Threads;<a name="line.54"></a>
 <span class="sourceLineNo">055</span>import org.apache.log4j.Level;<a name="line.55"></a>
 <span class="sourceLineNo">056</span>import org.apache.log4j.Logger;<a name="line.56"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f9e8b54d/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestCellACLs.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestCellACLs.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestCellACLs.html
index e0fd8e4..de16d05 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestCellACLs.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestCellACLs.html
@@ -60,7 +60,7 @@
 <span class="sourceLineNo">052</span>import org.apache.hadoop.hbase.testclassification.LargeTests;<a name="line.52"></a>
 <span class="sourceLineNo">053</span>import org.apache.hadoop.hbase.testclassification.SecurityTests;<a name="line.53"></a>
 <span class="sourceLineNo">054</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.54"></a>
-<span class="sourceLineNo">055</span>import org.apache.hadoop.hbase.util.TestTableName;<a name="line.55"></a>
+<span class="sourceLineNo">055</span>import org.apache.hadoop.hbase.TestTableName;<a name="line.55"></a>
 <span class="sourceLineNo">056</span>import org.apache.hadoop.hbase.util.Threads;<a name="line.56"></a>
 <span class="sourceLineNo">057</span>import org.apache.log4j.Level;<a name="line.57"></a>
 <span class="sourceLineNo">058</span>import org.apache.log4j.Logger;<a name="line.58"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f9e8b54d/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestScanEarlyTermination.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestScanEarlyTermination.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestScanEarlyTermination.html
index 517d50f..e97b069 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestScanEarlyTermination.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestScanEarlyTermination.html
@@ -52,7 +52,7 @@
 <span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.testclassification.MediumTests;<a name="line.44"></a>
 <span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.testclassification.SecurityTests;<a name="line.45"></a>
 <span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.util.TestTableName;<a name="line.47"></a>
+<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.TestTableName;<a name="line.47"></a>
 <span class="sourceLineNo">048</span>import org.apache.log4j.Level;<a name="line.48"></a>
 <span class="sourceLineNo">049</span>import org.apache.log4j.Logger;<a name="line.49"></a>
 <span class="sourceLineNo">050</span>import org.junit.After;<a name="line.50"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f9e8b54d/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestWithDisabledAuthorization.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestWithDisabledAuthorization.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestWithDisabledAuthorization.html
index 981016e..4285d3f 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestWithDisabledAuthorization.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/security/access/TestWithDisabledAuthorization.html
@@ -79,7 +79,7 @@
 <span class="sourceLineNo">071</span>import org.apache.hadoop.hbase.testclassification.SecurityTests;<a name="line.71"></a>
 <span class="sourceLineNo">072</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.72"></a>
 <span class="sourceLineNo">073</span>import org.apache.hadoop.hbase.util.Pair;<a name="line.73"></a>
-<span class="sourceLineNo">074</span>import org.apache.hadoop.hbase.util.TestTableName;<a name="line.74"></a>
+<span class="sourceLineNo">074</span>import org.apache.hadoop.hbase.TestTableName;<a name="line.74"></a>
 <span class="sourceLineNo">075</span>import org.apache.log4j.Level;<a name="line.75"></a>
 <span class="sourceLineNo">076</span>import org.apache.log4j.Logger;<a name="line.76"></a>
 <span class="sourceLineNo">077</span>import org.junit.After;<a name="line.77"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f9e8b54d/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestSnapshotClientRetries.MasterSyncObserver.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestSnapshotClientRetries.MasterSyncObserver.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestSnapshotClientRetries.MasterSyncObserver.html
index eaf36b1..7902af2 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestSnapshotClientRetries.MasterSyncObserver.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestSnapshotClientRetries.MasterSyncObserver.html
@@ -42,7 +42,7 @@
 <span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.coprocessor.ObserverContext;<a name="line.34"></a>
 <span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription;<a name="line.35"></a>
 <span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.testclassification.MediumTests;<a name="line.36"></a>
-<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.util.TestTableName;<a name="line.37"></a>
+<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.TestTableName;<a name="line.37"></a>
 <span class="sourceLineNo">038</span>import org.junit.After;<a name="line.38"></a>
 <span class="sourceLineNo">039</span>import org.junit.Before;<a name="line.39"></a>
 <span class="sourceLineNo">040</span>import org.junit.Rule;<a name="line.40"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f9e8b54d/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestSnapshotClientRetries.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestSnapshotClientRetries.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestSnapshotClientRetries.html
index eaf36b1..7902af2 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestSnapshotClientRetries.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/snapshot/TestSnapshotClientRetries.html
@@ -42,7 +42,7 @@
 <span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.coprocessor.ObserverContext;<a name="line.34"></a>
 <span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription;<a name="line.35"></a>
 <span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.testclassification.MediumTests;<a name="line.36"></a>
-<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.util.TestTableName;<a name="line.37"></a>
+<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.TestTableName;<a name="line.37"></a>
 <span class="sourceLineNo">038</span>import org.junit.After;<a name="line.38"></a>
 <span class="sourceLineNo">039</span>import org.junit.Before;<a name="line.39"></a>
 <span class="sourceLineNo">040</span>import org.junit.Rule;<a name="line.40"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f9e8b54d/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestTableName.Names.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestTableName.Names.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestTableName.Names.html
deleted file mode 100644
index 1bc39b4..0000000
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestTableName.Names.html
+++ /dev/null
@@ -1,262 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
-<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
-<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
-<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
-<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
-<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
-<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
-<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
-<span class="sourceLineNo">009</span> *<a name="line.9"></a>
-<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
-<span class="sourceLineNo">011</span> *<a name="line.11"></a>
-<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
-<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
-<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
-<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
-<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
-<span class="sourceLineNo">017</span> */<a name="line.17"></a>
-<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.util;<a name="line.18"></a>
-<span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>import java.nio.ByteBuffer;<a name="line.20"></a>
-<span class="sourceLineNo">021</span>import java.util.HashMap;<a name="line.21"></a>
-<span class="sourceLineNo">022</span>import java.util.Map;<a name="line.22"></a>
-<span class="sourceLineNo">023</span><a name="line.23"></a>
-<span class="sourceLineNo">024</span>import static org.junit.Assert.assertArrayEquals;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import static org.junit.Assert.assertEquals;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import static org.junit.Assert.assertSame;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import static org.junit.Assert.fail;<a name="line.27"></a>
-<span class="sourceLineNo">028</span><a name="line.28"></a>
-<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.testclassification.MiscTests;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.testclassification.MediumTests;<a name="line.30"></a>
-<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.TableName;<a name="line.31"></a>
-<span class="sourceLineNo">032</span>import org.junit.Test;<a name="line.32"></a>
-<span class="sourceLineNo">033</span>import org.junit.experimental.categories.Category;<a name="line.33"></a>
-<span class="sourceLineNo">034</span>import org.junit.rules.TestWatcher;<a name="line.34"></a>
-<span class="sourceLineNo">035</span>import org.junit.runner.Description;<a name="line.35"></a>
-<span class="sourceLineNo">036</span><a name="line.36"></a>
-<span class="sourceLineNo">037</span>/**<a name="line.37"></a>
-<span class="sourceLineNo">038</span> * Returns a {@code byte[]} containing the name of the currently running test method.<a name="line.38"></a>
-<span class="sourceLineNo">039</span> */<a name="line.39"></a>
-<span class="sourceLineNo">040</span>@Category({MiscTests.class, MediumTests.class})<a name="line.40"></a>
-<span class="sourceLineNo">041</span>public class TestTableName extends TestWatcher {<a name="line.41"></a>
-<span class="sourceLineNo">042</span>  private TableName tableName;<a name="line.42"></a>
-<span class="sourceLineNo">043</span><a name="line.43"></a>
-<span class="sourceLineNo">044</span>  /**<a name="line.44"></a>
-<span class="sourceLineNo">045</span>   * Invoked when a test is about to start<a name="line.45"></a>
-<span class="sourceLineNo">046</span>   */<a name="line.46"></a>
-<span class="sourceLineNo">047</span>  @Override<a name="line.47"></a>
-<span class="sourceLineNo">048</span>  protected void starting(Description description) {<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    tableName = TableName.valueOf(description.getMethodName());<a name="line.49"></a>
-<span class="sourceLineNo">050</span>  }<a name="line.50"></a>
-<span class="sourceLineNo">051</span><a name="line.51"></a>
-<span class="sourceLineNo">052</span>  public TableName getTableName() {<a name="line.52"></a>
-<span class="sourceLineNo">053</span>    return tableName;<a name="line.53"></a>
-<span class="sourceLineNo">054</span>  }<a name="line.54"></a>
-<span class="sourceLineNo">055</span><a name="line.55"></a>
-<span class="sourceLineNo">056</span>  String emptyNames[] ={"", " "};<a name="line.56"></a>
-<span class="sourceLineNo">057</span>  String invalidNamespace[] = {":a", "%:a"};<a name="line.57"></a>
-<span class="sourceLineNo">058</span>  String legalTableNames[] = { "foo", "with-dash_under.dot", "_under_start_ok",<a name="line.58"></a>
-<span class="sourceLineNo">059</span>      "with-dash.with_underscore", "02-01-2012.my_table_01-02", "xyz._mytable_", "9_9_0.table_02"<a name="line.59"></a>
-<span class="sourceLineNo">060</span>      , "dot1.dot2.table", "new.-mytable", "with-dash.with.dot", "legal..t2", "legal..legal.t2",<a name="line.60"></a>
-<span class="sourceLineNo">061</span>      "trailingdots..", "trailing.dots...", "ns:mytable", "ns:_mytable_", "ns:my_table_01-02"};<a name="line.61"></a>
-<span class="sourceLineNo">062</span>  String illegalTableNames[] = { ".dot_start_illegal", "-dash_start_illegal", "spaces not ok",<a name="line.62"></a>
-<span class="sourceLineNo">063</span>      "-dash-.start_illegal", "new.table with space", "01 .table", "ns:-illegaldash",<a name="line.63"></a>
-<span class="sourceLineNo">064</span>      "new:.illegaldot", "new:illegalcolon1:", "new:illegalcolon1:2"};<a name="line.64"></a>
-<span class="sourceLineNo">065</span><a name="line.65"></a>
-<span class="sourceLineNo">066</span><a name="line.66"></a>
-<span class="sourceLineNo">067</span>  @Test(expected = IllegalArgumentException.class)<a name="line.67"></a>
-<span class="sourceLineNo">068</span>  public void testInvalidNamespace() {<a name="line.68"></a>
-<span class="sourceLineNo">069</span>    for (String tn : invalidNamespace) {<a name="line.69"></a>
-<span class="sourceLineNo">070</span>      TableName.isLegalFullyQualifiedTableName(Bytes.toBytes(tn));<a name="line.70"></a>
-<span class="sourceLineNo">071</span>      fail("invalid namespace " + tn + " should have failed with IllegalArgumentException for namespace");<a name="line.71"></a>
-<span class="sourceLineNo">072</span>    }<a name="line.72"></a>
-<span class="sourceLineNo">073</span>  }<a name="line.73"></a>
-<span class="sourceLineNo">074</span><a name="line.74"></a>
-<span class="sourceLineNo">075</span>  @Test(expected = IllegalArgumentException.class)<a name="line.75"></a>
-<span class="sourceLineNo">076</span>  public void testEmptyNamespaceName() {<a name="line.76"></a>
-<span class="sourceLineNo">077</span>    for (String nn : emptyNames) {<a name="line.77"></a>
-<span class="sourceLineNo">078</span>      TableName.isLegalNamespaceName(Bytes.toBytes(nn));<a name="line.78"></a>
-<span class="sourceLineNo">079</span>      fail("invalid Namespace name " + nn + " should have failed with IllegalArgumentException");<a name="line.79"></a>
-<span class="sourceLineNo">080</span>    }<a name="line.80"></a>
-<span class="sourceLineNo">081</span>  }<a name="line.81"></a>
-<span class="sourceLineNo">082</span><a name="line.82"></a>
-<span class="sourceLineNo">083</span>  @Test(expected = IllegalArgumentException.class)<a name="line.83"></a>
-<span class="sourceLineNo">084</span>  public void testEmptyTableName() {<a name="line.84"></a>
-<span class="sourceLineNo">085</span>    for (String tn : emptyNames) {<a name="line.85"></a>
-<span class="sourceLineNo">086</span>      TableName.isLegalFullyQualifiedTableName(Bytes.toBytes(tn));<a name="line.86"></a>
-<span class="sourceLineNo">087</span>      fail("invalid tablename " + tn + " should have failed with IllegalArgumentException");<a name="line.87"></a>
-<span class="sourceLineNo">088</span>    }<a name="line.88"></a>
-<span class="sourceLineNo">089</span>  }<a name="line.89"></a>
-<span class="sourceLineNo">090</span><a name="line.90"></a>
-<span class="sourceLineNo">091</span>  @Test<a name="line.91"></a>
-<span class="sourceLineNo">092</span>  public void testLegalHTableNames() {<a name="line.92"></a>
-<span class="sourceLineNo">093</span>    for (String tn : legalTableNames) {<a name="line.93"></a>
-<span class="sourceLineNo">094</span>      TableName.isLegalFullyQualifiedTableName(Bytes.toBytes(tn));<a name="line.94"></a>
-<span class="sourceLineNo">095</span>    }<a name="line.95"></a>
-<span class="sourceLineNo">096</span>  }<a name="line.96"></a>
-<span class="sourceLineNo">097</span><a name="line.97"></a>
-<span class="sourceLineNo">098</span>  @Test<a name="line.98"></a>
-<span class="sourceLineNo">099</span>  public void testIllegalHTableNames() {<a name="line.99"></a>
-<span class="sourceLineNo">100</span>    for (String tn : illegalTableNames) {<a name="line.100"></a>
-<span class="sourceLineNo">101</span>      try {<a name="line.101"></a>
-<span class="sourceLineNo">102</span>        TableName.isLegalFullyQualifiedTableName(Bytes.toBytes(tn));<a name="line.102"></a>
-<span class="sourceLineNo">103</span>        fail("invalid tablename " + tn + " should have failed");<a name="line.103"></a>
-<span class="sourceLineNo">104</span>      } catch (Exception e) {<a name="line.104"></a>
-<span class="sourceLineNo">105</span>        // expected<a name="line.105"></a>
-<span class="sourceLineNo">106</span>      }<a name="line.106"></a>
-<span class="sourceLineNo">107</span>    }<a name="line.107"></a>
-<span class="sourceLineNo">108</span>  }<a name="line.108"></a>
-<span class="sourceLineNo">109</span><a name="line.109"></a>
-<span class="sourceLineNo">110</span>  class Names {<a name="line.110"></a>
-<span class="sourceLineNo">111</span>    String ns;<a name="line.111"></a>
-<span class="sourceLineNo">112</span>    byte[] nsb;<a name="line.112"></a>
-<span class="sourceLineNo">113</span>    String tn;<a name="line.113"></a>
-<span class="sourceLineNo">114</span>    byte[] tnb;<a name="line.114"></a>
-<span class="sourceLineNo">115</span>    String nn;<a name="line.115"></a>
-<span class="sourceLineNo">116</span>    byte[] nnb;<a name="line.116"></a>
-<span class="sourceLineNo">117</span><a name="line.117"></a>
-<span class="sourceLineNo">118</span>    Names(String ns, String tn) {<a name="line.118"></a>
-<span class="sourceLineNo">119</span>      this.ns = ns;<a name="line.119"></a>
-<span class="sourceLineNo">120</span>      nsb = ns.getBytes();<a name="line.120"></a>
-<span class="sourceLineNo">121</span>      this.tn = tn;<a name="line.121"></a>
-<span class="sourceLineNo">122</span>      tnb = tn.getBytes();<a name="line.122"></a>
-<span class="sourceLineNo">123</span>      nn = this.ns + ":" + this.tn;<a name="line.123"></a>
-<span class="sourceLineNo">124</span>      nnb = nn.getBytes();<a name="line.124"></a>
-<span class="sourceLineNo">125</span>    }<a name="line.125"></a>
-<span class="sourceLineNo">126</span><a name="line.126"></a>
-<span class="sourceLineNo">127</span>    @Override<a name="line.127"></a>
-<span class="sourceLineNo">128</span>    public boolean equals(Object o) {<a name="line.128"></a>
-<span class="sourceLineNo">129</span>      if (this == o) return true;<a name="line.129"></a>
-<span class="sourceLineNo">130</span>      if (o == null || getClass() != o.getClass()) return false;<a name="line.130"></a>
-<span class="sourceLineNo">131</span><a name="line.131"></a>
-<span class="sourceLineNo">132</span>      Names names = (Names) o;<a name="line.132"></a>
-<span class="sourceLineNo">133</span><a name="line.133"></a>
-<span class="sourceLineNo">134</span>      if (!ns.equals(names.ns)) return false;<a name="line.134"></a>
-<span class="sourceLineNo">135</span>      if (!tn.equals(names.tn)) return false;<a name="line.135"></a>
-<span class="sourceLineNo">136</span><a name="line.136"></a>
-<span class="sourceLineNo">137</span>      return true;<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    }<a name="line.138"></a>
-<span class="sourceLineNo">139</span><a name="line.139"></a>
-<span class="sourceLineNo">140</span>    @Override<a name="line.140"></a>
-<span class="sourceLineNo">141</span>    public int hashCode() {<a name="line.141"></a>
-<span class="sourceLineNo">142</span>      int result = ns.hashCode();<a name="line.142"></a>
-<span class="sourceLineNo">143</span>      result = 31 * result + tn.hashCode();<a name="line.143"></a>
-<span class="sourceLineNo">144</span>      return result;<a name="line.144"></a>
-<span class="sourceLineNo">145</span>    }<a name="line.145"></a>
-<span class="sourceLineNo">146</span>  }<a name="line.146"></a>
-<span class="sourceLineNo">147</span><a name="line.147"></a>
-<span class="sourceLineNo">148</span>  Names[] names = new Names[] {<a name="line.148"></a>
-<span class="sourceLineNo">149</span>      new Names("n1", "n1"),<a name="line.149"></a>
-<span class="sourceLineNo">150</span>      new Names("n2", "n2"),<a name="line.150"></a>
-<span class="sourceLineNo">151</span>      new Names("table1", "table1"),<a name="line.151"></a>
-<span class="sourceLineNo">152</span>      new Names("table2", "table2"),<a name="line.152"></a>
-<span class="sourceLineNo">153</span>      new Names("table2", "table1"),<a name="line.153"></a>
-<span class="sourceLineNo">154</span>      new Names("table1", "table2"),<a name="line.154"></a>
-<span class="sourceLineNo">155</span>      new Names("n1", "table1"),<a name="line.155"></a>
-<span class="sourceLineNo">156</span>      new Names("n1", "table1"),<a name="line.156"></a>
-<span class="sourceLineNo">157</span>      new Names("n2", "table2"),<a name="line.157"></a>
-<span class="sourceLineNo">158</span>      new Names("n2", "table2")<a name="line.158"></a>
-<span class="sourceLineNo">159</span>  };<a name="line.159"></a>
-<span class="sourceLineNo">160</span><a name="line.160"></a>
-<span class="sourceLineNo">161</span>  @Test<a name="line.161"></a>
-<span class="sourceLineNo">162</span>  public void testValueOf() {<a name="line.162"></a>
-<span class="sourceLineNo">163</span><a name="line.163"></a>
-<span class="sourceLineNo">164</span>    Map&lt;String, TableName&gt; inCache = new HashMap&lt;&gt;();<a name="line.164"></a>
-<span class="sourceLineNo">165</span>    // fill cache<a name="line.165"></a>
-<span class="sourceLineNo">166</span>    for (Names name : names) {<a name="line.166"></a>
-<span class="sourceLineNo">167</span>      inCache.put(name.nn, TableName.valueOf(name.ns, name.tn));<a name="line.167"></a>
-<span class="sourceLineNo">168</span>    }<a name="line.168"></a>
-<span class="sourceLineNo">169</span>    for (Names name : names) {<a name="line.169"></a>
-<span class="sourceLineNo">170</span>      assertSame(inCache.get(name.nn), validateNames(TableName.valueOf(name.ns, name.tn), name));<a name="line.170"></a>
-<span class="sourceLineNo">171</span>      assertSame(inCache.get(name.nn), validateNames(TableName.valueOf(name.nsb, name.tnb), name));<a name="line.171"></a>
-<span class="sourceLineNo">172</span>      assertSame(inCache.get(name.nn), validateNames(TableName.valueOf(name.nn), name));<a name="line.172"></a>
-<span class="sourceLineNo">173</span>      assertSame(inCache.get(name.nn), validateNames(TableName.valueOf(name.nnb), name));<a name="line.173"></a>
-<span class="sourceLineNo">174</span>      assertSame(inCache.get(name.nn), validateNames(TableName.valueOf(<a name="line.174"></a>
-<span class="sourceLineNo">175</span>          ByteBuffer.wrap(name.nsb), ByteBuffer.wrap(name.tnb)), name));<a name="line.175"></a>
-<span class="sourceLineNo">176</span>    }<a name="line.176"></a>
-<span class="sourceLineNo">177</span><a name="line.177"></a>
-<span class="sourceLineNo">178</span>  }<a name="line.178"></a>
-<span class="sourceLineNo">179</span><a name="line.179"></a>
-<span class="sourceLineNo">180</span>  private TableName validateNames(TableName expected, Names names) {<a name="line.180"></a>
-<span class="sourceLineNo">181</span>    assertEquals(expected.getNameAsString(), names.nn);<a name="line.181"></a>
-<span class="sourceLineNo">182</span>    assertArrayEquals(expected.getName(), names.nnb);<a name="line.182"></a>
-<span class="sourceLineNo">183</span>    assertEquals(expected.getQualifierAsString(), names.tn);<a name="line.183"></a>
-<span class="sourceLineNo">184</span>    assertArrayEquals(expected.getQualifier(), names.tnb);<a name="line.184"></a>
-<span class="sourceLineNo">185</span>    assertEquals(expected.getNamespaceAsString(), names.ns);<a name="line.185"></a>
-<span class="sourceLineNo">186</span>    assertArrayEquals(expected.getNamespace(), names.nsb);<a name="line.186"></a>
-<span class="sourceLineNo">187</span>    return expected;<a name="line.187"></a>
-<span class="sourceLineNo">188</span>  }<a name="line.188"></a>
-<span class="sourceLineNo">189</span><a name="line.189"></a>
-<span class="sourceLineNo">190</span>}<a name="line.190"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/f9e8b54d/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestTableName.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestTableName.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestTableName.html
deleted file mode 100644
index 1bc39b4..0000000
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/util/TestTableName.html
+++ /dev/null
@@ -1,262 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html lang="en">
-<head>
-<title>Source code</title>
-<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
-</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>/**<a name="line.1"></a>
-<span class="sourceLineNo">002</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.2"></a>
-<span class="sourceLineNo">003</span> * or more contributor license agreements.  See the NOTICE file<a name="line.3"></a>
-<span class="sourceLineNo">004</span> * distributed with this work for additional information<a name="line.4"></a>
-<span class="sourceLineNo">005</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.5"></a>
-<span class="sourceLineNo">006</span> * to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
-<span class="sourceLineNo">007</span> * "License"); you may not use this file except in compliance<a name="line.7"></a>
-<span class="sourceLineNo">008</span> * with the License.  You may obtain a copy of the License at<a name="line.8"></a>
-<span class="sourceLineNo">009</span> *<a name="line.9"></a>
-<span class="sourceLineNo">010</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
-<span class="sourceLineNo">011</span> *<a name="line.11"></a>
-<span class="sourceLineNo">012</span> * Unless required by applicable law or agreed to in writing, software<a name="line.12"></a>
-<span class="sourceLineNo">013</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.13"></a>
-<span class="sourceLineNo">014</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.14"></a>
-<span class="sourceLineNo">015</span> * See the License for the specific language governing permissions and<a name="line.15"></a>
-<span class="sourceLineNo">016</span> * limitations under the License.<a name="line.16"></a>
-<span class="sourceLineNo">017</span> */<a name="line.17"></a>
-<span class="sourceLineNo">018</span>package org.apache.hadoop.hbase.util;<a name="line.18"></a>
-<span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>import java.nio.ByteBuffer;<a name="line.20"></a>
-<span class="sourceLineNo">021</span>import java.util.HashMap;<a name="line.21"></a>
-<span class="sourceLineNo">022</span>import java.util.Map;<a name="line.22"></a>
-<span class="sourceLineNo">023</span><a name="line.23"></a>
-<span class="sourceLineNo">024</span>import static org.junit.Assert.assertArrayEquals;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import static org.junit.Assert.assertEquals;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import static org.junit.Assert.assertSame;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import static org.junit.Assert.fail;<a name="line.27"></a>
-<span class="sourceLineNo">028</span><a name="line.28"></a>
-<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.testclassification.MiscTests;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.testclassification.MediumTests;<a name="line.30"></a>
-<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.TableName;<a name="line.31"></a>
-<span class="sourceLineNo">032</span>import org.junit.Test;<a name="line.32"></a>
-<span class="sourceLineNo">033</span>import org.junit.experimental.categories.Category;<a name="line.33"></a>
-<span class="sourceLineNo">034</span>import org.junit.rules.TestWatcher;<a name="line.34"></a>
-<span class="sourceLineNo">035</span>import org.junit.runner.Description;<a name="line.35"></a>
-<span class="sourceLineNo">036</span><a name="line.36"></a>
-<span class="sourceLineNo">037</span>/**<a name="line.37"></a>
-<span class="sourceLineNo">038</span> * Returns a {@code byte[]} containing the name of the currently running test method.<a name="line.38"></a>
-<span class="sourceLineNo">039</span> */<a name="line.39"></a>
-<span class="sourceLineNo">040</span>@Category({MiscTests.class, MediumTests.class})<a name="line.40"></a>
-<span class="sourceLineNo">041</span>public class TestTableName extends TestWatcher {<a name="line.41"></a>
-<span class="sourceLineNo">042</span>  private TableName tableName;<a name="line.42"></a>
-<span class="sourceLineNo">043</span><a name="line.43"></a>
-<span class="sourceLineNo">044</span>  /**<a name="line.44"></a>
-<span class="sourceLineNo">045</span>   * Invoked when a test is about to start<a name="line.45"></a>
-<span class="sourceLineNo">046</span>   */<a name="line.46"></a>
-<span class="sourceLineNo">047</span>  @Override<a name="line.47"></a>
-<span class="sourceLineNo">048</span>  protected void starting(Description description) {<a name="line.48"></a>
-<span class="sourceLineNo">049</span>    tableName = TableName.valueOf(description.getMethodName());<a name="line.49"></a>
-<span class="sourceLineNo">050</span>  }<a name="line.50"></a>
-<span class="sourceLineNo">051</span><a name="line.51"></a>
-<span class="sourceLineNo">052</span>  public TableName getTableName() {<a name="line.52"></a>
-<span class="sourceLineNo">053</span>    return tableName;<a name="line.53"></a>
-<span class="sourceLineNo">054</span>  }<a name="line.54"></a>
-<span class="sourceLineNo">055</span><a name="line.55"></a>
-<span class="sourceLineNo">056</span>  String emptyNames[] ={"", " "};<a name="line.56"></a>
-<span class="sourceLineNo">057</span>  String invalidNamespace[] = {":a", "%:a"};<a name="line.57"></a>
-<span class="sourceLineNo">058</span>  String legalTableNames[] = { "foo", "with-dash_under.dot", "_under_start_ok",<a name="line.58"></a>
-<span class="sourceLineNo">059</span>      "with-dash.with_underscore", "02-01-2012.my_table_01-02", "xyz._mytable_", "9_9_0.table_02"<a name="line.59"></a>
-<span class="sourceLineNo">060</span>      , "dot1.dot2.table", "new.-mytable", "with-dash.with.dot", "legal..t2", "legal..legal.t2",<a name="line.60"></a>
-<span class="sourceLineNo">061</span>      "trailingdots..", "trailing.dots...", "ns:mytable", "ns:_mytable_", "ns:my_table_01-02"};<a name="line.61"></a>
-<span class="sourceLineNo">062</span>  String illegalTableNames[] = { ".dot_start_illegal", "-dash_start_illegal", "spaces not ok",<a name="line.62"></a>
-<span class="sourceLineNo">063</span>      "-dash-.start_illegal", "new.table with space", "01 .table", "ns:-illegaldash",<a name="line.63"></a>
-<span class="sourceLineNo">064</span>      "new:.illegaldot", "new:illegalcolon1:", "new:illegalcolon1:2"};<a name="line.64"></a>
-<span class="sourceLineNo">065</span><a name="line.65"></a>
-<span class="sourceLineNo">066</span><a name="line.66"></a>
-<span class="sourceLineNo">067</span>  @Test(expected = IllegalArgumentException.class)<a name="line.67"></a>
-<span class="sourceLineNo">068</span>  public void testInvalidNamespace() {<a name="line.68"></a>
-<span class="sourceLineNo">069</span>    for (String tn : invalidNamespace) {<a name="line.69"></a>
-<span class="sourceLineNo">070</span>      TableName.isLegalFullyQualifiedTableName(Bytes.toBytes(tn));<a name="line.70"></a>
-<span class="sourceLineNo">071</span>      fail("invalid namespace " + tn + " should have failed with IllegalArgumentException for namespace");<a name="line.71"></a>
-<span class="sourceLineNo">072</span>    }<a name="line.72"></a>
-<span class="sourceLineNo">073</span>  }<a name="line.73"></a>
-<span class="sourceLineNo">074</span><a name="line.74"></a>
-<span class="sourceLineNo">075</span>  @Test(expected = IllegalArgumentException.class)<a name="line.75"></a>
-<span class="sourceLineNo">076</span>  public void testEmptyNamespaceName() {<a name="line.76"></a>
-<span class="sourceLineNo">077</span>    for (String nn : emptyNames) {<a name="line.77"></a>
-<span class="sourceLineNo">078</span>      TableName.isLegalNamespaceName(Bytes.toBytes(nn));<a name="line.78"></a>
-<span class="sourceLineNo">079</span>      fail("invalid Namespace name " + nn + " should have failed with IllegalArgumentException");<a name="line.79"></a>
-<span class="sourceLineNo">080</span>    }<a name="line.80"></a>
-<span class="sourceLineNo">081</span>  }<a name="line.81"></a>
-<span class="sourceLineNo">082</span><a name="line.82"></a>
-<span class="sourceLineNo">083</span>  @Test(expected = IllegalArgumentException.class)<a name="line.83"></a>
-<span class="sourceLineNo">084</span>  public void testEmptyTableName() {<a name="line.84"></a>
-<span class="sourceLineNo">085</span>    for (String tn : emptyNames) {<a name="line.85"></a>
-<span class="sourceLineNo">086</span>      TableName.isLegalFullyQualifiedTableName(Bytes.toBytes(tn));<a name="line.86"></a>
-<span class="sourceLineNo">087</span>      fail("invalid tablename " + tn + " should have failed with IllegalArgumentException");<a name="line.87"></a>
-<span class="sourceLineNo">088</span>    }<a name="line.88"></a>
-<span class="sourceLineNo">089</span>  }<a name="line.89"></a>
-<span class="sourceLineNo">090</span><a name="line.90"></a>
-<span class="sourceLineNo">091</span>  @Test<a name="line.91"></a>
-<span class="sourceLineNo">092</span>  public void testLegalHTableNames() {<a name="line.92"></a>
-<span class="sourceLineNo">093</span>    for (String tn : legalTableNames) {<a name="line.93"></a>
-<span class="sourceLineNo">094</span>      TableName.isLegalFullyQualifiedTableName(Bytes.toBytes(tn));<a name="line.94"></a>
-<span class="sourceLineNo">095</span>    }<a name="line.95"></a>
-<span class="sourceLineNo">096</span>  }<a name="line.96"></a>
-<span class="sourceLineNo">097</span><a name="line.97"></a>
-<span class="sourceLineNo">098</span>  @Test<a name="line.98"></a>
-<span class="sourceLineNo">099</span>  public void testIllegalHTableNames() {<a name="line.99"></a>
-<span class="sourceLineNo">100</span>    for (String tn : illegalTableNames) {<a name="line.100"></a>
-<span class="sourceLineNo">101</span>      try {<a name="line.101"></a>
-<span class="sourceLineNo">102</span>        TableName.isLegalFullyQualifiedTableName(Bytes.toBytes(tn));<a name="line.102"></a>
-<span class="sourceLineNo">103</span>        fail("invalid tablename " + tn + " should have failed");<a name="line.103"></a>
-<span class="sourceLineNo">104</span>      } catch (Exception e) {<a name="line.104"></a>
-<span class="sourceLineNo">105</span>        // expected<a name="line.105"></a>
-<span class="sourceLineNo">106</span>      }<a name="line.106"></a>
-<span class="sourceLineNo">107</span>    }<a name="line.107"></a>
-<span class="sourceLineNo">108</span>  }<a name="line.108"></a>
-<span class="sourceLineNo">109</span><a name="line.109"></a>
-<span class="sourceLineNo">110</span>  class Names {<a name="line.110"></a>
-<span class="sourceLineNo">111</span>    String ns;<a name="line.111"></a>
-<span class="sourceLineNo">112</span>    byte[] nsb;<a name="line.112"></a>
-<span class="sourceLineNo">113</span>    String tn;<a name="line.113"></a>
-<span class="sourceLineNo">114</span>    byte[] tnb;<a name="line.114"></a>
-<span class="sourceLineNo">115</span>    String nn;<a name="line.115"></a>
-<span class="sourceLineNo">116</span>    byte[] nnb;<a name="line.116"></a>
-<span class="sourceLineNo">117</span><a name="line.117"></a>
-<span class="sourceLineNo">118</span>    Names(String ns, String tn) {<a name="line.118"></a>
-<span class="sourceLineNo">119</span>      this.ns = ns;<a name="line.119"></a>
-<span class="sourceLineNo">120</span>      nsb = ns.getBytes();<a name="line.120"></a>
-<span class="sourceLineNo">121</span>      this.tn = tn;<a name="line.121"></a>
-<span class="sourceLineNo">122</span>      tnb = tn.getBytes();<a name="line.122"></a>
-<span class="sourceLineNo">123</span>      nn = this.ns + ":" + this.tn;<a name="line.123"></a>
-<span class="sourceLineNo">124</span>      nnb = nn.getBytes();<a name="line.124"></a>
-<span class="sourceLineNo">125</span>    }<a name="line.125"></a>
-<span class="sourceLineNo">126</span><a name="line.126"></a>
-<span class="sourceLineNo">127</span>    @Override<a name="line.127"></a>
-<span class="sourceLineNo">128</span>    public boolean equals(Object o) {<a name="line.128"></a>
-<span class="sourceLineNo">129</span>      if (this == o) return true;<a name="line.129"></a>
-<span class="sourceLineNo">130</span>      if (o == null || getClass() != o.getClass()) return false;<a name="line.130"></a>
-<span class="sourceLineNo">131</span><a name="line.131"></a>
-<span class="sourceLineNo">132</span>      Names names = (Names) o;<a name="line.132"></a>
-<span class="sourceLineNo">133</span><a name="line.133"></a>
-<span class="sourceLineNo">134</span>      if (!ns.equals(names.ns)) return false;<a name="line.134"></a>
-<span class="sourceLineNo">135</span>      if (!tn.equals(names.tn)) return false;<a name="line.135"></a>
-<span class="sourceLineNo">136</span><a name="line.136"></a>
-<span class="sourceLineNo">137</span>      return true;<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    }<a name="line.138"></a>
-<span class="sourceLineNo">139</span><a name="line.139"></a>
-<span class="sourceLineNo">140</span>    @Override<a name="line.140"></a>
-<span class="sourceLineNo">141</span>    public int hashCode() {<a name="line.141"></a>
-<span class="sourceLineNo">142</span>      int result = ns.hashCode();<a name="line.142"></a>
-<span class="sourceLineNo">143</span>      result = 31 * result + tn.hashCode();<a name="line.143"></a>
-<span class="sourceLineNo">144</span>      return result;<a name="line.144"></a>
-<span class="sourceLineNo">145</span>    }<a name="line.145"></a>
-<span class="sourceLineNo">146</span>  }<a name="line.146"></a>
-<span class="sourceLineNo">147</span><a name="line.147"></a>
-<span class="sourceLineNo">148</span>  Names[] names = new Names[] {<a name="line.148"></a>
-<span class="sourceLineNo">149</span>      new Names("n1", "n1"),<a name="line.149"></a>
-<span class="sourceLineNo">150</span>      new Names("n2", "n2"),<a name="line.150"></a>
-<span class="sourceLineNo">151</span>      new Names("table1", "table1"),<a name="line.151"></a>
-<span class="sourceLineNo">152</span>      new Names("table2", "table2"),<a name="line.152"></a>
-<span class="sourceLineNo">153</span>      new Names("table2", "table1"),<a name="line.153"></a>
-<span class="sourceLineNo">154</span>      new Names("table1", "table2"),<a name="line.154"></a>
-<span class="sourceLineNo">155</span>      new Names("n1", "table1"),<a name="line.155"></a>
-<span class="sourceLineNo">156</span>      new Names("n1", "table1"),<a name="line.156"></a>
-<span class="sourceLineNo">157</span>      new Names("n2", "table2"),<a name="line.157"></a>
-<span class="sourceLineNo">158</span>      new Names("n2", "table2")<a name="line.158"></a>
-<span class="sourceLineNo">159</span>  };<a name="line.159"></a>
-<span class="sourceLineNo">160</span><a name="line.160"></a>
-<span class="sourceLineNo">161</span>  @Test<a name="line.161"></a>
-<span class="sourceLineNo">162</span>  public void testValueOf() {<a name="line.162"></a>
-<span class="sourceLineNo">163</span><a name="line.163"></a>
-<span class="sourceLineNo">164</span>    Map&lt;String, TableName&gt; inCache = new HashMap&lt;&gt;();<a name="line.164"></a>
-<span class="sourceLineNo">165</span>    // fill cache<a name="line.165"></a>
-<span class="sourceLineNo">166</span>    for (Names name : names) {<a name="line.166"></a>
-<span class="sourceLineNo">167</span>      inCache.put(name.nn, TableName.valueOf(name.ns, name.tn));<a name="line.167"></a>
-<span class="sourceLineNo">168</span>    }<a name="line.168"></a>
-<span class="sourceLineNo">169</span>    for (Names name : names) {<a name="line.169"></a>
-<span class="sourceLineNo">170</span>      assertSame(inCache.get(name.nn), validateNames(TableName.valueOf(name.ns, name.tn), name));<a name="line.170"></a>
-<span class="sourceLineNo">171</span>      assertSame(inCache.get(name.nn), validateNames(TableName.valueOf(name.nsb, name.tnb), name));<a name="line.171"></a>
-<span class="sourceLineNo">172</span>      assertSame(inCache.get(name.nn), validateNames(TableName.valueOf(name.nn), name));<a name="line.172"></a>
-<span class="sourceLineNo">173</span>      assertSame(inCache.get(name.nn), validateNames(TableName.valueOf(name.nnb), name));<a name="line.173"></a>
-<span class="sourceLineNo">174</span>      assertSame(inCache.get(name.nn), validateNames(TableName.valueOf(<a name="line.174"></a>
-<span class="sourceLineNo">175</span>          ByteBuffer.wrap(name.nsb), ByteBuffer.wrap(name.tnb)), name));<a name="line.175"></a>
-<span class="sourceLineNo">176</span>    }<a name="line.176"></a>
-<span class="sourceLineNo">177</span><a name="line.177"></a>
-<span class="sourceLineNo">178</span>  }<a name="line.178"></a>
-<span class="sourceLineNo">179</span><a name="line.179"></a>
-<span class="sourceLineNo">180</span>  private TableName validateNames(TableName expected, Names names) {<a name="line.180"></a>
-<span class="sourceLineNo">181</span>    assertEquals(expected.getNameAsString(), names.nn);<a name="line.181"></a>
-<span class="sourceLineNo">182</span>    assertArrayEquals(expected.getName(), names.nnb);<a name="line.182"></a>
-<span class="sourceLineNo">183</span>    assertEquals(expected.getQualifierAsString(), names.tn);<a name="line.183"></a>
-<span class="sourceLineNo">184</span>    assertArrayEquals(expected.getQualifier(), names.tnb);<a name="line.184"></a>
-<span class="sourceLineNo">185</span>    assertEquals(expected.getNamespaceAsString(), names.ns);<a name="line.185"></a>
-<span class="sourceLineNo">186</span>    assertArrayEquals(expected.getNamespace(), names.nsb);<a name="line.186"></a>
-<span class="sourceLineNo">187</span>    return expected;<a name="line.187"></a>
-<span class="sourceLineNo">188</span>  }<a name="line.188"></a>
-<span class="sourceLineNo">189</span><a name="line.189"></a>
-<span class="sourceLineNo">190</span>}<a name="line.190"></a>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</pre>
-</div>
-</body>
-</html>


Mime
View raw message