hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [02/51] [partial] hbase-site git commit: Published site at 997747076d8ec0b4346d7cb99c4b0667a7c14905.
Date Wed, 30 May 2018 14:49:00 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/4df09ed9/testdevapidocs/src-html/org/apache/hadoop/hbase/TestPartialResultsFromClientSide.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/TestPartialResultsFromClientSide.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/TestPartialResultsFromClientSide.html
index e383c6b..6b66d6d 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/TestPartialResultsFromClientSide.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/TestPartialResultsFromClientSide.html
@@ -611,12 +611,12 @@
 <span class="sourceLineNo">603</span><a name="line.603"></a>
 <span class="sourceLineNo">604</span>  /**<a name="line.604"></a>
 <span class="sourceLineNo">605</span>   * Make puts to put the input value into each combination of row, family, and qualifier<a name="line.605"></a>
-<span class="sourceLineNo">606</span>   * @param rows<a name="line.606"></a>
-<span class="sourceLineNo">607</span>   * @param families<a name="line.607"></a>
-<span class="sourceLineNo">608</span>   * @param qualifiers<a name="line.608"></a>
-<span class="sourceLineNo">609</span>   * @param value<a name="line.609"></a>
-<span class="sourceLineNo">610</span>   * @return<a name="line.610"></a>
-<span class="sourceLineNo">611</span>   * @throws IOException<a name="line.611"></a>
+<span class="sourceLineNo">606</span>   * @param rows the rows to use<a name="line.606"></a>
+<span class="sourceLineNo">607</span>   * @param families the families to use<a name="line.607"></a>
+<span class="sourceLineNo">608</span>   * @param qualifiers the qualifiers to use<a name="line.608"></a>
+<span class="sourceLineNo">609</span>   * @param value the values to use<a name="line.609"></a>
+<span class="sourceLineNo">610</span>   * @return the dot product of the given rows, families, qualifiers, and values<a name="line.610"></a>
+<span class="sourceLineNo">611</span>   * @throws IOException if there is a problem creating one of the Put objects<a name="line.611"></a>
 <span class="sourceLineNo">612</span>   */<a name="line.612"></a>
 <span class="sourceLineNo">613</span>  static ArrayList&lt;Put&gt; createPuts(byte[][] rows, byte[][] families, byte[][] qualifiers,<a name="line.613"></a>
 <span class="sourceLineNo">614</span>      byte[] value) throws IOException {<a name="line.614"></a>
@@ -640,11 +640,11 @@
 <span class="sourceLineNo">632</span>  /**<a name="line.632"></a>
 <span class="sourceLineNo">633</span>   * Make key values to represent each possible combination of family and qualifier in the specified<a name="line.633"></a>
 <span class="sourceLineNo">634</span>   * row.<a name="line.634"></a>
-<span class="sourceLineNo">635</span>   * @param row<a name="line.635"></a>
-<span class="sourceLineNo">636</span>   * @param families<a name="line.636"></a>
-<span class="sourceLineNo">637</span>   * @param qualifiers<a name="line.637"></a>
-<span class="sourceLineNo">638</span>   * @param value<a name="line.638"></a>
-<span class="sourceLineNo">639</span>   * @return<a name="line.639"></a>
+<span class="sourceLineNo">635</span>   * @param row the row to use<a name="line.635"></a>
+<span class="sourceLineNo">636</span>   * @param families the families to use<a name="line.636"></a>
+<span class="sourceLineNo">637</span>   * @param qualifiers the qualifiers to use<a name="line.637"></a>
+<span class="sourceLineNo">638</span>   * @param value the values to use<a name="line.638"></a>
+<span class="sourceLineNo">639</span>   * @return the dot product of the given families, qualifiers, and values for a given row<a name="line.639"></a>
 <span class="sourceLineNo">640</span>   */<a name="line.640"></a>
 <span class="sourceLineNo">641</span>  static ArrayList&lt;Cell&gt; createKeyValuesForRow(byte[] row, byte[][] families, byte[][] qualifiers,<a name="line.641"></a>
 <span class="sourceLineNo">642</span>      byte[] value) {<a name="line.642"></a>
@@ -780,9 +780,9 @@
 <span class="sourceLineNo">772</span>  /**<a name="line.772"></a>
 <span class="sourceLineNo">773</span>   * Exhausts the scanner by calling next repetitively. Once completely exhausted, close scanner and<a name="line.773"></a>
 <span class="sourceLineNo">774</span>   * return total cell count<a name="line.774"></a>
-<span class="sourceLineNo">775</span>   * @param scanner<a name="line.775"></a>
-<span class="sourceLineNo">776</span>   * @return<a name="line.776"></a>
-<span class="sourceLineNo">777</span>   * @throws Exception<a name="line.777"></a>
+<span class="sourceLineNo">775</span>   * @param scanner the scanner to exhaust<a name="line.775"></a>
+<span class="sourceLineNo">776</span>   * @return the number of cells counted<a name="line.776"></a>
+<span class="sourceLineNo">777</span>   * @throws Exception if there is a problem retrieving cells from the scanner<a name="line.777"></a>
 <span class="sourceLineNo">778</span>   */<a name="line.778"></a>
 <span class="sourceLineNo">779</span>  private int countCellsFromScanner(ResultScanner scanner) throws Exception {<a name="line.779"></a>
 <span class="sourceLineNo">780</span>    Result result = null;<a name="line.780"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/4df09ed9/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.ExplainingPredicate.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.ExplainingPredicate.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.ExplainingPredicate.html
index 15f1e52..65b58eb 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.ExplainingPredicate.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.ExplainingPredicate.html
@@ -91,7 +91,7 @@
 <span class="sourceLineNo">083</span>  /**<a name="line.83"></a>
 <span class="sourceLineNo">084</span>   * A predicate 'closure' used by the {@link Waiter#waitFor(Configuration, long, Predicate)} and<a name="line.84"></a>
 <span class="sourceLineNo">085</span>   * {@link Waiter#waitFor(Configuration, long, Predicate)} and<a name="line.85"></a>
-<span class="sourceLineNo">086</span>   * {@link Waiter#waitFor(Configuration, long, long, boolean, Predicate) methods.<a name="line.86"></a>
+<span class="sourceLineNo">086</span>   * {@link Waiter#waitFor(Configuration, long, long, boolean, Predicate)} methods.<a name="line.86"></a>
 <span class="sourceLineNo">087</span>   */<a name="line.87"></a>
 <span class="sourceLineNo">088</span>  @InterfaceAudience.Private<a name="line.88"></a>
 <span class="sourceLineNo">089</span>  public interface Predicate&lt;E extends Exception&gt; {<a name="line.89"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/4df09ed9/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.Predicate.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.Predicate.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.Predicate.html
index 15f1e52..65b58eb 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.Predicate.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.Predicate.html
@@ -91,7 +91,7 @@
 <span class="sourceLineNo">083</span>  /**<a name="line.83"></a>
 <span class="sourceLineNo">084</span>   * A predicate 'closure' used by the {@link Waiter#waitFor(Configuration, long, Predicate)} and<a name="line.84"></a>
 <span class="sourceLineNo">085</span>   * {@link Waiter#waitFor(Configuration, long, Predicate)} and<a name="line.85"></a>
-<span class="sourceLineNo">086</span>   * {@link Waiter#waitFor(Configuration, long, long, boolean, Predicate) methods.<a name="line.86"></a>
+<span class="sourceLineNo">086</span>   * {@link Waiter#waitFor(Configuration, long, long, boolean, Predicate)} methods.<a name="line.86"></a>
 <span class="sourceLineNo">087</span>   */<a name="line.87"></a>
 <span class="sourceLineNo">088</span>  @InterfaceAudience.Private<a name="line.88"></a>
 <span class="sourceLineNo">089</span>  public interface Predicate&lt;E extends Exception&gt; {<a name="line.89"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/4df09ed9/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.html
index 15f1e52..65b58eb 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/Waiter.html
@@ -91,7 +91,7 @@
 <span class="sourceLineNo">083</span>  /**<a name="line.83"></a>
 <span class="sourceLineNo">084</span>   * A predicate 'closure' used by the {@link Waiter#waitFor(Configuration, long, Predicate)} and<a name="line.84"></a>
 <span class="sourceLineNo">085</span>   * {@link Waiter#waitFor(Configuration, long, Predicate)} and<a name="line.85"></a>
-<span class="sourceLineNo">086</span>   * {@link Waiter#waitFor(Configuration, long, long, boolean, Predicate) methods.<a name="line.86"></a>
+<span class="sourceLineNo">086</span>   * {@link Waiter#waitFor(Configuration, long, long, boolean, Predicate)} methods.<a name="line.86"></a>
 <span class="sourceLineNo">087</span>   */<a name="line.87"></a>
 <span class="sourceLineNo">088</span>  @InterfaceAudience.Private<a name="line.88"></a>
 <span class="sourceLineNo">089</span>  public interface Predicate&lt;E extends Exception&gt; {<a name="line.89"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/4df09ed9/testdevapidocs/src-html/org/apache/hadoop/hbase/backup/TestHFileArchiving.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/backup/TestHFileArchiving.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/backup/TestHFileArchiving.html
index dcd88c8..b4dfd9e 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/backup/TestHFileArchiving.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/backup/TestHFileArchiving.html
@@ -433,9 +433,9 @@
 <span class="sourceLineNo">425</span><a name="line.425"></a>
 <span class="sourceLineNo">426</span>  /**<a name="line.426"></a>
 <span class="sourceLineNo">427</span>   * Get the names of all the files below the given directory<a name="line.427"></a>
-<span class="sourceLineNo">428</span>   * @param fs<a name="line.428"></a>
-<span class="sourceLineNo">429</span>   * @param archiveDir<a name="line.429"></a>
-<span class="sourceLineNo">430</span>   * @return<a name="line.430"></a>
+<span class="sourceLineNo">428</span>   * @param fs the file system to inspect<a name="line.428"></a>
+<span class="sourceLineNo">429</span>   * @param archiveDir the directory in which to look<a name="line.429"></a>
+<span class="sourceLineNo">430</span>   * @return a list of all files in the directory and sub-directories<a name="line.430"></a>
 <span class="sourceLineNo">431</span>   * @throws IOException<a name="line.431"></a>
 <span class="sourceLineNo">432</span>   */<a name="line.432"></a>
 <span class="sourceLineNo">433</span>  private List&lt;String&gt; getAllFileNames(final FileSystem fs, Path archiveDir) throws IOException {<a name="line.433"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/4df09ed9/testdevapidocs/src-html/org/apache/hadoop/hbase/client/HConnectionTestingUtility.SleepAtFirstRpcCall.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/HConnectionTestingUtility.SleepAtFirstRpcCall.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/HConnectionTestingUtility.SleepAtFirstRpcCall.html
index c9b4171..8ddbc7a 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/HConnectionTestingUtility.SleepAtFirstRpcCall.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/HConnectionTestingUtility.SleepAtFirstRpcCall.html
@@ -58,7 +58,7 @@
 <span class="sourceLineNo">050</span>  /**<a name="line.50"></a>
 <span class="sourceLineNo">051</span>   * Get a Mocked {@link ClusterConnection} that goes with the passed &lt;code&gt;conf&lt;/code&gt;<a name="line.51"></a>
 <span class="sourceLineNo">052</span>   * configuration instance.  Minimally the mock will return<a name="line.52"></a>
-<span class="sourceLineNo">053</span>   * &lt;code&gt;conf&lt;/conf&gt; when {@link ClusterConnection#getConfiguration()} is invoked.<a name="line.53"></a>
+<span class="sourceLineNo">053</span>   * &amp;lt;code&gt;conf&amp;lt;/conf&gt; when {@link ClusterConnection#getConfiguration()} is invoked.<a name="line.53"></a>
 <span class="sourceLineNo">054</span>   * Be sure to shutdown the connection when done by calling<a name="line.54"></a>
 <span class="sourceLineNo">055</span>   * {@link Connection#close()} else it will stick around; this is probably not what you want.<a name="line.55"></a>
 <span class="sourceLineNo">056</span>   * @param conf configuration<a name="line.56"></a>
@@ -156,7 +156,7 @@
 <span class="sourceLineNo">148</span>   * @param conf configuration<a name="line.148"></a>
 <span class="sourceLineNo">149</span>   * @return ClusterConnection object for &lt;code&gt;conf&lt;/code&gt;<a name="line.149"></a>
 <span class="sourceLineNo">150</span>   * @throws ZooKeeperConnectionException<a name="line.150"></a>
-<span class="sourceLineNo">151</span>   * @see @link<a name="line.151"></a>
+<span class="sourceLineNo">151</span>   * [Dead link]: See also<a name="line.151"></a>
 <span class="sourceLineNo">152</span>   * {http://mockito.googlecode.com/svn/branches/1.6/javadoc/org/mockito/Mockito.html#spy(T)}<a name="line.152"></a>
 <span class="sourceLineNo">153</span>   */<a name="line.153"></a>
 <span class="sourceLineNo">154</span>  public static ClusterConnection getSpiedConnection(final Configuration conf)<a name="line.154"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/4df09ed9/testdevapidocs/src-html/org/apache/hadoop/hbase/client/HConnectionTestingUtility.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/HConnectionTestingUtility.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/HConnectionTestingUtility.html
index c9b4171..8ddbc7a 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/HConnectionTestingUtility.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/HConnectionTestingUtility.html
@@ -58,7 +58,7 @@
 <span class="sourceLineNo">050</span>  /**<a name="line.50"></a>
 <span class="sourceLineNo">051</span>   * Get a Mocked {@link ClusterConnection} that goes with the passed &lt;code&gt;conf&lt;/code&gt;<a name="line.51"></a>
 <span class="sourceLineNo">052</span>   * configuration instance.  Minimally the mock will return<a name="line.52"></a>
-<span class="sourceLineNo">053</span>   * &lt;code&gt;conf&lt;/conf&gt; when {@link ClusterConnection#getConfiguration()} is invoked.<a name="line.53"></a>
+<span class="sourceLineNo">053</span>   * &amp;lt;code&gt;conf&amp;lt;/conf&gt; when {@link ClusterConnection#getConfiguration()} is invoked.<a name="line.53"></a>
 <span class="sourceLineNo">054</span>   * Be sure to shutdown the connection when done by calling<a name="line.54"></a>
 <span class="sourceLineNo">055</span>   * {@link Connection#close()} else it will stick around; this is probably not what you want.<a name="line.55"></a>
 <span class="sourceLineNo">056</span>   * @param conf configuration<a name="line.56"></a>
@@ -156,7 +156,7 @@
 <span class="sourceLineNo">148</span>   * @param conf configuration<a name="line.148"></a>
 <span class="sourceLineNo">149</span>   * @return ClusterConnection object for &lt;code&gt;conf&lt;/code&gt;<a name="line.149"></a>
 <span class="sourceLineNo">150</span>   * @throws ZooKeeperConnectionException<a name="line.150"></a>
-<span class="sourceLineNo">151</span>   * @see @link<a name="line.151"></a>
+<span class="sourceLineNo">151</span>   * [Dead link]: See also<a name="line.151"></a>
 <span class="sourceLineNo">152</span>   * {http://mockito.googlecode.com/svn/branches/1.6/javadoc/org/mockito/Mockito.html#spy(T)}<a name="line.152"></a>
 <span class="sourceLineNo">153</span>   */<a name="line.153"></a>
 <span class="sourceLineNo">154</span>  public static ClusterConnection getSpiedConnection(final Configuration conf)<a name="line.154"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/4df09ed9/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestTableDescriptorUtils.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestTableDescriptorUtils.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestTableDescriptorUtils.html
new file mode 100644
index 0000000..4f9db58
--- /dev/null
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/client/TestTableDescriptorUtils.html
@@ -0,0 +1,158 @@
+<!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> *<a name="line.2"></a>
+<span class="sourceLineNo">003</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.3"></a>
+<span class="sourceLineNo">004</span> * or more contributor license agreements.  See the NOTICE file<a name="line.4"></a>
+<span class="sourceLineNo">005</span> * distributed with this work for additional information<a name="line.5"></a>
+<span class="sourceLineNo">006</span> * regarding copyright ownership.  The ASF licenses this file<a name="line.6"></a>
+<span class="sourceLineNo">007</span> * to you under the Apache License, Version 2.0 (the<a name="line.7"></a>
+<span class="sourceLineNo">008</span> * "License"); you may not use this file except in compliance<a name="line.8"></a>
+<span class="sourceLineNo">009</span> * with the License.  You may obtain a copy of the License at<a name="line.9"></a>
+<span class="sourceLineNo">010</span> *<a name="line.10"></a>
+<span class="sourceLineNo">011</span> *     http://www.apache.org/licenses/LICENSE-2.0<a name="line.11"></a>
+<span class="sourceLineNo">012</span> *<a name="line.12"></a>
+<span class="sourceLineNo">013</span> * Unless required by applicable law or agreed to in writing, software<a name="line.13"></a>
+<span class="sourceLineNo">014</span> * distributed under the License is distributed on an "AS IS" BASIS,<a name="line.14"></a>
+<span class="sourceLineNo">015</span> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<a name="line.15"></a>
+<span class="sourceLineNo">016</span> * See the License for the specific language governing permissions and<a name="line.16"></a>
+<span class="sourceLineNo">017</span> * limitations under the License.<a name="line.17"></a>
+<span class="sourceLineNo">018</span> */<a name="line.18"></a>
+<span class="sourceLineNo">019</span>package org.apache.hadoop.hbase.client;<a name="line.19"></a>
+<span class="sourceLineNo">020</span><a name="line.20"></a>
+<span class="sourceLineNo">021</span>import static org.junit.Assert.assertEquals;<a name="line.21"></a>
+<span class="sourceLineNo">022</span><a name="line.22"></a>
+<span class="sourceLineNo">023</span>import java.util.Arrays;<a name="line.23"></a>
+<span class="sourceLineNo">024</span><a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.HBaseClassTestRule;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.TableName;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.hadoop.hbase.client.TableDescriptorUtils.TableDescriptorDelta;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.testclassification.SmallTests;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.junit.ClassRule;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import org.junit.Test;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import org.junit.experimental.categories.Category;<a name="line.32"></a>
+<span class="sourceLineNo">033</span><a name="line.33"></a>
+<span class="sourceLineNo">034</span>@Category(SmallTests.class)<a name="line.34"></a>
+<span class="sourceLineNo">035</span>public class TestTableDescriptorUtils {<a name="line.35"></a>
+<span class="sourceLineNo">036</span>  @ClassRule<a name="line.36"></a>
+<span class="sourceLineNo">037</span>  public static final HBaseClassTestRule CLASS_RULE =<a name="line.37"></a>
+<span class="sourceLineNo">038</span>      HBaseClassTestRule.forClass(TestTableDescriptorUtils.class);<a name="line.38"></a>
+<span class="sourceLineNo">039</span><a name="line.39"></a>
+<span class="sourceLineNo">040</span>  @Test<a name="line.40"></a>
+<span class="sourceLineNo">041</span>  public void testDelta() {<a name="line.41"></a>
+<span class="sourceLineNo">042</span>    ColumnFamilyDescriptor cf1 = ColumnFamilyDescriptorBuilder.of("cf1");<a name="line.42"></a>
+<span class="sourceLineNo">043</span>    ColumnFamilyDescriptor cf2 = ColumnFamilyDescriptorBuilder.of("cf2");<a name="line.43"></a>
+<span class="sourceLineNo">044</span>    ColumnFamilyDescriptor cf3 = ColumnFamilyDescriptorBuilder.of("cf3");<a name="line.44"></a>
+<span class="sourceLineNo">045</span>    ColumnFamilyDescriptor cf4 = ColumnFamilyDescriptorBuilder.of("cf4");<a name="line.45"></a>
+<span class="sourceLineNo">046</span>    TableDescriptor td = TableDescriptorBuilder<a name="line.46"></a>
+<span class="sourceLineNo">047</span>        .newBuilder(TableName.valueOf("test"))<a name="line.47"></a>
+<span class="sourceLineNo">048</span>        .setColumnFamilies(Arrays.asList(cf1, cf2, cf3, cf4))<a name="line.48"></a>
+<span class="sourceLineNo">049</span>        .build();<a name="line.49"></a>
+<span class="sourceLineNo">050</span><a name="line.50"></a>
+<span class="sourceLineNo">051</span>    TableDescriptorDelta selfCompare = TableDescriptorUtils.computeDelta(td, td);<a name="line.51"></a>
+<span class="sourceLineNo">052</span>    assertEquals(0, selfCompare.getColumnsAdded().size());<a name="line.52"></a>
+<span class="sourceLineNo">053</span>    assertEquals(0, selfCompare.getColumnsDeleted().size());<a name="line.53"></a>
+<span class="sourceLineNo">054</span>    assertEquals(0, selfCompare.getColumnsModified().size());<a name="line.54"></a>
+<span class="sourceLineNo">055</span><a name="line.55"></a>
+<span class="sourceLineNo">056</span>    ColumnFamilyDescriptor modCf2 = ColumnFamilyDescriptorBuilder<a name="line.56"></a>
+<span class="sourceLineNo">057</span>        .newBuilder(cf2).setMaxVersions(5).build();<a name="line.57"></a>
+<span class="sourceLineNo">058</span>    ColumnFamilyDescriptor modCf3 = ColumnFamilyDescriptorBuilder<a name="line.58"></a>
+<span class="sourceLineNo">059</span>        .newBuilder(cf3).setMaxVersions(5).build();<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    ColumnFamilyDescriptor cf5 = ColumnFamilyDescriptorBuilder.of("cf5");<a name="line.60"></a>
+<span class="sourceLineNo">061</span>    ColumnFamilyDescriptor cf6 = ColumnFamilyDescriptorBuilder.of("cf6");<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    ColumnFamilyDescriptor cf7 = ColumnFamilyDescriptorBuilder.of("cf7");<a name="line.62"></a>
+<span class="sourceLineNo">063</span>    TableDescriptor newTd = TableDescriptorBuilder<a name="line.63"></a>
+<span class="sourceLineNo">064</span>        .newBuilder(td)<a name="line.64"></a>
+<span class="sourceLineNo">065</span>        .removeColumnFamily(Bytes.toBytes("cf1"))<a name="line.65"></a>
+<span class="sourceLineNo">066</span>        .modifyColumnFamily(modCf2)<a name="line.66"></a>
+<span class="sourceLineNo">067</span>        .modifyColumnFamily(modCf3)<a name="line.67"></a>
+<span class="sourceLineNo">068</span>        .setColumnFamily(cf5)<a name="line.68"></a>
+<span class="sourceLineNo">069</span>        .setColumnFamily(cf6)<a name="line.69"></a>
+<span class="sourceLineNo">070</span>        .setColumnFamily(cf7)<a name="line.70"></a>
+<span class="sourceLineNo">071</span>        .build();<a name="line.71"></a>
+<span class="sourceLineNo">072</span><a name="line.72"></a>
+<span class="sourceLineNo">073</span>    TableDescriptorDelta delta = TableDescriptorUtils.computeDelta(td, newTd);<a name="line.73"></a>
+<span class="sourceLineNo">074</span><a name="line.74"></a>
+<span class="sourceLineNo">075</span>    assertEquals(3, delta.getColumnsAdded().size());<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    assertEquals(1, delta.getColumnsDeleted().size());<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    assertEquals(2, delta.getColumnsModified().size());<a name="line.77"></a>
+<span class="sourceLineNo">078</span><a name="line.78"></a>
+<span class="sourceLineNo">079</span>    TableDescriptorDelta inverseDelta = TableDescriptorUtils.computeDelta(newTd, td);<a name="line.79"></a>
+<span class="sourceLineNo">080</span><a name="line.80"></a>
+<span class="sourceLineNo">081</span>    // Equality here relies on implementation detail of the returned Set being a TreeSet<a name="line.81"></a>
+<span class="sourceLineNo">082</span>    assertEquals(delta.getColumnsDeleted(), inverseDelta.getColumnsAdded());<a name="line.82"></a>
+<span class="sourceLineNo">083</span>    assertEquals(delta.getColumnsAdded(), inverseDelta.getColumnsDeleted());<a name="line.83"></a>
+<span class="sourceLineNo">084</span>    assertEquals(delta.getColumnsModified(), inverseDelta.getColumnsModified());<a name="line.84"></a>
+<span class="sourceLineNo">085</span>  }<a name="line.85"></a>
+<span class="sourceLineNo">086</span>}<a name="line.86"></a>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+</pre>
+</div>
+</body>
+</html>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/4df09ed9/testdevapidocs/src-html/org/apache/hadoop/hbase/filter/StringRange.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/filter/StringRange.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/filter/StringRange.html
index e73a619..1648ba3 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/filter/StringRange.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/filter/StringRange.html
@@ -32,247 +32,259 @@
 <span class="sourceLineNo">024</span>import java.util.HashSet;<a name="line.24"></a>
 <span class="sourceLineNo">025</span>import java.util.List;<a name="line.25"></a>
 <span class="sourceLineNo">026</span>import java.util.Map;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import java.util.Set;<a name="line.27"></a>
-<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.*;<a name="line.28"></a>
-<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.HBaseClassTestRule;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.client.Durability;<a name="line.30"></a>
-<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.client.Put;<a name="line.31"></a>
-<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.client.Result;<a name="line.32"></a>
-<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.client.ResultScanner;<a name="line.33"></a>
-<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.client.Scan;<a name="line.34"></a>
-<span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.client.Table;<a name="line.35"></a>
-<span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.testclassification.FilterTests;<a name="line.36"></a>
-<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.testclassification.MediumTests;<a name="line.37"></a>
-<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import org.junit.After;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import org.junit.AfterClass;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.junit.Before;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.junit.BeforeClass;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.junit.ClassRule;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.junit.Rule;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.junit.Test;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.junit.experimental.categories.Category;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.junit.rules.TestName;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.slf4j.Logger;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.slf4j.LoggerFactory;<a name="line.49"></a>
-<span class="sourceLineNo">050</span><a name="line.50"></a>
-<span class="sourceLineNo">051</span>class StringRange {<a name="line.51"></a>
-<span class="sourceLineNo">052</span>  private String start = null;<a name="line.52"></a>
-<span class="sourceLineNo">053</span>  private String end = null;<a name="line.53"></a>
-<span class="sourceLineNo">054</span>  private boolean startInclusive = true;<a name="line.54"></a>
-<span class="sourceLineNo">055</span>  private boolean endInclusive = false;<a name="line.55"></a>
+<span class="sourceLineNo">027</span>import java.util.Objects;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import java.util.Set;<a name="line.28"></a>
+<span class="sourceLineNo">029</span><a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.Cell;<a name="line.30"></a>
+<span class="sourceLineNo">031</span>import org.apache.hadoop.hbase.HBaseClassTestRule;<a name="line.31"></a>
+<span class="sourceLineNo">032</span>import org.apache.hadoop.hbase.HBaseTestingUtility;<a name="line.32"></a>
+<span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.KeyValue;<a name="line.33"></a>
+<span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.KeyValueTestUtil;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.TableName;<a name="line.35"></a>
+<span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.client.Durability;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.client.Put;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.client.Result;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.client.ResultScanner;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.client.Scan;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.client.Table;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.testclassification.FilterTests;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.testclassification.MediumTests;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.util.Bytes;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.junit.After;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.junit.AfterClass;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.junit.Before;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import org.junit.BeforeClass;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>import org.junit.ClassRule;<a name="line.49"></a>
+<span class="sourceLineNo">050</span>import org.junit.Rule;<a name="line.50"></a>
+<span class="sourceLineNo">051</span>import org.junit.Test;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>import org.junit.experimental.categories.Category;<a name="line.52"></a>
+<span class="sourceLineNo">053</span>import org.junit.rules.TestName;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>import org.slf4j.Logger;<a name="line.54"></a>
+<span class="sourceLineNo">055</span>import org.slf4j.LoggerFactory;<a name="line.55"></a>
 <span class="sourceLineNo">056</span><a name="line.56"></a>
-<span class="sourceLineNo">057</span>  public StringRange(String start, boolean startInclusive, String end,<a name="line.57"></a>
-<span class="sourceLineNo">058</span>      boolean endInclusive) {<a name="line.58"></a>
-<span class="sourceLineNo">059</span>    this.start = start;<a name="line.59"></a>
-<span class="sourceLineNo">060</span>    this.startInclusive = startInclusive;<a name="line.60"></a>
-<span class="sourceLineNo">061</span>    this.end = end;<a name="line.61"></a>
-<span class="sourceLineNo">062</span>    this.endInclusive = endInclusive;<a name="line.62"></a>
-<span class="sourceLineNo">063</span>  }<a name="line.63"></a>
-<span class="sourceLineNo">064</span><a name="line.64"></a>
-<span class="sourceLineNo">065</span>  public String getStart() {<a name="line.65"></a>
-<span class="sourceLineNo">066</span>    return this.start;<a name="line.66"></a>
-<span class="sourceLineNo">067</span>  }<a name="line.67"></a>
-<span class="sourceLineNo">068</span><a name="line.68"></a>
-<span class="sourceLineNo">069</span>  public String getEnd() {<a name="line.69"></a>
-<span class="sourceLineNo">070</span>    return this.end;<a name="line.70"></a>
-<span class="sourceLineNo">071</span>  }<a name="line.71"></a>
-<span class="sourceLineNo">072</span><a name="line.72"></a>
-<span class="sourceLineNo">073</span>  public boolean isStartInclusive() {<a name="line.73"></a>
-<span class="sourceLineNo">074</span>    return this.startInclusive;<a name="line.74"></a>
-<span class="sourceLineNo">075</span>  }<a name="line.75"></a>
-<span class="sourceLineNo">076</span><a name="line.76"></a>
-<span class="sourceLineNo">077</span>  public boolean isEndInclusive() {<a name="line.77"></a>
-<span class="sourceLineNo">078</span>    return this.endInclusive;<a name="line.78"></a>
-<span class="sourceLineNo">079</span>  }<a name="line.79"></a>
-<span class="sourceLineNo">080</span><a name="line.80"></a>
-<span class="sourceLineNo">081</span>  @Override<a name="line.81"></a>
-<span class="sourceLineNo">082</span>  public int hashCode() {<a name="line.82"></a>
-<span class="sourceLineNo">083</span>    int hashCode = 0;<a name="line.83"></a>
-<span class="sourceLineNo">084</span>    if (this.start != null) {<a name="line.84"></a>
-<span class="sourceLineNo">085</span>      hashCode ^= this.start.hashCode();<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    }<a name="line.86"></a>
-<span class="sourceLineNo">087</span><a name="line.87"></a>
-<span class="sourceLineNo">088</span>    if (this.end != null) {<a name="line.88"></a>
-<span class="sourceLineNo">089</span>      hashCode ^= this.end.hashCode();<a name="line.89"></a>
-<span class="sourceLineNo">090</span>    }<a name="line.90"></a>
-<span class="sourceLineNo">091</span>    return hashCode;<a name="line.91"></a>
-<span class="sourceLineNo">092</span>  }<a name="line.92"></a>
+<span class="sourceLineNo">057</span>class StringRange {<a name="line.57"></a>
+<span class="sourceLineNo">058</span>  private String start = null;<a name="line.58"></a>
+<span class="sourceLineNo">059</span>  private String end = null;<a name="line.59"></a>
+<span class="sourceLineNo">060</span>  private boolean startInclusive = true;<a name="line.60"></a>
+<span class="sourceLineNo">061</span>  private boolean endInclusive = false;<a name="line.61"></a>
+<span class="sourceLineNo">062</span><a name="line.62"></a>
+<span class="sourceLineNo">063</span>  public StringRange(String start, boolean startInclusive, String end,<a name="line.63"></a>
+<span class="sourceLineNo">064</span>      boolean endInclusive) {<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    this.start = start;<a name="line.65"></a>
+<span class="sourceLineNo">066</span>    this.startInclusive = startInclusive;<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    this.end = end;<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    this.endInclusive = endInclusive;<a name="line.68"></a>
+<span class="sourceLineNo">069</span>  }<a name="line.69"></a>
+<span class="sourceLineNo">070</span><a name="line.70"></a>
+<span class="sourceLineNo">071</span>  public String getStart() {<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    return this.start;<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>  public String getEnd() {<a name="line.75"></a>
+<span class="sourceLineNo">076</span>    return this.end;<a name="line.76"></a>
+<span class="sourceLineNo">077</span>  }<a name="line.77"></a>
+<span class="sourceLineNo">078</span><a name="line.78"></a>
+<span class="sourceLineNo">079</span>  public boolean isStartInclusive() {<a name="line.79"></a>
+<span class="sourceLineNo">080</span>    return this.startInclusive;<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>  public boolean isEndInclusive() {<a name="line.83"></a>
+<span class="sourceLineNo">084</span>    return this.endInclusive;<a name="line.84"></a>
+<span class="sourceLineNo">085</span>  }<a name="line.85"></a>
+<span class="sourceLineNo">086</span><a name="line.86"></a>
+<span class="sourceLineNo">087</span>  @Override<a name="line.87"></a>
+<span class="sourceLineNo">088</span>  public int hashCode() {<a name="line.88"></a>
+<span class="sourceLineNo">089</span>    int hashCode = 0;<a name="line.89"></a>
+<span class="sourceLineNo">090</span>    if (this.start != null) {<a name="line.90"></a>
+<span class="sourceLineNo">091</span>      hashCode ^= this.start.hashCode();<a name="line.91"></a>
+<span class="sourceLineNo">092</span>    }<a name="line.92"></a>
 <span class="sourceLineNo">093</span><a name="line.93"></a>
-<span class="sourceLineNo">094</span>  @Override<a name="line.94"></a>
-<span class="sourceLineNo">095</span>  public String toString() {<a name="line.95"></a>
-<span class="sourceLineNo">096</span>    String result = (this.startInclusive ? "[" : "(")<a name="line.96"></a>
-<span class="sourceLineNo">097</span>          + (this.start == null ? null : this.start) + ", "<a name="line.97"></a>
-<span class="sourceLineNo">098</span>          + (this.end == null ? null : this.end)<a name="line.98"></a>
-<span class="sourceLineNo">099</span>          + (this.endInclusive ? "]" : ")");<a name="line.99"></a>
-<span class="sourceLineNo">100</span>    return result;<a name="line.100"></a>
-<span class="sourceLineNo">101</span>  }<a name="line.101"></a>
-<span class="sourceLineNo">102</span><a name="line.102"></a>
-<span class="sourceLineNo">103</span>   public boolean inRange(String value) {<a name="line.103"></a>
-<span class="sourceLineNo">104</span>    boolean afterStart = true;<a name="line.104"></a>
-<span class="sourceLineNo">105</span>    if (this.start != null) {<a name="line.105"></a>
-<span class="sourceLineNo">106</span>      int startCmp = value.compareTo(this.start);<a name="line.106"></a>
-<span class="sourceLineNo">107</span>      afterStart = this.startInclusive ? startCmp &gt;= 0 : startCmp &gt; 0;<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>    boolean beforeEnd = true;<a name="line.110"></a>
-<span class="sourceLineNo">111</span>    if (this.end != null) {<a name="line.111"></a>
-<span class="sourceLineNo">112</span>      int endCmp = value.compareTo(this.end);<a name="line.112"></a>
-<span class="sourceLineNo">113</span>      beforeEnd = this.endInclusive ? endCmp &lt;= 0 : endCmp &lt; 0;<a name="line.113"></a>
-<span class="sourceLineNo">114</span>    }<a name="line.114"></a>
-<span class="sourceLineNo">115</span><a name="line.115"></a>
-<span class="sourceLineNo">116</span>    return afterStart &amp;&amp; beforeEnd;<a name="line.116"></a>
-<span class="sourceLineNo">117</span>  }<a name="line.117"></a>
-<span class="sourceLineNo">118</span><a name="line.118"></a>
-<span class="sourceLineNo">119</span>}<a name="line.119"></a>
-<span class="sourceLineNo">120</span><a name="line.120"></a>
-<span class="sourceLineNo">121</span><a name="line.121"></a>
-<span class="sourceLineNo">122</span>@Category({FilterTests.class, MediumTests.class})<a name="line.122"></a>
-<span class="sourceLineNo">123</span>public class TestColumnRangeFilter {<a name="line.123"></a>
-<span class="sourceLineNo">124</span><a name="line.124"></a>
-<span class="sourceLineNo">125</span>  @ClassRule<a name="line.125"></a>
-<span class="sourceLineNo">126</span>  public static final HBaseClassTestRule CLASS_RULE =<a name="line.126"></a>
-<span class="sourceLineNo">127</span>      HBaseClassTestRule.forClass(TestColumnRangeFilter.class);<a name="line.127"></a>
-<span class="sourceLineNo">128</span><a name="line.128"></a>
-<span class="sourceLineNo">129</span>  private final static HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();<a name="line.129"></a>
-<span class="sourceLineNo">130</span><a name="line.130"></a>
-<span class="sourceLineNo">131</span>  private static final Logger LOG = LoggerFactory.getLogger(TestColumnRangeFilter.class);<a name="line.131"></a>
-<span class="sourceLineNo">132</span><a name="line.132"></a>
-<span class="sourceLineNo">133</span>  @Rule<a name="line.133"></a>
-<span class="sourceLineNo">134</span>  public TestName name = new TestName();<a name="line.134"></a>
-<span class="sourceLineNo">135</span><a name="line.135"></a>
-<span class="sourceLineNo">136</span>  /**<a name="line.136"></a>
-<span class="sourceLineNo">137</span>   * @throws java.lang.Exception<a name="line.137"></a>
-<span class="sourceLineNo">138</span>   */<a name="line.138"></a>
-<span class="sourceLineNo">139</span>  @BeforeClass<a name="line.139"></a>
-<span class="sourceLineNo">140</span>  public static void setUpBeforeClass() throws Exception {<a name="line.140"></a>
-<span class="sourceLineNo">141</span>    TEST_UTIL.startMiniCluster();<a name="line.141"></a>
-<span class="sourceLineNo">142</span>  }<a name="line.142"></a>
-<span class="sourceLineNo">143</span><a name="line.143"></a>
-<span class="sourceLineNo">144</span>  /**<a name="line.144"></a>
-<span class="sourceLineNo">145</span>   * @throws java.lang.Exception<a name="line.145"></a>
-<span class="sourceLineNo">146</span>   */<a name="line.146"></a>
-<span class="sourceLineNo">147</span>  @AfterClass<a name="line.147"></a>
-<span class="sourceLineNo">148</span>  public static void tearDownAfterClass() throws Exception {<a name="line.148"></a>
-<span class="sourceLineNo">149</span>    TEST_UTIL.shutdownMiniCluster();<a name="line.149"></a>
-<span class="sourceLineNo">150</span>  }<a name="line.150"></a>
-<span class="sourceLineNo">151</span><a name="line.151"></a>
-<span class="sourceLineNo">152</span>  /**<a name="line.152"></a>
-<span class="sourceLineNo">153</span>   * @throws java.lang.Exception<a name="line.153"></a>
-<span class="sourceLineNo">154</span>   */<a name="line.154"></a>
-<span class="sourceLineNo">155</span>  @Before<a name="line.155"></a>
-<span class="sourceLineNo">156</span>  public void setUp() throws Exception {<a name="line.156"></a>
-<span class="sourceLineNo">157</span>    // Nothing to do.<a name="line.157"></a>
-<span class="sourceLineNo">158</span>  }<a name="line.158"></a>
+<span class="sourceLineNo">094</span>    if (this.end != null) {<a name="line.94"></a>
+<span class="sourceLineNo">095</span>      hashCode ^= this.end.hashCode();<a name="line.95"></a>
+<span class="sourceLineNo">096</span>    }<a name="line.96"></a>
+<span class="sourceLineNo">097</span>    return hashCode;<a name="line.97"></a>
+<span class="sourceLineNo">098</span>  }<a name="line.98"></a>
+<span class="sourceLineNo">099</span><a name="line.99"></a>
+<span class="sourceLineNo">100</span>  @Override<a name="line.100"></a>
+<span class="sourceLineNo">101</span>  public boolean equals(Object obj) {<a name="line.101"></a>
+<span class="sourceLineNo">102</span>    if (this == obj) {<a name="line.102"></a>
+<span class="sourceLineNo">103</span>      return true;<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    }<a name="line.104"></a>
+<span class="sourceLineNo">105</span>    if (obj == null) {<a name="line.105"></a>
+<span class="sourceLineNo">106</span>      return false;<a name="line.106"></a>
+<span class="sourceLineNo">107</span>    }<a name="line.107"></a>
+<span class="sourceLineNo">108</span>    if (!(obj instanceof StringRange)) {<a name="line.108"></a>
+<span class="sourceLineNo">109</span>      return false;<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    }<a name="line.110"></a>
+<span class="sourceLineNo">111</span>    StringRange oth = (StringRange) obj;<a name="line.111"></a>
+<span class="sourceLineNo">112</span>    return this.startInclusive == oth.startInclusive &amp;&amp;<a name="line.112"></a>
+<span class="sourceLineNo">113</span>        this.endInclusive == oth.endInclusive &amp;&amp;<a name="line.113"></a>
+<span class="sourceLineNo">114</span>        Objects.equals(this.start, oth.start) &amp;&amp;<a name="line.114"></a>
+<span class="sourceLineNo">115</span>        Objects.equals(this.end, oth.end);<a name="line.115"></a>
+<span class="sourceLineNo">116</span>  }<a name="line.116"></a>
+<span class="sourceLineNo">117</span><a name="line.117"></a>
+<span class="sourceLineNo">118</span>  @Override<a name="line.118"></a>
+<span class="sourceLineNo">119</span>  public String toString() {<a name="line.119"></a>
+<span class="sourceLineNo">120</span>    String result = (this.startInclusive ? "[" : "(")<a name="line.120"></a>
+<span class="sourceLineNo">121</span>          + (this.start == null ? null : this.start) + ", "<a name="line.121"></a>
+<span class="sourceLineNo">122</span>          + (this.end == null ? null : this.end)<a name="line.122"></a>
+<span class="sourceLineNo">123</span>          + (this.endInclusive ? "]" : ")");<a name="line.123"></a>
+<span class="sourceLineNo">124</span>    return result;<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>   public boolean inRange(String value) {<a name="line.127"></a>
+<span class="sourceLineNo">128</span>    boolean afterStart = true;<a name="line.128"></a>
+<span class="sourceLineNo">129</span>    if (this.start != null) {<a name="line.129"></a>
+<span class="sourceLineNo">130</span>      int startCmp = value.compareTo(this.start);<a name="line.130"></a>
+<span class="sourceLineNo">131</span>      afterStart = this.startInclusive ? startCmp &gt;= 0 : startCmp &gt; 0;<a name="line.131"></a>
+<span class="sourceLineNo">132</span>    }<a name="line.132"></a>
+<span class="sourceLineNo">133</span><a name="line.133"></a>
+<span class="sourceLineNo">134</span>    boolean beforeEnd = true;<a name="line.134"></a>
+<span class="sourceLineNo">135</span>    if (this.end != null) {<a name="line.135"></a>
+<span class="sourceLineNo">136</span>      int endCmp = value.compareTo(this.end);<a name="line.136"></a>
+<span class="sourceLineNo">137</span>      beforeEnd = this.endInclusive ? endCmp &lt;= 0 : endCmp &lt; 0;<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>    return afterStart &amp;&amp; beforeEnd;<a name="line.140"></a>
+<span class="sourceLineNo">141</span>  }<a name="line.141"></a>
+<span class="sourceLineNo">142</span><a name="line.142"></a>
+<span class="sourceLineNo">143</span>}<a name="line.143"></a>
+<span class="sourceLineNo">144</span><a name="line.144"></a>
+<span class="sourceLineNo">145</span><a name="line.145"></a>
+<span class="sourceLineNo">146</span>@Category({FilterTests.class, MediumTests.class})<a name="line.146"></a>
+<span class="sourceLineNo">147</span>public class TestColumnRangeFilter {<a name="line.147"></a>
+<span class="sourceLineNo">148</span><a name="line.148"></a>
+<span class="sourceLineNo">149</span>  @ClassRule<a name="line.149"></a>
+<span class="sourceLineNo">150</span>  public static final HBaseClassTestRule CLASS_RULE =<a name="line.150"></a>
+<span class="sourceLineNo">151</span>      HBaseClassTestRule.forClass(TestColumnRangeFilter.class);<a name="line.151"></a>
+<span class="sourceLineNo">152</span><a name="line.152"></a>
+<span class="sourceLineNo">153</span>  private final static HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();<a name="line.153"></a>
+<span class="sourceLineNo">154</span><a name="line.154"></a>
+<span class="sourceLineNo">155</span>  private static final Logger LOG = LoggerFactory.getLogger(TestColumnRangeFilter.class);<a name="line.155"></a>
+<span class="sourceLineNo">156</span><a name="line.156"></a>
+<span class="sourceLineNo">157</span>  @Rule<a name="line.157"></a>
+<span class="sourceLineNo">158</span>  public TestName name = new TestName();<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>   * @throws java.lang.Exception<a name="line.161"></a>
-<span class="sourceLineNo">162</span>   */<a name="line.162"></a>
-<span class="sourceLineNo">163</span>  @After<a name="line.163"></a>
-<span class="sourceLineNo">164</span>  public void tearDown() throws Exception {<a name="line.164"></a>
-<span class="sourceLineNo">165</span>    // Nothing to do.<a name="line.165"></a>
-<span class="sourceLineNo">166</span>  }<a name="line.166"></a>
-<span class="sourceLineNo">167</span><a name="line.167"></a>
-<span class="sourceLineNo">168</span>  @Test<a name="line.168"></a>
-<span class="sourceLineNo">169</span>  public void TestColumnRangeFilterClient() throws Exception {<a name="line.169"></a>
-<span class="sourceLineNo">170</span>    String family = "Family";<a name="line.170"></a>
-<span class="sourceLineNo">171</span>    Table ht = TEST_UTIL.createTable(TableName.valueOf(name.getMethodName()),<a name="line.171"></a>
-<span class="sourceLineNo">172</span>        Bytes.toBytes(family), Integer.MAX_VALUE);<a name="line.172"></a>
-<span class="sourceLineNo">173</span><a name="line.173"></a>
-<span class="sourceLineNo">174</span>    List&lt;String&gt; rows = generateRandomWords(10, 8);<a name="line.174"></a>
-<span class="sourceLineNo">175</span>    long maxTimestamp = 2;<a name="line.175"></a>
-<span class="sourceLineNo">176</span>    List&lt;String&gt; columns = generateRandomWords(20000, 8);<a name="line.176"></a>
-<span class="sourceLineNo">177</span><a name="line.177"></a>
-<span class="sourceLineNo">178</span>    List&lt;KeyValue&gt; kvList = new ArrayList&lt;&gt;();<a name="line.178"></a>
+<span class="sourceLineNo">160</span>  @BeforeClass<a name="line.160"></a>
+<span class="sourceLineNo">161</span>  public static void setUpBeforeClass() throws Exception {<a name="line.161"></a>
+<span class="sourceLineNo">162</span>    TEST_UTIL.startMiniCluster();<a name="line.162"></a>
+<span class="sourceLineNo">163</span>  }<a name="line.163"></a>
+<span class="sourceLineNo">164</span><a name="line.164"></a>
+<span class="sourceLineNo">165</span>  @AfterClass<a name="line.165"></a>
+<span class="sourceLineNo">166</span>  public static void tearDownAfterClass() throws Exception {<a name="line.166"></a>
+<span class="sourceLineNo">167</span>    TEST_UTIL.shutdownMiniCluster();<a name="line.167"></a>
+<span class="sourceLineNo">168</span>  }<a name="line.168"></a>
+<span class="sourceLineNo">169</span><a name="line.169"></a>
+<span class="sourceLineNo">170</span>  @Before<a name="line.170"></a>
+<span class="sourceLineNo">171</span>  public void setUp() throws Exception {<a name="line.171"></a>
+<span class="sourceLineNo">172</span>    // Nothing to do.<a name="line.172"></a>
+<span class="sourceLineNo">173</span>  }<a name="line.173"></a>
+<span class="sourceLineNo">174</span><a name="line.174"></a>
+<span class="sourceLineNo">175</span>  @After<a name="line.175"></a>
+<span class="sourceLineNo">176</span>  public void tearDown() throws Exception {<a name="line.176"></a>
+<span class="sourceLineNo">177</span>    // Nothing to do.<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>    Map&lt;StringRange, List&lt;KeyValue&gt;&gt; rangeMap = new HashMap&lt;&gt;();<a name="line.180"></a>
-<span class="sourceLineNo">181</span><a name="line.181"></a>
-<span class="sourceLineNo">182</span>    rangeMap.put(new StringRange(null, true, "b", false),<a name="line.182"></a>
-<span class="sourceLineNo">183</span>        new ArrayList&lt;&gt;());<a name="line.183"></a>
-<span class="sourceLineNo">184</span>    rangeMap.put(new StringRange("p", true, "q", false),<a name="line.184"></a>
-<span class="sourceLineNo">185</span>        new ArrayList&lt;&gt;());<a name="line.185"></a>
-<span class="sourceLineNo">186</span>    rangeMap.put(new StringRange("r", false, "s", true),<a name="line.186"></a>
-<span class="sourceLineNo">187</span>        new ArrayList&lt;&gt;());<a name="line.187"></a>
-<span class="sourceLineNo">188</span>    rangeMap.put(new StringRange("z", false, null, false),<a name="line.188"></a>
-<span class="sourceLineNo">189</span>        new ArrayList&lt;&gt;());<a name="line.189"></a>
-<span class="sourceLineNo">190</span>    String valueString = "ValueString";<a name="line.190"></a>
+<span class="sourceLineNo">180</span>  @Test<a name="line.180"></a>
+<span class="sourceLineNo">181</span>  public void TestColumnRangeFilterClient() throws Exception {<a name="line.181"></a>
+<span class="sourceLineNo">182</span>    String family = "Family";<a name="line.182"></a>
+<span class="sourceLineNo">183</span>    Table ht = TEST_UTIL.createTable(TableName.valueOf(name.getMethodName()),<a name="line.183"></a>
+<span class="sourceLineNo">184</span>        Bytes.toBytes(family), Integer.MAX_VALUE);<a name="line.184"></a>
+<span class="sourceLineNo">185</span><a name="line.185"></a>
+<span class="sourceLineNo">186</span>    List&lt;String&gt; rows = generateRandomWords(10, 8);<a name="line.186"></a>
+<span class="sourceLineNo">187</span>    long maxTimestamp = 2;<a name="line.187"></a>
+<span class="sourceLineNo">188</span>    List&lt;String&gt; columns = generateRandomWords(20000, 8);<a name="line.188"></a>
+<span class="sourceLineNo">189</span><a name="line.189"></a>
+<span class="sourceLineNo">190</span>    List&lt;KeyValue&gt; kvList = new ArrayList&lt;&gt;();<a name="line.190"></a>
 <span class="sourceLineNo">191</span><a name="line.191"></a>
-<span class="sourceLineNo">192</span>    for (String row : rows) {<a name="line.192"></a>
-<span class="sourceLineNo">193</span>      Put p = new Put(Bytes.toBytes(row));<a name="line.193"></a>
-<span class="sourceLineNo">194</span>      p.setDurability(Durability.SKIP_WAL);<a name="line.194"></a>
-<span class="sourceLineNo">195</span>      for (String column : columns) {<a name="line.195"></a>
-<span class="sourceLineNo">196</span>        for (long timestamp = 1; timestamp &lt;= maxTimestamp; timestamp++) {<a name="line.196"></a>
-<span class="sourceLineNo">197</span>          KeyValue kv = KeyValueTestUtil.create(row, family, column, timestamp,<a name="line.197"></a>
-<span class="sourceLineNo">198</span>              valueString);<a name="line.198"></a>
-<span class="sourceLineNo">199</span>          p.add(kv);<a name="line.199"></a>
-<span class="sourceLineNo">200</span>          kvList.add(kv);<a name="line.200"></a>
-<span class="sourceLineNo">201</span>          for (StringRange s : rangeMap.keySet()) {<a name="line.201"></a>
-<span class="sourceLineNo">202</span>            if (s.inRange(column)) {<a name="line.202"></a>
-<span class="sourceLineNo">203</span>              rangeMap.get(s).add(kv);<a name="line.203"></a>
-<span class="sourceLineNo">204</span>            }<a name="line.204"></a>
-<span class="sourceLineNo">205</span>          }<a name="line.205"></a>
-<span class="sourceLineNo">206</span>        }<a name="line.206"></a>
-<span class="sourceLineNo">207</span>      }<a name="line.207"></a>
-<span class="sourceLineNo">208</span>      ht.put(p);<a name="line.208"></a>
-<span class="sourceLineNo">209</span>    }<a name="line.209"></a>
-<span class="sourceLineNo">210</span><a name="line.210"></a>
-<span class="sourceLineNo">211</span>    TEST_UTIL.flush();<a name="line.211"></a>
-<span class="sourceLineNo">212</span><a name="line.212"></a>
-<span class="sourceLineNo">213</span>    ColumnRangeFilter filter;<a name="line.213"></a>
-<span class="sourceLineNo">214</span>    Scan scan = new Scan();<a name="line.214"></a>
-<span class="sourceLineNo">215</span>    scan.setMaxVersions();<a name="line.215"></a>
-<span class="sourceLineNo">216</span>    for (StringRange s : rangeMap.keySet()) {<a name="line.216"></a>
-<span class="sourceLineNo">217</span>      filter = new ColumnRangeFilter(s.getStart() == null ? null<a name="line.217"></a>
-<span class="sourceLineNo">218</span>          : Bytes.toBytes(s.getStart()), s.isStartInclusive(),<a name="line.218"></a>
-<span class="sourceLineNo">219</span>          s.getEnd() == null ? null : Bytes.toBytes(s.getEnd()),<a name="line.219"></a>
-<span class="sourceLineNo">220</span>          s.isEndInclusive());<a name="line.220"></a>
-<span class="sourceLineNo">221</span>      scan.setFilter(filter);<a name="line.221"></a>
-<span class="sourceLineNo">222</span>      ResultScanner scanner = ht.getScanner(scan);<a name="line.222"></a>
-<span class="sourceLineNo">223</span>      List&lt;Cell&gt; results = new ArrayList&lt;&gt;();<a name="line.223"></a>
-<span class="sourceLineNo">224</span>      LOG.info("scan column range: " + s.toString());<a name="line.224"></a>
-<span class="sourceLineNo">225</span>      long timeBeforeScan = System.currentTimeMillis();<a name="line.225"></a>
-<span class="sourceLineNo">226</span><a name="line.226"></a>
-<span class="sourceLineNo">227</span>      Result result;<a name="line.227"></a>
-<span class="sourceLineNo">228</span>      while ((result = scanner.next()) != null) {<a name="line.228"></a>
-<span class="sourceLineNo">229</span>        for (Cell kv : result.listCells()) {<a name="line.229"></a>
-<span class="sourceLineNo">230</span>          results.add(kv);<a name="line.230"></a>
-<span class="sourceLineNo">231</span>        }<a name="line.231"></a>
-<span class="sourceLineNo">232</span>      }<a name="line.232"></a>
-<span class="sourceLineNo">233</span>      long scanTime = System.currentTimeMillis() - timeBeforeScan;<a name="line.233"></a>
-<span class="sourceLineNo">234</span>      scanner.close();<a name="line.234"></a>
-<span class="sourceLineNo">235</span>      LOG.info("scan time = " + scanTime + "ms");<a name="line.235"></a>
-<span class="sourceLineNo">236</span>      LOG.info("found " + results.size() + " results");<a name="line.236"></a>
-<span class="sourceLineNo">237</span>      LOG.info("Expecting " + rangeMap.get(s).size() + " results");<a name="line.237"></a>
+<span class="sourceLineNo">192</span>    Map&lt;StringRange, List&lt;KeyValue&gt;&gt; rangeMap = new HashMap&lt;&gt;();<a name="line.192"></a>
+<span class="sourceLineNo">193</span><a name="line.193"></a>
+<span class="sourceLineNo">194</span>    rangeMap.put(new StringRange(null, true, "b", false),<a name="line.194"></a>
+<span class="sourceLineNo">195</span>        new ArrayList&lt;&gt;());<a name="line.195"></a>
+<span class="sourceLineNo">196</span>    rangeMap.put(new StringRange("p", true, "q", false),<a name="line.196"></a>
+<span class="sourceLineNo">197</span>        new ArrayList&lt;&gt;());<a name="line.197"></a>
+<span class="sourceLineNo">198</span>    rangeMap.put(new StringRange("r", false, "s", true),<a name="line.198"></a>
+<span class="sourceLineNo">199</span>        new ArrayList&lt;&gt;());<a name="line.199"></a>
+<span class="sourceLineNo">200</span>    rangeMap.put(new StringRange("z", false, null, false),<a name="line.200"></a>
+<span class="sourceLineNo">201</span>        new ArrayList&lt;&gt;());<a name="line.201"></a>
+<span class="sourceLineNo">202</span>    String valueString = "ValueString";<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span>    for (String row : rows) {<a name="line.204"></a>
+<span class="sourceLineNo">205</span>      Put p = new Put(Bytes.toBytes(row));<a name="line.205"></a>
+<span class="sourceLineNo">206</span>      p.setDurability(Durability.SKIP_WAL);<a name="line.206"></a>
+<span class="sourceLineNo">207</span>      for (String column : columns) {<a name="line.207"></a>
+<span class="sourceLineNo">208</span>        for (long timestamp = 1; timestamp &lt;= maxTimestamp; timestamp++) {<a name="line.208"></a>
+<span class="sourceLineNo">209</span>          KeyValue kv = KeyValueTestUtil.create(row, family, column, timestamp,<a name="line.209"></a>
+<span class="sourceLineNo">210</span>              valueString);<a name="line.210"></a>
+<span class="sourceLineNo">211</span>          p.add(kv);<a name="line.211"></a>
+<span class="sourceLineNo">212</span>          kvList.add(kv);<a name="line.212"></a>
+<span class="sourceLineNo">213</span>          for (StringRange s : rangeMap.keySet()) {<a name="line.213"></a>
+<span class="sourceLineNo">214</span>            if (s.inRange(column)) {<a name="line.214"></a>
+<span class="sourceLineNo">215</span>              rangeMap.get(s).add(kv);<a name="line.215"></a>
+<span class="sourceLineNo">216</span>            }<a name="line.216"></a>
+<span class="sourceLineNo">217</span>          }<a name="line.217"></a>
+<span class="sourceLineNo">218</span>        }<a name="line.218"></a>
+<span class="sourceLineNo">219</span>      }<a name="line.219"></a>
+<span class="sourceLineNo">220</span>      ht.put(p);<a name="line.220"></a>
+<span class="sourceLineNo">221</span>    }<a name="line.221"></a>
+<span class="sourceLineNo">222</span><a name="line.222"></a>
+<span class="sourceLineNo">223</span>    TEST_UTIL.flush();<a name="line.223"></a>
+<span class="sourceLineNo">224</span><a name="line.224"></a>
+<span class="sourceLineNo">225</span>    ColumnRangeFilter filter;<a name="line.225"></a>
+<span class="sourceLineNo">226</span>    Scan scan = new Scan();<a name="line.226"></a>
+<span class="sourceLineNo">227</span>    scan.setMaxVersions();<a name="line.227"></a>
+<span class="sourceLineNo">228</span>    for (StringRange s : rangeMap.keySet()) {<a name="line.228"></a>
+<span class="sourceLineNo">229</span>      filter = new ColumnRangeFilter(s.getStart() == null ? null<a name="line.229"></a>
+<span class="sourceLineNo">230</span>          : Bytes.toBytes(s.getStart()), s.isStartInclusive(),<a name="line.230"></a>
+<span class="sourceLineNo">231</span>          s.getEnd() == null ? null : Bytes.toBytes(s.getEnd()),<a name="line.231"></a>
+<span class="sourceLineNo">232</span>          s.isEndInclusive());<a name="line.232"></a>
+<span class="sourceLineNo">233</span>      scan.setFilter(filter);<a name="line.233"></a>
+<span class="sourceLineNo">234</span>      ResultScanner scanner = ht.getScanner(scan);<a name="line.234"></a>
+<span class="sourceLineNo">235</span>      List&lt;Cell&gt; results = new ArrayList&lt;&gt;();<a name="line.235"></a>
+<span class="sourceLineNo">236</span>      LOG.info("scan column range: " + s.toString());<a name="line.236"></a>
+<span class="sourceLineNo">237</span>      long timeBeforeScan = System.currentTimeMillis();<a name="line.237"></a>
 <span class="sourceLineNo">238</span><a name="line.238"></a>
-<span class="sourceLineNo">239</span>      /*<a name="line.239"></a>
-<span class="sourceLineNo">240</span>      for (KeyValue kv : results) {<a name="line.240"></a>
-<span class="sourceLineNo">241</span>        LOG.info("found row " + Bytes.toString(kv.getRow()) + ", column "<a name="line.241"></a>
-<span class="sourceLineNo">242</span>            + Bytes.toString(kv.getQualifier()));<a name="line.242"></a>
-<span class="sourceLineNo">243</span>      }<a name="line.243"></a>
-<span class="sourceLineNo">244</span>      */<a name="line.244"></a>
-<span class="sourceLineNo">245</span><a name="line.245"></a>
-<span class="sourceLineNo">246</span>      assertEquals(rangeMap.get(s).size(), results.size());<a name="line.246"></a>
-<span class="sourceLineNo">247</span>    }<a name="line.247"></a>
-<span class="sourceLineNo">248</span>    ht.close();<a name="line.248"></a>
-<span class="sourceLineNo">249</span>  }<a name="line.249"></a>
+<span class="sourceLineNo">239</span>      Result result;<a name="line.239"></a>
+<span class="sourceLineNo">240</span>      while ((result = scanner.next()) != null) {<a name="line.240"></a>
+<span class="sourceLineNo">241</span>        for (Cell kv : result.listCells()) {<a name="line.241"></a>
+<span class="sourceLineNo">242</span>          results.add(kv);<a name="line.242"></a>
+<span class="sourceLineNo">243</span>        }<a name="line.243"></a>
+<span class="sourceLineNo">244</span>      }<a name="line.244"></a>
+<span class="sourceLineNo">245</span>      long scanTime = System.currentTimeMillis() - timeBeforeScan;<a name="line.245"></a>
+<span class="sourceLineNo">246</span>      scanner.close();<a name="line.246"></a>
+<span class="sourceLineNo">247</span>      LOG.info("scan time = " + scanTime + "ms");<a name="line.247"></a>
+<span class="sourceLineNo">248</span>      LOG.info("found " + results.size() + " results");<a name="line.248"></a>
+<span class="sourceLineNo">249</span>      LOG.info("Expecting " + rangeMap.get(s).size() + " results");<a name="line.249"></a>
 <span class="sourceLineNo">250</span><a name="line.250"></a>
-<span class="sourceLineNo">251</span>  List&lt;String&gt; generateRandomWords(int numberOfWords, int maxLengthOfWords) {<a name="line.251"></a>
-<span class="sourceLineNo">252</span>    Set&lt;String&gt; wordSet = new HashSet&lt;&gt;();<a name="line.252"></a>
-<span class="sourceLineNo">253</span>    for (int i = 0; i &lt; numberOfWords; i++) {<a name="line.253"></a>
-<span class="sourceLineNo">254</span>      int lengthOfWords = (int) (Math.random() * maxLengthOfWords) + 1;<a name="line.254"></a>
-<span class="sourceLineNo">255</span>      char[] wordChar = new char[lengthOfWords];<a name="line.255"></a>
-<span class="sourceLineNo">256</span>      for (int j = 0; j &lt; wordChar.length; j++) {<a name="line.256"></a>
-<span class="sourceLineNo">257</span>        wordChar[j] = (char) (Math.random() * 26 + 97);<a name="line.257"></a>
-<span class="sourceLineNo">258</span>      }<a name="line.258"></a>
-<span class="sourceLineNo">259</span>      String word = new String(wordChar);<a name="line.259"></a>
-<span class="sourceLineNo">260</span>      wordSet.add(word);<a name="line.260"></a>
-<span class="sourceLineNo">261</span>    }<a name="line.261"></a>
-<span class="sourceLineNo">262</span>    List&lt;String&gt; wordList = new ArrayList&lt;&gt;(wordSet);<a name="line.262"></a>
-<span class="sourceLineNo">263</span>    return wordList;<a name="line.263"></a>
-<span class="sourceLineNo">264</span>  }<a name="line.264"></a>
-<span class="sourceLineNo">265</span><a name="line.265"></a>
-<span class="sourceLineNo">266</span>}<a name="line.266"></a>
-<span class="sourceLineNo">267</span><a name="line.267"></a>
+<span class="sourceLineNo">251</span>      /*<a name="line.251"></a>
+<span class="sourceLineNo">252</span>      for (KeyValue kv : results) {<a name="line.252"></a>
+<span class="sourceLineNo">253</span>        LOG.info("found row " + Bytes.toString(kv.getRow()) + ", column "<a name="line.253"></a>
+<span class="sourceLineNo">254</span>            + Bytes.toString(kv.getQualifier()));<a name="line.254"></a>
+<span class="sourceLineNo">255</span>      }<a name="line.255"></a>
+<span class="sourceLineNo">256</span>      */<a name="line.256"></a>
+<span class="sourceLineNo">257</span><a name="line.257"></a>
+<span class="sourceLineNo">258</span>      assertEquals(rangeMap.get(s).size(), results.size());<a name="line.258"></a>
+<span class="sourceLineNo">259</span>    }<a name="line.259"></a>
+<span class="sourceLineNo">260</span>    ht.close();<a name="line.260"></a>
+<span class="sourceLineNo">261</span>  }<a name="line.261"></a>
+<span class="sourceLineNo">262</span><a name="line.262"></a>
+<span class="sourceLineNo">263</span>  List&lt;String&gt; generateRandomWords(int numberOfWords, int maxLengthOfWords) {<a name="line.263"></a>
+<span class="sourceLineNo">264</span>    Set&lt;String&gt; wordSet = new HashSet&lt;&gt;();<a name="line.264"></a>
+<span class="sourceLineNo">265</span>    for (int i = 0; i &lt; numberOfWords; i++) {<a name="line.265"></a>
+<span class="sourceLineNo">266</span>      int lengthOfWords = (int) (Math.random() * maxLengthOfWords) + 1;<a name="line.266"></a>
+<span class="sourceLineNo">267</span>      char[] wordChar = new char[lengthOfWords];<a name="line.267"></a>
+<span class="sourceLineNo">268</span>      for (int j = 0; j &lt; wordChar.length; j++) {<a name="line.268"></a>
+<span class="sourceLineNo">269</span>        wordChar[j] = (char) (Math.random() * 26 + 97);<a name="line.269"></a>
+<span class="sourceLineNo">270</span>      }<a name="line.270"></a>
+<span class="sourceLineNo">271</span>      String word = new String(wordChar);<a name="line.271"></a>
+<span class="sourceLineNo">272</span>      wordSet.add(word);<a name="line.272"></a>
+<span class="sourceLineNo">273</span>    }<a name="line.273"></a>
+<span class="sourceLineNo">274</span>    List&lt;String&gt; wordList = new ArrayList&lt;&gt;(wordSet);<a name="line.274"></a>
+<span class="sourceLineNo">275</span>    return wordList;<a name="line.275"></a>
+<span class="sourceLineNo">276</span>  }<a name="line.276"></a>
+<span class="sourceLineNo">277</span><a name="line.277"></a>
+<span class="sourceLineNo">278</span>}<a name="line.278"></a>
+<span class="sourceLineNo">279</span><a name="line.279"></a>
 
 
 


Mime
View raw message