http://git-wip-us.apache.org/repos/asf/hbase-site/blob/ed0004f8/devapidocs/org/apache/hadoop/hbase/CellComparator.html
----------------------------------------------------------------------
diff --git a/devapidocs/org/apache/hadoop/hbase/CellComparator.html
b/devapidocs/org/apache/hadoop/hbase/CellComparator.html
index e948ec0..aae3d67 100644
--- a/devapidocs/org/apache/hadoop/hbase/CellComparator.html
+++ b/devapidocs/org/apache/hadoop/hbase/CellComparator.html
@@ -18,8 +18,8 @@
catch(err) {
}
//-->
-var methods =
{"i0":10,"i1":10,"i2":10,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":10,"i9":10,"i10":9,"i11":9,"i12":9,"i13":9,"i14":10,"i15":10,"i16":9,"i17":9,"i18":9,"i19":10,"i20":9};
-var tabs = {65535:["t0","All Methods"],1:["t1","Static
Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
+var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6};
+var tabs = {65535:["t0","All Methods"],2:["t2","Instance
Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
@@ -50,7 +50,7 @@ var activeTableTab = "activeTableTab";
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/hadoop/hbase/CellBuilderType.html"
title="enum in org.apache.hadoop.hbase"><span
class="typeNameLink">Prev Class</span></a></li>
-<li><a
href="../../../../org/apache/hadoop/hbase/CellComparator.MetaCellComparator.html"
title="class in org.apache.hadoop.hbase"><span
class="typeNameLink">Next Class</span></a></li>
+<li><a href="../../../../org/apache/hadoop/hbase/CellComparatorImpl.html"
title="class in org.apache.hadoop.hbase"><span
class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a
href="../../../../index.html?org/apache/hadoop/hbase/CellComparator.html"
target="_top">Frames</a></li>
@@ -74,15 +74,15 @@ var activeTableTab = "activeTableTab";
<div>
<ul class="subNavList">
<li>Summary: </li>
-<li><a href="#nested.class.summary">Nested</a> | </li>
-<li><a href="#field.summary">Field</a> | </li>
-<li><a href="#constructor.summary">Constr</a> | </li>
+<li>Nested | </li>
+<li>Field | </li>
+<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
-<li><a href="#field.detail">Field</a> | </li>
-<li><a href="#constructor.detail">Constr</a> | </li>
+<li>Field | </li>
+<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
@@ -93,128 +93,34 @@ var activeTableTab = "activeTableTab";
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.hadoop.hbase</div>
-<h2 title="Class CellComparator" class="title">Class CellComparator</h2>
+<h2 title="Interface CellComparator" class="title">Interface
CellComparator</h2>
</div>
<div class="contentContainer">
-<ul class="inheritance">
-<li><a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">java.lang.Object</a></li>
-<li>
-<ul class="inheritance">
-<li>org.apache.hadoop.hbase.CellComparator</li>
-</ul>
-</li>
-</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
-<dt>All Implemented Interfaces:</dt>
-<dd><a
href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true"
title="class or interface in java.io">Serializable</a>, <a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true"
title="class or interface in java.util">Comparator</a><<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a>></dd>
+<dt>All Superinterfaces:</dt>
+<dd><a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true"
title="class or interface in java.util">Comparator</a><<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a>></dd>
</dl>
<dl>
-<dt>Direct Known Subclasses:</dt>
-<dd><a
href="../../../../org/apache/hadoop/hbase/CellComparator.MetaCellComparator.html"
title="class in
org.apache.hadoop.hbase">CellComparator.MetaCellComparator</a></dd>
+<dt>All Known Implementing Classes:</dt>
+<dd><a href="../../../../org/apache/hadoop/hbase/CellComparatorImpl.html"
title="class in org.apache.hadoop.hbase">CellComparatorImpl</a>, <a
href="../../../../org/apache/hadoop/hbase/CellComparatorImpl.MetaCellComparator.html"
title="class in
org.apache.hadoop.hbase">CellComparatorImpl.MetaCellComparator</a></dd>
</dl>
<hr>
<br>
-<pre>@InterfaceAudience.Private
+<pre>@InterfaceAudience.LimitedPrivate(value="Coprocesssor")
@InterfaceStability.Evolving
-public class <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.50">CellComparator</a>
-extends <a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a>
-implements <a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true"
title="class or interface in java.util">Comparator</a><<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a>>, <a
href="http://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true"
title="class or interface in java.io">Serializable</a></pre>
-<div class="block">Compare two HBase cells. Do not use this method comparing
<code>-ROOT-</code> or
- <code>hbase:meta</code> cells. Cells from these tables need a specialized
comparator, one that
- takes account of the special formatting of the row where we have commas to
delimit table from
- regionname, from row. See KeyValue for how it has a special comparator to do
hbase:meta cells
- and yet another for -ROOT-.
- While using this comparator for {<a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareRows-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-"><code>compareRows(Cell,
Cell)</code></a> et al, the hbase:meta cells
- format should be taken into consideration, for which the instance of this
comparator
- should be used. In all other cases the static APIs in this comparator would
be enough</div>
-<dl>
-<dt><span class="seeLabel">See Also:</span></dt>
-<dd><a
href="../../../../serialized-form.html#org.apache.hadoop.hbase.CellComparator">Serialized
Form</a></dd>
-</dl>
+public interface <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.30">CellComparator</a>
+extends <a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true"
title="class or interface in java.util">Comparator</a><<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a>></pre>
+<div class="block">Comparator for comparing cells and has some specialized
methods that allows comparing individual
+ cell components like row, family, qualifier and timestamp</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
-<!-- ======== NESTED CLASS SUMMARY ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="nested.class.summary">
-<!-- -->
-</a>
-<h3>Nested Class Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0"
summary="Nested Class Summary table, listing nested classes, and an
explanation">
-<caption><span>Nested Classes</span><span
class="tabEnd"> </span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier and Type</th>
-<th class="colLast" scope="col">Class and Description</th>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><code>static class </code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.MetaCellComparator.html"
title="class in
org.apache.hadoop.hbase">CellComparator.MetaCellComparator</a></span></code>
-<div class="block">A <a
href="../../../../org/apache/hadoop/hbase/CellComparator.html" title="class in
org.apache.hadoop.hbase"><code>CellComparator</code></a> for
<code>hbase:meta</code> catalog table
- <a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in
org.apache.hadoop.hbase"><code>KeyValue</code></a>s.</div>
-</td>
-</tr>
-</table>
-</li>
-</ul>
-<!-- =========== FIELD SUMMARY =========== -->
-<ul class="blockList">
-<li class="blockList"><a name="field.summary">
-<!-- -->
-</a>
-<h3>Field Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0"
summary="Field Summary table, listing fields, and an explanation">
-<caption><span>Fields</span><span class="tabEnd"> </span></caption>
-<tr>
-<th class="colFirst" scope="col">Modifier and Type</th>
-<th class="colLast" scope="col">Field and Description</th>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><code>static <a
href="../../../../org/apache/hadoop/hbase/CellComparator.html" title="class in
org.apache.hadoop.hbase">CellComparator</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#COMPARATOR">COMPARATOR</a></span></code>
-<div class="block">Comparator for plain key/values; i.e.</div>
-</td>
-</tr>
-<tr class="rowColor">
-<td class="colFirst"><code>(package private) static
org.apache.commons.logging.Log</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#LOG">LOG</a></span></code> </td>
-</tr>
-<tr class="altColor">
-<td class="colFirst"><code>static <a
href="../../../../org/apache/hadoop/hbase/CellComparator.html" title="class in
org.apache.hadoop.hbase">CellComparator</a></code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#META_COMPARATOR">META_COMPARATOR</a></span></code>
-<div class="block">A <a
href="../../../../org/apache/hadoop/hbase/CellComparator.html" title="class in
org.apache.hadoop.hbase"><code>CellComparator</code></a> for
<code>hbase:meta</code> catalog table
- <a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in
org.apache.hadoop.hbase"><code>KeyValue</code></a>s.</div>
-</td>
-</tr>
-<tr class="rowColor">
-<td class="colFirst"><code>private static long</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#serialVersionUID">serialVersionUID</a></span></code> </td>
-</tr>
-</table>
-</li>
-</ul>
-<!-- ======== CONSTRUCTOR SUMMARY ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="constructor.summary">
-<!-- -->
-</a>
-<h3>Constructor Summary</h3>
-<table class="memberSummary" border="0" cellpadding="3" cellspacing="0"
summary="Constructor Summary table, listing constructors, and an explanation">
-<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
-<tr>
-<th class="colOne" scope="col">Constructor and Description</th>
-</tr>
-<tr class="altColor">
-<td class="colOne"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#CellComparator--">CellComparator</a></span>()</code> </td>
-</tr>
-</table>
-</li>
-</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
@@ -222,185 +128,72 @@ implements <a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparato
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0"
summary="Method Summary table, listing methods, and an explanation">
-<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span
class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a
href="javascript:show(1);">Static Methods</a></span><span
class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a
href="javascript:show(2);">Instance Methods</a></span><span
class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a
href="javascript:show(8);">Concrete Methods</a></span><span
class="tabEnd"> </span></span></caption>
+<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span
class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a
href="javascript:show(2);">Instance Methods</a></span><span
class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a
href="javascript:show(4);">Abstract Methods</a></span><span
class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compare-org.apache.hadoop.hbase.Cell-byte:A-int-int-">compare</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- byte[] key,
- int offset,
- int length)</code>
-<div class="block">Used when a cell needs to be compared with a key byte[]
such as cases of
- finding the index from the index block, bloom keys from the bloom blocks
- This byte[] is expected to be serialized in the KeyValue serialization format
- If the KeyValue (Cell's) serialization format changes this method cannot be
used.</div>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compare-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compare</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> leftCell,
+ <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> rightCell)</code>
+<div class="block">Lexographically compares two cells.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compare-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compare</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> a,
- <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> b)</code> </td>
-</tr>
-<tr id="i2" class="altColor">
-<td class="colFirst"><code>private int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compare-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-boolean-">compare</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> a,
- <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> b,
- boolean ignoreSequenceid)</code>
-<div class="block">Compare cells.</div>
-</td>
-</tr>
-<tr id="i3" class="rowColor">
-<td class="colFirst"><code>private static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareColumns-org.apache.hadoop.hbase.Cell-byte:A-int-int-int-int-">compareColumns</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- byte[] right,
- int rfoffset,
- int rflength,
- int rqoffset,
- int rqlength)</code> </td>
-</tr>
-<tr id="i4" class="altColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareColumns-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareColumns</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> right)</code>
-<div class="block">Compares the family and qualifier part of the cell</div>
-</td>
-</tr>
-<tr id="i5" class="rowColor">
-<td class="colFirst"><code>private static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareFamilies-org.apache.hadoop.hbase.Cell-byte:A-int-int-">compareFamilies</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- byte[] right,
- int roffset,
- int rlength)</code> </td>
-</tr>
-<tr id="i6" class="altColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareFamilies-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareFamilies</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> right)</code>
-<div class="block">Compare the families of left and right cell</div>
-</td>
-</tr>
-<tr id="i7" class="rowColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareFamily-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.filter.ByteArrayComparable-">compareFamily</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> cell,
- <a
href="../../../../org/apache/hadoop/hbase/filter/ByteArrayComparable.html"
title="class in
org.apache.hadoop.hbase.filter">ByteArrayComparable</a> comparator)</code>
-<div class="block">Compare cell's column family against given comparator</div>
-</td>
-</tr>
-<tr id="i8" class="altColor">
-<td class="colFirst"><code>int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareKeyBasedOnColHint-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-int-int-byte:A-int-int-long-byte-">compareKeyBasedOnColHint</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> nextIndexedCell,
- <a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> currentCell,
- int foff,
- int flen,
- byte[] colHint,
- int coff,
- int clen,
- long ts,
- byte type)</code>
-<div class="block">Used to compare two cells based on the column hint
provided.</div>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareFamilies-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareFamilies</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> leftCell,
+ <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> rightCell)</code>
+<div class="block">Lexographically compares the families of the two cells</div>
</td>
</tr>
-<tr id="i9" class="rowColor">
+<tr id="i2" class="altColor">
<td class="colFirst"><code>int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareKeyIgnoresMvcc-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareKeyIgnoresMvcc</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> right)</code>
-<div class="block">Compares only the key portion of a cell.</div>
-</td>
-</tr>
-<tr id="i10" class="altColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareQualifier-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.filter.ByteArrayComparable-">compareQualifier</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> cell,
- <a
href="../../../../org/apache/hadoop/hbase/filter/ByteArrayComparable.html"
title="class in
org.apache.hadoop.hbase.filter">ByteArrayComparable</a> comparator)</code>
-<div class="block">Compare cell's qualifier against given comparator</div>
-</td>
-</tr>
-<tr id="i11" class="rowColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareQualifiers-org.apache.hadoop.hbase.Cell-byte:A-int-int-">compareQualifiers</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- byte[] right,
- int rOffset,
- int rLength)</code> </td>
-</tr>
-<tr id="i12" class="altColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareQualifiers-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareQualifiers</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> right)</code>
-<div class="block">Compare the qualifiers part of the left and right
cells.</div>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareQualifiers-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareQualifiers</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> leftCell,
+ <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> rightCell)</code>
+<div class="block">Lexographically compares the qualifiers of the two
cells</div>
</td>
</tr>
-<tr id="i13" class="rowColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareRow-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.filter.ByteArrayComparable-">compareRow</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> cell,
- <a
href="../../../../org/apache/hadoop/hbase/filter/ByteArrayComparable.html"
title="class in
org.apache.hadoop.hbase.filter">ByteArrayComparable</a> comparator)</code>
-<div class="block">Compare cell's row against given comparator</div>
-</td>
-</tr>
-<tr id="i14" class="altColor">
+<tr id="i3" class="rowColor">
<td class="colFirst"><code>int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareRows-org.apache.hadoop.hbase.Cell-byte:A-int-int-">compareRows</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- byte[] right,
- int roffset,
- int rlength)</code>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareRows-org.apache.hadoop.hbase.Cell-byte:A-int-int-">compareRows</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> cell,
+ byte[] bytes,
+ int offset,
+ int length)</code>
<div class="block">Compares the row part of the cell with a simple plain
byte[] like the
stopRow in Scan.</div>
</td>
</tr>
-<tr id="i15" class="rowColor">
+<tr id="i4" class="altColor">
<td class="colFirst"><code>int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareRows-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareRows</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> right)</code>
-<div class="block">Compares the rows of the left and right cell.</div>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareRows-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareRows</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> leftCell,
+ <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> rightCell)</code>
+<div class="block">Lexographically compares the rows of two cells.</div>
</td>
</tr>
-<tr id="i16" class="altColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareTimestamps-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareTimestamps</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> right)</code>
+<tr id="i5" class="rowColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareTimestamps-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareTimestamps</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> leftCell,
+ <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> rightCell)</code>
<div class="block">Compares cell's timestamps in DESCENDING order.</div>
</td>
</tr>
-<tr id="i17" class="rowColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareTimestamps-long-long-">compareTimestamps</a></span>(long ltimestamp,
- long rtimestamp)</code>
-<div class="block">Compares timestamps in DESCENDING order.</div>
-</td>
-</tr>
-<tr id="i18" class="altColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareValue-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.filter.ByteArrayComparable-">compareValue</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> cell,
- <a
href="../../../../org/apache/hadoop/hbase/filter/ByteArrayComparable.html"
title="class in
org.apache.hadoop.hbase.filter">ByteArrayComparable</a> comparator)</code>
-<div class="block">Compare cell's value against given comparator</div>
+<tr id="i6" class="altColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareTimestamps-long-long-">compareTimestamps</a></span>(long leftCellts,
+ long rightCellts)</code>
+<div class="block">Compares cell's timestamps in DESCENDING order.</div>
</td>
</tr>
-<tr id="i19" class="rowColor">
-<td class="colFirst"><code>private int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareWithoutRow-org.apache.hadoop.hbase.Cell-byte:A-int-int-short-">compareWithoutRow</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- byte[] right,
- int roffset,
- int rlength,
- short rowlength)</code>
-<div class="block">Compare columnFamily, qualifier, timestamp, and key type
(everything
- except the row).</div>
+<tr id="i7" class="rowColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareWithoutRow-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareWithoutRow</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> leftCell,
+ <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> rightCell)</code>
+<div class="block">Lexographically compares the two cells excluding the row
part.</div>
</td>
</tr>
-<tr id="i20" class="altColor">
-<td class="colFirst"><code>static int</code></td>
-<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#compareWithoutRow-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareWithoutRow</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in
org.apache.hadoop.hbase">Cell</a> right)</code> </td>
-</tr>
</table>
<ul class="blockList">
-<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
-<!-- -->
-</a>
-<h3>Methods inherited from class java.lang.<a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a></h3>
-<code><a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--"
title="class or interface in java.lang">clone</a>, <a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-"
title="class or interface in java.lang">equals</a>, <a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--"
title="class or interface in java.lang">finalize</a>, <a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--"
title="class or interface in java.lang">getClass</a>, <a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--"
title="class or interface in java.lang">hashCode</a>, <a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--"
title="class or interface in java.lang">notify</a>, <a
href="http://docs.oracle.com/javase/8/docs/api/java/lang
/Object.html?is-external=true#notifyAll--" title="class or interface in
java.lang">notifyAll</a>, <a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--"
title="class or interface in java.lang">toString</a>, <a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--"
title="class or interface in java.lang">wait</a>, <a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-"
title="class or interface in java.lang">wait</a>, <a
href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-"
title="class or interface in java.lang">wait</a></code></li>
-</ul>
-<ul class="blockList">
<li class="blockList"><a
name="methods.inherited.from.class.java.util.Comparator">
<!-- -->
</a>
@@ -415,75 +208,6 @@ implements <a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparato
<div class="details">
<ul class="blockList">
<li class="blockList">
-<!-- ============ FIELD DETAIL =========== -->
-<ul class="blockList">
-<li class="blockList"><a name="field.detail">
-<!-- -->
-</a>
-<h3>Field Detail</h3>
-<a name="LOG">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>LOG</h4>
-<pre>static final org.apache.commons.logging.Log <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.51">LOG</a></pre>
-</li>
-</ul>
-<a name="serialVersionUID">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>serialVersionUID</h4>
-<pre>private static final long <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.52">serialVersionUID</a></pre>
-<dl>
-<dt><span class="seeLabel">See Also:</span></dt>
-<dd><a
href="../../../../constant-values.html#org.apache.hadoop.hbase.CellComparator.serialVersionUID">Constant
Field Values</a></dd>
-</dl>
-</li>
-</ul>
-<a name="COMPARATOR">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>COMPARATOR</h4>
-<pre>public static final <a
href="../../../../org/apache/hadoop/hbase/CellComparator.html" title="class in
org.apache.hadoop.hbase">CellComparator</a> <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.58">COMPARATOR</a></pre>
-<div class="block">Comparator for plain key/values; i.e. non-catalog table
key/values. Works on Key portion
- of KeyValue only.</div>
-</li>
-</ul>
-<a name="META_COMPARATOR">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>META_COMPARATOR</h4>
-<pre>public static final <a
href="../../../../org/apache/hadoop/hbase/CellComparator.html" title="class in
org.apache.hadoop.hbase">CellComparator</a> <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.63">META_COMPARATOR</a></pre>
-<div class="block">A <a
href="../../../../org/apache/hadoop/hbase/CellComparator.html" title="class in
org.apache.hadoop.hbase"><code>CellComparator</code></a> for
<code>hbase:meta</code> catalog table
- <a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in
org.apache.hadoop.hbase"><code>KeyValue</code></a>s.</div>
-</li>
-</ul>
-</li>
-</ul>
-<!-- ========= CONSTRUCTOR DETAIL ======== -->
-<ul class="blockList">
-<li class="blockList"><a name="constructor.detail">
-<!-- -->
-</a>
-<h3>Constructor Detail</h3>
-<a name="CellComparator--">
-<!-- -->
-</a>
-<ul class="blockListLast">
-<li class="blockList">
-<h4>CellComparator</h4>
-<pre>public <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.50">CellComparator</a>()</pre>
-</li>
-</ul>
-</li>
-</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
@@ -496,195 +220,19 @@ implements <a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparato
<ul class="blockList">
<li class="blockList">
<h4>compare</h4>
-<pre>public int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.66">compare</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> a,
- <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> b)</pre>
+<pre>int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.41">compare</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> leftCell,
+ <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> rightCell)</pre>
+<div class="block">Lexographically compares two cells. The key part of the
cell is taken for comparison which
+ includes row, family, qualifier, timestamp and type</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true#compare-T-T-"
title="class or interface in java.util">compare</a></code> in
interface <code><a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true"
title="class or interface in java.util">Comparator</a><<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a>></code></dd>
-</dl>
-</li>
-</ul>
-<a
name="compareKeyIgnoresMvcc-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareKeyIgnoresMvcc</h4>
-<pre>public final int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.79">compareKeyIgnoresMvcc</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> right)</pre>
-<div class="block">Compares only the key portion of a cell. It does not
include the sequence id/mvcc of the
- cell</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>left</code> - </dd>
-<dd><code>right</code> - </dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>an int greater than 0 if left > than right
- lesser than 0 if left < than right
- equal to 0 if left is equal to right</dd>
-</dl>
-</li>
-</ul>
-<a name="compare-org.apache.hadoop.hbase.Cell-byte:A-int-int-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compare</h4>
-<pre>public final int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.96">compare</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- byte[] key,
- int offset,
- int length)</pre>
-<div class="block">Used when a cell needs to be compared with a key byte[]
such as cases of
- finding the index from the index block, bloom keys from the bloom blocks
- This byte[] is expected to be serialized in the KeyValue serialization format
- If the KeyValue (Cell's) serialization format changes this method cannot be
used.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>left</code> - the cell to be compared</dd>
-<dd><code>key</code> - the serialized key part of a KeyValue</dd>
-<dd><code>offset</code> - the offset in the key byte[]</dd>
-<dd><code>length</code> - the length of the key byte[]</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>an int greater than 0 if left is greater than right
- lesser than 0 if left is lesser than right
- equal to 0 if left is equal to right</dd>
-</dl>
-</li>
-</ul>
-<a
name="compare-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-boolean-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compare</h4>
-<pre>private final int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.116">compare</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> a,
- <a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> b,
- boolean ignoreSequenceid)</pre>
-<div class="block">Compare cells.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>a</code> - </dd>
-<dd><code>b</code> - </dd>
-<dd><code>ignoreSequenceid</code> - True if we are to compare the key portion
only and ignore
- the sequenceid. Set to false to compare key and consider sequenceid.</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>0 if equal, -1 if a < b, and +1 if a > b.</dd>
-</dl>
-</li>
-</ul>
-<a
name="compareColumns-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareColumns</h4>
-<pre>public static final int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.139">compareColumns</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> right)</pre>
-<div class="block">Compares the family and qualifier part of the cell</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>left</code> - the left cell</dd>
-<dd><code>right</code> - the right cell</dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>0 if both cells are equal, 1 if left cell is bigger than right, -1
otherwise</dd>
-</dl>
-</li>
-</ul>
-<a name="compareColumns-org.apache.hadoop.hbase.Cell-byte:A-int-int-int-int-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareColumns</h4>
-<pre>private static final int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.147">compareColumns</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- byte[] right,
- int rfoffset,
- int rflength,
- int rqoffset,
- int rqlength)</pre>
-</li>
-</ul>
-<a
name="compareFamilies-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareFamilies</h4>
-<pre>public static final int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.161">compareFamilies</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> right)</pre>
-<div class="block">Compare the families of left and right cell</div>
-<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>left</code> - </dd>
-<dd><code>right</code> - </dd>
+<dd><code>leftCell</code> - the left hand side cell</dd>
+<dd><code>rightCell</code> - the right hand side cell</dd>
<dt><span class="returnLabel">Returns:</span></dt>
-<dd>0 if both cells are equal, 1 if left cell is bigger than right, -1
otherwise</dd>
-</dl>
-</li>
-</ul>
-<a name="compareFamilies-org.apache.hadoop.hbase.Cell-byte:A-int-int-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareFamilies</h4>
-<pre>private static final int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.187">compareFamilies</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- byte[] right,
- int roffset,
- int rlength)</pre>
-</li>
-</ul>
-<a
name="compareQualifiers-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareQualifiers</h4>
-<pre>public static final int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.203">compareQualifiers</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> right)</pre>
-<div class="block">Compare the qualifiers part of the left and right
cells.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>left</code> - </dd>
-<dd><code>right</code> - </dd>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>0 if both cells are equal, 1 if left cell is bigger than right, -1
otherwise</dd>
-</dl>
-</li>
-</ul>
-<a name="compareQualifiers-org.apache.hadoop.hbase.Cell-byte:A-int-int-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareQualifiers</h4>
-<pre>public static final int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.232">compareQualifiers</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- byte[] right,
- int rOffset,
- int rLength)</pre>
-</li>
-</ul>
-<a name="compareWithoutRow-org.apache.hadoop.hbase.Cell-byte:A-int-int-short-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareWithoutRow</h4>
-<pre>private final int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.252">compareWithoutRow</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- byte[] right,
- int roffset,
- int rlength,
- short rowlength)</pre>
-<div class="block">Compare columnFamily, qualifier, timestamp, and key type
(everything
- except the row). This method is used both in the normal comparator and
- the "same-prefix" comparator. Note that we are assuming that row portions
- of both KVs have already been parsed and found identical, and we don't
- validate that assumption here.</div>
-<dl>
-<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>commonPrefix</code> - the length of the common prefix of the two
key-values being
- compared, including row length and row</dd>
+<dd>greater than 0 if leftCell is bigger, less than 0 if rightCell is bigger,
0 if both
+ cells are equal</dd>
</dl>
</li>
</ul>
@@ -694,17 +242,16 @@ implements <a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparato
<ul class="blockList">
<li class="blockList">
<h4>compareRows</h4>
-<pre>public int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.326">compareRows</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> right)</pre>
-<div class="block">Compares the rows of the left and right cell.
- For the hbase:meta case this method is overridden such that it can handle
hbase:meta cells.
- The caller should ensure using the appropriate comparator for
hbase:meta.</div>
+<pre>int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.50">compareRows</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> leftCell,
+ <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> rightCell)</pre>
+<div class="block">Lexographically compares the rows of two cells.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>left</code> - </dd>
-<dd><code>right</code> - </dd>
+<dd><code>leftCell</code> - the left hand side cell</dd>
+<dd><code>rightCell</code> - the right hand side cell</dd>
<dt><span class="returnLabel">Returns:</span></dt>
-<dd>0 if both cells are equal, 1 if left cell is bigger than right, -1
otherwise</dd>
+<dd>greater than 0 if leftCell is bigger, less than 0 if rightCell is bigger,
0 if both
+ cells are equal</dd>
</dl>
</li>
</ul>
@@ -714,22 +261,21 @@ implements <a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparato
<ul class="blockList">
<li class="blockList">
<h4>compareRows</h4>
-<pre>public int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.371">compareRows</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- byte[] right,
- int roffset,
- int rlength)</pre>
+<pre>int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.62">compareRows</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> cell,
+ byte[] bytes,
+ int offset,
+ int length)</pre>
<div class="block">Compares the row part of the cell with a simple plain
byte[] like the
- stopRow in Scan. This should be used with context where for hbase:meta
- cells the {<a
href="../../../../org/apache/hadoop/hbase/CellComparator.html#META_COMPARATOR"><code>META_COMPARATOR</code></a>
should be used</div>
+ stopRow in Scan.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>left</code> - the cell to be compared</dd>
-<dd><code>right</code> - the kv serialized byte[] to be compared with</dd>
-<dd><code>roffset</code> - the offset in the byte[]</dd>
-<dd><code>rlength</code> - the length in the byte[]</dd>
+<dd><code>cell</code> - the cell</dd>
+<dd><code>bytes</code> - the byte[] representing the row to be compared
with</dd>
+<dd><code>offset</code> - the offset of the byte[]</dd>
+<dd><code>length</code> - the length of the byte[]</dd>
<dt><span class="returnLabel">Returns:</span></dt>
-<dd>0 if both cell and the byte[] are equal, 1 if the cell is bigger
- than byte[], -1 otherwise</dd>
+<dd>greater than 0 if leftCell is bigger, less than 0 if rightCell is bigger,
0 if both
+ cells are equal</dd>
</dl>
</li>
</ul>
@@ -739,159 +285,99 @@ implements <a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparato
<ul class="blockList">
<li class="blockList">
<h4>compareWithoutRow</h4>
-<pre>public static int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.381">compareWithoutRow</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> right)</pre>
-</li>
-</ul>
-<a
name="compareTimestamps-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareTimestamps</h4>
-<pre>public static int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.429">compareTimestamps</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> left,
- <a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> right)</pre>
-<div class="block">Compares cell's timestamps in DESCENDING order.
- The below older timestamps sorting ahead of newer timestamps looks
- wrong but it is intentional. This way, newer timestamps are first
- found when we iterate over a memstore and newer versions are the
- first we trip over when reading from a store file.</div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>1 if left's timestamp < right's timestamp
- -1 if left's timestamp > right's timestamp
- 0 if both timestamps are equal</dd>
-</dl>
-</li>
-</ul>
-<a
name="compareKeyBasedOnColHint-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-int-int-byte:A-int-int-long-byte-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareKeyBasedOnColHint</h4>
-<pre>public final int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.453">compareKeyBasedOnColHint</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> nextIndexedCell,
- <a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> currentCell,
- int foff,
- int flen,
- byte[] colHint,
- int coff,
- int clen,
- long ts,
- byte type)</pre>
-<div class="block">Used to compare two cells based on the column hint
provided. This is specifically
- used when we need to optimize the seeks based on the next indexed key. This
is an
- advanced usage API specifically needed for some optimizations.</div>
+<pre>int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.72">compareWithoutRow</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> leftCell,
+ <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> rightCell)</pre>
+<div class="block">Lexographically compares the two cells excluding the row
part. It compares family, qualifier,
+ timestamp and the type</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>nextIndexedCell</code> - the next indexed cell</dd>
-<dd><code>currentCell</code> - the cell to be compared</dd>
-<dd><code>foff</code> - the family offset of the currentCell</dd>
-<dd><code>flen</code> - the family length of the currentCell</dd>
-<dd><code>colHint</code> - the column hint provided - could be null</dd>
-<dd><code>coff</code> - the offset of the column hint if provided, if not
offset of the currentCell's
- qualifier</dd>
-<dd><code>clen</code> - the length of the column hint if provided, if not
length of the currentCell's
- qualifier</dd>
-<dd><code>ts</code> - the timestamp to be seeked</dd>
-<dd><code>type</code> - the type to be seeked</dd>
+<dd><code>leftCell</code> - the left hand side cell</dd>
+<dd><code>rightCell</code> - the right hand side cell</dd>
<dt><span class="returnLabel">Returns:</span></dt>
-<dd>an int based on the given column hint
- TODO : To be moved out of here because this is a special API used in scan
- optimization.</dd>
+<dd>greater than 0 if leftCell is bigger, less than 0 if rightCell is bigger,
0 if both
+ cells are equal</dd>
</dl>
</li>
</ul>
-<a name="compareTimestamps-long-long-">
-<!-- -->
-</a>
-<ul class="blockList">
-<li class="blockList">
-<h4>compareTimestamps</h4>
-<pre>public static int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.508">compareTimestamps</a>(long ltimestamp,
- long rtimestamp)</pre>
-<div class="block">Compares timestamps in DESCENDING order.
- The below older timestamps sorting ahead of newer timestamps looks
- wrong but it is intentional. This way, newer timestamps are first
- found when we iterate over a memstore and newer versions are the
- first we trip over when reading from a store file.</div>
-<dl>
-<dt><span class="returnLabel">Returns:</span></dt>
-<dd>1 if left timestamp < right timestamp
- -1 if left timestamp > right timestamp
- 0 if both timestamps are equal</dd>
-</dl>
-</li>
-</ul>
-<a
name="compareRow-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.filter.ByteArrayComparable-">
+<a
name="compareFamilies-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
-<h4>compareRow</h4>
-<pre>public static int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.523">compareRow</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> cell,
- <a
href="../../../../org/apache/hadoop/hbase/filter/ByteArrayComparable.html"
title="class in
org.apache.hadoop.hbase.filter">ByteArrayComparable</a> comparator)</pre>
-<div class="block">Compare cell's row against given comparator</div>
+<h4>compareFamilies</h4>
+<pre>int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.81">compareFamilies</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> leftCell,
+ <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> rightCell)</pre>
+<div class="block">Lexographically compares the families of the two cells</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>cell</code> - </dd>
-<dd><code>comparator</code> - </dd>
+<dd><code>leftCell</code> - the left hand side cell</dd>
+<dd><code>rightCell</code> - the right hand side cell</dd>
<dt><span class="returnLabel">Returns:</span></dt>
-<dd>result comparing cell's row</dd>
+<dd>greater than 0 if leftCell is bigger, less than 0 if rightCell is bigger,
0 if both
+ cells are equal</dd>
</dl>
</li>
</ul>
-<a
name="compareFamily-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.filter.ByteArrayComparable-">
+<a
name="compareQualifiers-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
-<h4>compareFamily</h4>
-<pre>public static int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.537">compareFamily</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> cell,
- <a
href="../../../../org/apache/hadoop/hbase/filter/ByteArrayComparable.html"
title="class in
org.apache.hadoop.hbase.filter">ByteArrayComparable</a> comparator)</pre>
-<div class="block">Compare cell's column family against given comparator</div>
+<h4>compareQualifiers</h4>
+<pre>int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.90">compareQualifiers</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> leftCell,
+ <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> rightCell)</pre>
+<div class="block">Lexographically compares the qualifiers of the two
cells</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>cell</code> - </dd>
-<dd><code>comparator</code> - </dd>
+<dd><code>leftCell</code> - the left hand side cell</dd>
+<dd><code>rightCell</code> - the right hand side cell</dd>
<dt><span class="returnLabel">Returns:</span></dt>
-<dd>result comparing cell's column family</dd>
+<dd>greater than 0 if leftCell is bigger, less than 0 if rightCell is bigger,
0 if both
+ cells are equal</dd>
</dl>
</li>
</ul>
-<a
name="compareQualifier-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.filter.ByteArrayComparable-">
+<a
name="compareTimestamps-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
-<h4>compareQualifier</h4>
-<pre>public static int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.552">compareQualifier</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> cell,
- <a
href="../../../../org/apache/hadoop/hbase/filter/ByteArrayComparable.html"
title="class in
org.apache.hadoop.hbase.filter">ByteArrayComparable</a> comparator)</pre>
-<div class="block">Compare cell's qualifier against given comparator</div>
+<h4>compareTimestamps</h4>
+<pre>int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.102">compareTimestamps</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> leftCell,
+ <a href="../../../../org/apache/hadoop/hbase/Cell.html"
title="interface in org.apache.hadoop.hbase">Cell</a> rightCell)</pre>
+<div class="block">Compares cell's timestamps in DESCENDING order. The below
older timestamps sorting ahead of
+ newer timestamps looks wrong but it is intentional. This way, newer
timestamps are first found
+ when we iterate over a memstore and newer versions are the first we trip over
when reading from
+ a store file.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>cell</code> - </dd>
-<dd><code>comparator</code> - </dd>
+<dd><code>leftCell</code> - the left hand side cell</dd>
+<dd><code>rightCell</code> - the right hand side cell</dd>
<dt><span class="returnLabel">Returns:</span></dt>
-<dd>result comparing cell's qualifier</dd>
+<dd>1 if left's timestamp < right's timestamp -1 if left's timestamp >
right's
+ timestamp 0 if both timestamps are equal</dd>
</dl>
</li>
</ul>
-<a
name="compareValue-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.filter.ByteArrayComparable-">
+<a name="compareTimestamps-long-long-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
-<h4>compareValue</h4>
-<pre>public static int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.567">compareValue</a>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> cell,
- <a
href="../../../../org/apache/hadoop/hbase/filter/ByteArrayComparable.html"
title="class in
org.apache.hadoop.hbase.filter">ByteArrayComparable</a> comparator)</pre>
-<div class="block">Compare cell's value against given comparator</div>
+<h4>compareTimestamps</h4>
+<pre>int <a
href="../../../../src-html/org/apache/hadoop/hbase/CellComparator.html#line.114">compareTimestamps</a>(long leftCellts,
+ long rightCellts)</pre>
+<div class="block">Compares cell's timestamps in DESCENDING order. The below
older timestamps sorting ahead of
+ newer timestamps looks wrong but it is intentional. This way, newer
timestamps are first found
+ when we iterate over a memstore and newer versions are the first we trip over
when reading from
+ a store file.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
-<dd><code>cell</code> - </dd>
-<dd><code>comparator</code> - </dd>
+<dd><code>leftCellts</code> - the left cell's timestamp</dd>
+<dd><code>rightCellts</code> - the right cell's timestamp</dd>
<dt><span class="returnLabel">Returns:</span></dt>
-<dd>result comparing cell's value</dd>
+<dd>1 if left's timestamp < right's timestamp -1 if left's timestamp >
right's
+ timestamp 0 if both timestamps are equal</dd>
</dl>
</li>
</ul>
@@ -924,7 +410,7 @@ implements <a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparato
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/hadoop/hbase/CellBuilderType.html"
title="enum in org.apache.hadoop.hbase"><span
class="typeNameLink">Prev Class</span></a></li>
-<li><a
href="../../../../org/apache/hadoop/hbase/CellComparator.MetaCellComparator.html"
title="class in org.apache.hadoop.hbase"><span
class="typeNameLink">Next Class</span></a></li>
+<li><a href="../../../../org/apache/hadoop/hbase/CellComparatorImpl.html"
title="class in org.apache.hadoop.hbase"><span
class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a
href="../../../../index.html?org/apache/hadoop/hbase/CellComparator.html"
target="_top">Frames</a></li>
@@ -948,15 +434,15 @@ implements <a
href="http://docs.oracle.com/javase/8/docs/api/java/util/Comparato
<div>
<ul class="subNavList">
<li>Summary: </li>
-<li><a href="#nested.class.summary">Nested</a> | </li>
-<li><a href="#field.summary">Field</a> | </li>
-<li><a href="#constructor.summary">Constr</a> | </li>
+<li>Nested | </li>
+<li>Field | </li>
+<li>Constr | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
-<li><a href="#field.detail">Field</a> | </li>
-<li><a href="#constructor.detail">Constr</a> | </li>
+<li>Field | </li>
+<li>Constr | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>