http://git-wip-us.apache.org/repos/asf/hbase-site/blob/dbfeb6d6/1.2/apidocs/org/apache/hadoop/hbase/KeyValue.KVComparator.html
----------------------------------------------------------------------
diff --git a/1.2/apidocs/org/apache/hadoop/hbase/KeyValue.KVComparator.html
b/1.2/apidocs/org/apache/hadoop/hbase/KeyValue.KVComparator.html
new file mode 100644
index 0000000..d401c4c
--- /dev/null
+++ b/1.2/apidocs/org/apache/hadoop/hbase/KeyValue.KVComparator.html
@@ -0,0 +1,825 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
+<!-- NewPage -->
+<html lang="en">
+<head>
+<!-- Generated by javadoc (1.8.0_101) on Mon Nov 14 17:17:28 PST 2016 -->
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>KeyValue.KVComparator (Apache HBase 1.2.4 API)</title>
+<meta name="date" content="2016-11-14">
+<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css"
title="Style">
+<script type="text/javascript" src="../../../../script.js"></script>
+</head>
+<body>
+<script type="text/javascript"><!--
+ try {
+ if (location.href.indexOf('is-external=true') == -1) {
+ parent.document.title="KeyValue.KVComparator (Apache HBase 1.2.4
API)";
+ }
+ }
+ catch(err) {
+ }
+//-->
+var methods =
{"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":42,"i18":10,"i19":10,"i20":10};
+var tabs = {65535:["t0","All Methods"],2:["t2","Instance
Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
+var altColor = "altColor";
+var rowColor = "rowColor";
+var tableTab = "tableTab";
+var activeTableTab = "activeTableTab";
+</script>
+<noscript>
+<div>JavaScript is disabled on your browser.</div>
+</noscript>
+<!-- ========= START OF TOP NAVBAR ======= -->
+<div class="topNav"><a name="navbar.top">
+<!-- -->
+</a>
+<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation
links">Skip navigation links</a></div>
+<a name="navbar.top.firstrow">
+<!-- -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="class-use/KeyValue.KVComparator.html">Use</a></li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../../index-all.html">Index</a></li>
+<li><a href="../../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KeyOnlyKeyValue.html"
title="class in org.apache.hadoop.hbase"><span
class="typeNameLink">Prev Class</span></a></li>
+<li><a href="../../../../org/apache/hadoop/hbase/KeyValue.MetaComparator.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/KeyValue.KVComparator.html"
target="_top">Frames</a></li>
+<li><a href="KeyValue.KVComparator.html" target="_top">No Frames</a></li>
+</ul>
+<ul class="navList" id="allclasses_navbar_top">
+<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
+</ul>
+<div>
+<script type="text/javascript"><!--
+ allClassesLink = document.getElementById("allclasses_navbar_top");
+ if(window==top) {
+ allClassesLink.style.display = "block";
+ }
+ else {
+ allClassesLink.style.display = "none";
+ }
+ //-->
+</script>
+</div>
+<div>
+<ul class="subNavList">
+<li>Summary: </li>
+<li>Nested | </li>
+<li>Field | </li>
+<li><a href="#constructor.summary">Constr</a> | </li>
+<li><a href="#method.summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail: </li>
+<li>Field | </li>
+<li><a href="#constructor.detail">Constr</a> | </li>
+<li><a href="#method.detail">Method</a></li>
+</ul>
+</div>
+<a name="skip.navbar.top">
+<!-- -->
+</a></div>
+<!-- ========= END OF TOP NAVBAR ========= -->
+<!-- ======== START OF CLASS DATA ======== -->
+<div class="header">
+<div class="subTitle">org.apache.hadoop.hbase</div>
+<h2 title="Class KeyValue.KVComparator" class="title">Class
KeyValue.KVComparator</h2>
+</div>
+<div class="contentContainer">
+<ul class="inheritance">
+<li><a
href="http://docs.oracle.com/javase/7/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.KeyValue.KVComparator</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/7/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="../../../../org/apache/hadoop/hbase/KeyValue.SamePrefixComparator.html"
title="interface in
org.apache.hadoop.hbase">KeyValue.SamePrefixComparator</a><byte[]>,
org.apache.hadoop.io.RawComparator<<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/KeyValue.MetaComparator.html"
title="class in org.apache.hadoop.hbase">KeyValue.MetaComparator</a>, <a
href="../../../../org/apache/hadoop/hbase/KeyValue.RawBytesComparator.html"
title="class in org.apache.hadoop.hbase">KeyValue.RawBytesComparator</a></dd>
+</dl>
+<dl>
+<dt>Enclosing class:</dt>
+<dd><a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class
in org.apache.hadoop.hbase">KeyValue</a></dd>
+</dl>
+<hr>
+<br>
+<pre>public static class <span
class="typeNameLabel">KeyValue.KVComparator</span>
+extends <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a>
+implements org.apache.hadoop.io.RawComparator<<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a>>, <a
href="../../../../org/apache/hadoop/hbase/KeyValue.SamePrefixComparator.html"
title="interface in
org.apache.hadoop.hbase">KeyValue.SamePrefixComparator</a><byte[]></pre>
+<div class="block">Compare KeyValues. When we compare KeyValues, we only
compare the Key
+ portion. This means two KeyValues with same Key but different Values are
+ considered the same as far as this Comparator is concerned.</div>
+</li>
+</ul>
+</div>
+<div class="summary">
+<ul class="blockList">
+<li class="blockList">
+<!-- ======== 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/KeyValue.KVComparator.html#KVComparator--">KVComparator</a></span>()</code> </td>
+</tr>
+</table>
+</li>
+</ul>
+<!-- ========== METHOD SUMMARY =========== -->
+<ul class="blockList">
+<li class="blockList"><a name="method.summary">
+<!-- -->
+</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="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><span id="t6" class="tableTab"><span><a
href="javascript:show(32);">Deprecated 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>byte[]</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#calcIndexKey-byte:A-byte:A-">calcIndexKey</a></span>(byte[] lastKeyOfPreviousBlock,
+ byte[] firstKeyInBlock)</code> </td>
+</tr>
+<tr id="i1" class="rowColor">
+<td class="colFirst"><code>protected <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#clone--">clone</a></span>()</code> </td>
+</tr>
+<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/KeyValue.KVComparator.html#compare-byte:A-int-int-byte:A-int-int-">compare</a></span>(byte[] l,
+ int loff,
+ int llen,
+ byte[] r,
+ int roff,
+ int rlen)</code> </td>
+</tr>
+<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/KeyValue.KVComparator.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> 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 Key of a cell -- with fields being more
significant in this order:
+ rowkey, colfam/qual, timestamp, type, mvcc</div>
+</td>
+</tr>
+<tr id="i4" class="altColor">
+<td class="colFirst"><code>protected int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#compareColumns-byte:A-int-int-byte:A-int-int-">compareColumns</a></span>(byte[] left,
+ int loffset,
+ int lquallength,
+ byte[] right,
+ int roffset,
+ int rquallength)</code> </td>
+</tr>
+<tr id="i5" class="rowColor">
+<td class="colFirst"><code>protected int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#compareColumns-byte:A-int-int-int-byte:A-int-int-int-">compareColumns</a></span>(byte[] left,
+ int loffset,
+ int llength,
+ int lfamilylength,
+ byte[] right,
+ int roffset,
+ int rlength,
+ int rfamilylength)</code> </td>
+</tr>
+<tr id="i6" class="altColor">
+<td class="colFirst"><code>protected int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#compareFamilies-byte:A-int-int-byte:A-int-int-">compareFamilies</a></span>(byte[] left,
+ int loffset,
+ int lfamilylength,
+ byte[] right,
+ int roffset,
+ int rfamilylength)</code> </td>
+</tr>
+<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/KeyValue.KVComparator.html#compareFlatKey-byte:A-byte:A-">compareFlatKey</a></span>(byte[] left,
+ byte[] right)</code> </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/KeyValue.KVComparator.html#compareFlatKey-byte:A-int-int-byte:A-int-int-">compareFlatKey</a></span>(byte[] left,
+ int loffset,
+ int llength,
+ byte[] right,
+ int roffset,
+ int rlength)</code>
+<div class="block">Compares left to right assuming that left,loffset,llength
and right,roffset,rlength are
+ full KVs laid out in a flat byte[]s.</div>
+</td>
+</tr>
+<tr id="i9" class="rowColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#compareIgnoringPrefix-int-byte:A-int-int-byte:A-int-int-">compareIgnoringPrefix</a></span>(int commonPrefix,
+ byte[] left,
+ int loffset,
+ int llength,
+ byte[] right,
+ int roffset,
+ int rlength)</code>
+<div class="block">Overridden</div>
+</td>
+</tr>
+<tr id="i10" class="altColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#compareKey-org.apache.hadoop.hbase.Cell-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-byte-">compareKey</a></span>(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> cell,
+ byte[] row,
+ int roff,
+ int rlen,
+ byte[] fam,
+ int foff,
+ int flen,
+ byte[] col,
+ int coff,
+ int clen,
+ long ts,
+ byte type)</code> </td>
+</tr>
+<tr id="i11" class="rowColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#compareOnlyKeyPortion-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareOnlyKeyPortion</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>
+<tr id="i12" class="altColor">
+<td class="colFirst"><code>protected int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#compareRowKey-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">compareRowKey</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 only the user specified portion of a Key.</div>
+</td>
+</tr>
+<tr id="i13" class="rowColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#compareRows-byte:A-int-int-byte:A-int-int-">compareRows</a></span>(byte[] left,
+ int loffset,
+ int llength,
+ byte[] right,
+ int roffset,
+ int rlength)</code>
+<div class="block">Get the b[],o,l for left and right rowkey portions and
compare.</div>
+</td>
+</tr>
+<tr id="i14" class="altColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.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> </td>
+</tr>
+<tr id="i15" class="rowColor">
+<td class="colFirst"><code>int</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.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> </td>
+</tr>
+<tr id="i16" class="altColor">
+<td class="colFirst"><code><a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true"
title="class or interface in java.lang">String</a></code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#getLegacyKeyComparatorName--">getLegacyKeyComparatorName</a></span>()</code>
+<div class="block">The HFileV2 file format's trailer contains this class
name.</div>
+</td>
+</tr>
+<tr id="i17" class="rowColor">
+<td class="colFirst"><code>byte[]</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#getShortMidpointKey-byte:A-byte:A-">getShortMidpointKey</a></span>(byte[] leftKey,
+ byte[] rightKey)</code>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span>
+<div class="block"><span class="deprecationComment">Since 0.99.2;</span></div>
+</div>
+</td>
+</tr>
+<tr id="i18" class="altColor">
+<td class="colFirst"><code>boolean</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#matchingRowColumn-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">matchingRowColumn</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 row and column of two keyvalues for
equality</div>
+</td>
+</tr>
+<tr id="i19" class="rowColor">
+<td class="colFirst"><code>boolean</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#matchingRows-byte:A-int-int-byte:A-int-int-">matchingRows</a></span>(byte[] left,
+ int loffset,
+ int llength,
+ byte[] right,
+ int roffset,
+ int rlength)</code>
+<div class="block">Compare rows.</div>
+</td>
+</tr>
+<tr id="i20" class="altColor">
+<td class="colFirst"><code>boolean</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html#matchingRows-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">matchingRows</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 row of two keyvalues for equality</div>
+</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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/docs/api/j
ava/lang/Object.html?is-external=true#toString--" title="class or interface in
java.lang">toString</a>, <a
href="http://docs.oracle.com/javase/7/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/7/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/7/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>
+<h3>Methods inherited from interface java.util.<a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true"
title="class or interface in java.util">Comparator</a></h3>
+<code><a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#comparing-java.util.function.Function-"
title="class or interface in java.util">comparing</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#comparing-java.util.function.Function-java.util.Comparator-"
title="class or interface in java.util">comparing</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#comparingDouble-java.util.function.ToDoubleFunction-"
title="class or interface in java.util">comparingDouble</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#comparingInt-java.util.function.ToIntFunction-"
title="class or interface in java.util">comparingInt</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#comparingLong-java.util.function.ToLongFunction-"
title="class or interface in java.util">comp
aringLong</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#equals-java.lang.Object-"
title="class or interface in java.util">equals</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#naturalOrder--"
title="class or interface in java.util">naturalOrder</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#nullsFirst-java.util.Comparator-"
title="class or interface in java.util">nullsFirst</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#nullsLast-java.util.Comparator-"
title="class or interface in java.util">nullsLast</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#reversed--"
title="class or interface in java.util">reversed</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#reverseOrder--"
title="class
or interface in java.util">reverseOrder</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#thenComparing-java.util.Comparator-"
title="class or interface in java.util">thenComparing</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#thenComparing-java.util.function.Function-"
title="class or interface in java.util">thenComparing</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#thenComparing-java.util.function.Function-java.util.Comparator-"
title="class or interface in java.util">thenComparing</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#thenComparingDouble-java.util.function.ToDoubleFunction-"
title="class or interface in java.util">thenComparingDouble</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#thenComparingInt-java.util.function.ToIn
tFunction-" title="class or interface in java.util">thenComparingInt</a>, <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Comparator.html?is-external=true#thenComparingLong-java.util.function.ToLongFunction-"
title="class or interface in java.util">thenComparingLong</a></code></li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</div>
+<div class="details">
+<ul class="blockList">
+<li class="blockList">
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+<ul class="blockList">
+<li class="blockList"><a name="constructor.detail">
+<!-- -->
+</a>
+<h3>Constructor Detail</h3>
+<a name="KVComparator--">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>KVComparator</h4>
+<pre>public KVComparator()</pre>
+</li>
+</ul>
+</li>
+</ul>
+<!-- ============ METHOD DETAIL ========== -->
+<ul class="blockList">
+<li class="blockList"><a name="method.detail">
+<!-- -->
+</a>
+<h3>Method Detail</h3>
+<a name="getLegacyKeyComparatorName--">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getLegacyKeyComparatorName</h4>
+<pre>public <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true"
title="class or interface in
java.lang">String</a> getLegacyKeyComparatorName()</pre>
+<div class="block">The HFileV2 file format's trailer contains this class name.
We reinterpret this and
+ instantiate the appropriate comparator.
+ TODO: With V3 consider removing this.</div>
+<dl>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>legacy class name for FileFileTrailer#comparatorClassName</dd>
+</dl>
+</li>
+</ul>
+<a name="compare-byte:A-int-int-byte:A-int-int-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compare</h4>
+<pre>public int compare(byte[] l,
+ int loff,
+ int llen,
+ byte[] r,
+ int roff,
+ int rlen)</pre>
+<dl>
+<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
+<dd><code>compare</code> in
interface <code>org.apache.hadoop.io.RawComparator<<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a>></code></dd>
+</dl>
+</li>
+</ul>
+<a
name="compareRowKey-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compareRowKey</h4>
+<pre>protected int compareRowKey(<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 only the user specified portion of a Key.
This is overridden by MetaComparator.</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 equal, <0 if left smaller, >0 if right smaller</dd>
+</dl>
+</li>
+</ul>
+<a name="compareFlatKey-byte:A-int-int-byte:A-int-int-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compareFlatKey</h4>
+<pre>public int compareFlatKey(byte[] left,
+ int loffset,
+ int llength,
+ byte[] right,
+ int roffset,
+ int rlength)</pre>
+<div class="block">Compares left to right assuming that left,loffset,llength
and right,roffset,rlength are
+ full KVs laid out in a flat byte[]s.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>left</code> - </dd>
+<dd><code>loffset</code> - </dd>
+<dd><code>llength</code> - </dd>
+<dd><code>right</code> - </dd>
+<dd><code>roffset</code> - </dd>
+<dd><code>rlength</code> - </dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>0 if equal, <0 if left smaller, >0 if right smaller</dd>
+</dl>
+</li>
+</ul>
+<a name="compareFlatKey-byte:A-byte:A-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compareFlatKey</h4>
+<pre>public int compareFlatKey(byte[] left,
+ byte[] right)</pre>
+</li>
+</ul>
+<a
name="compareKey-org.apache.hadoop.hbase.Cell-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-byte-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compareKey</h4>
+<pre>public int compareKey(<a
href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in
org.apache.hadoop.hbase">Cell</a> cell,
+ byte[] row,
+ int roff,
+ int rlen,
+ byte[] fam,
+ int foff,
+ int flen,
+ byte[] col,
+ int coff,
+ int clen,
+ long ts,
+ byte type)</pre>
+</li>
+</ul>
+<a
name="compareOnlyKeyPortion-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compareOnlyKeyPortion</h4>
+<pre>public int compareOnlyKeyPortion(<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="compare-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compare</h4>
+<pre>public int compare(<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 Key of a cell -- with fields being more
significant in this order:
+ rowkey, colfam/qual, timestamp, type, mvcc</div>
+<dl>
+<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
+<dd><code><a
href="http://docs.oracle.com/javase/7/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/7/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="compareTimestamps-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compareTimestamps</h4>
+<pre>public int compareTimestamps(<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="compareRows-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compareRows</h4>
+<pre>public int compareRows(<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>
+<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>Result comparing rows.</dd>
+</dl>
+</li>
+</ul>
+<a name="compareRows-byte:A-int-int-byte:A-int-int-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compareRows</h4>
+<pre>public int compareRows(byte[] left,
+ int loffset,
+ int llength,
+ byte[] right,
+ int roffset,
+ int rlength)</pre>
+<div class="block">Get the b[],o,l for left and right rowkey portions and
compare.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>left</code> - </dd>
+<dd><code>loffset</code> - </dd>
+<dd><code>llength</code> - </dd>
+<dd><code>right</code> - </dd>
+<dd><code>roffset</code> - </dd>
+<dd><code>rlength</code> - </dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>0 if equal, <0 if left smaller, >0 if right smaller</dd>
+</dl>
+</li>
+</ul>
+<a name="compareColumns-byte:A-int-int-int-byte:A-int-int-int-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compareColumns</h4>
+<pre>protected int compareColumns(byte[] left,
+ int loffset,
+ int llength,
+ int lfamilylength,
+ byte[] right,
+ int roffset,
+ int rlength,
+ int rfamilylength)</pre>
+</li>
+</ul>
+<a name="compareIgnoringPrefix-int-byte:A-int-int-byte:A-int-int-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compareIgnoringPrefix</h4>
+<pre>public int compareIgnoringPrefix(int commonPrefix,
+ byte[] left,
+ int loffset,
+ int llength,
+ byte[] right,
+ int roffset,
+ int rlength)</pre>
+<div class="block">Overridden</div>
+<dl>
+<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
+<dd><code><a
href="../../../../org/apache/hadoop/hbase/KeyValue.SamePrefixComparator.html#compareIgnoringPrefix-int-byte:A-int-int-byte:A-int-int-">compareIgnoringPrefix</a></code> in
interface <code><a
href="../../../../org/apache/hadoop/hbase/KeyValue.SamePrefixComparator.html"
title="interface in
org.apache.hadoop.hbase">KeyValue.SamePrefixComparator</a><byte[]></code></dd>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>commonPrefix</code> - </dd>
+<dd><code>left</code> - </dd>
+<dd><code>loffset</code> - </dd>
+<dd><code>llength</code> - </dd>
+<dd><code>right</code> - </dd>
+<dd><code>roffset</code> - </dd>
+<dd><code>rlength</code> - </dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>0 if equal, <0 if left smaller, >0 if right smaller</dd>
+</dl>
+</li>
+</ul>
+<a name="compareFamilies-byte:A-int-int-byte:A-int-int-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compareFamilies</h4>
+<pre>protected int compareFamilies(byte[] left,
+ int loffset,
+ int lfamilylength,
+ byte[] right,
+ int roffset,
+ int rfamilylength)</pre>
+</li>
+</ul>
+<a name="compareColumns-byte:A-int-int-byte:A-int-int-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>compareColumns</h4>
+<pre>protected int compareColumns(byte[] left,
+ int loffset,
+ int lquallength,
+ byte[] right,
+ int roffset,
+ int rquallength)</pre>
+</li>
+</ul>
+<a
name="matchingRowColumn-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>matchingRowColumn</h4>
+<pre>public boolean matchingRowColumn(<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 row and column of two keyvalues for
equality</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>True if same row and column.</dd>
+</dl>
+</li>
+</ul>
+<a
name="matchingRows-org.apache.hadoop.hbase.Cell-org.apache.hadoop.hbase.Cell-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>matchingRows</h4>
+<pre>public boolean matchingRows(<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 row of two keyvalues for equality</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>True if rows match.</dd>
+</dl>
+</li>
+</ul>
+<a name="matchingRows-byte:A-int-int-byte:A-int-int-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>matchingRows</h4>
+<pre>public boolean matchingRows(byte[] left,
+ int loffset,
+ int llength,
+ byte[] right,
+ int roffset,
+ int rlength)</pre>
+<div class="block">Compare rows. Just calls Bytes.equals, but it's good to
have this encapsulated.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>left</code> - Left row array.</dd>
+<dd><code>loffset</code> - Left row offset.</dd>
+<dd><code>llength</code> - Left row length.</dd>
+<dd><code>right</code> - Right row array.</dd>
+<dd><code>roffset</code> - Right row offset.</dd>
+<dd><code>rlength</code> - Right row length.</dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>Whether rows are the same row.</dd>
+</dl>
+</li>
+</ul>
+<a name="calcIndexKey-byte:A-byte:A-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>calcIndexKey</h4>
+<pre>public byte[] calcIndexKey(byte[] lastKeyOfPreviousBlock,
+ byte[] firstKeyInBlock)</pre>
+</li>
+</ul>
+<a name="getShortMidpointKey-byte:A-byte:A-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>getShortMidpointKey</h4>
+<pre><a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true"
title="class or interface in java.lang">@Deprecated</a>
+public byte[] getShortMidpointKey(byte[] leftKey,
+ byte[] rightKey)</pre>
+<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span
class="deprecationComment">Since 0.99.2;</span></div>
+<div class="block">This is a HFile block index key optimization.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>leftKey</code> - </dd>
+<dd><code>rightKey</code> - </dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dd>0 if equal, <0 if left smaller, >0 if right smaller</dd>
+</dl>
+</li>
+</ul>
+<a name="clone--">
+<!-- -->
+</a>
+<ul class="blockListLast">
+<li class="blockList">
+<h4>clone</h4>
+<pre>protected <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> clone()
+ throws <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/CloneNotSupportedException.html?is-external=true"
title="class or interface in java.lang">CloneNotSupportedException</a></pre>
+<dl>
+<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
+<dd><code><a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--"
title="class or interface in java.lang">clone</a></code> in
class <code><a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a></code></dd>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/CloneNotSupportedException.html?is-external=true"
title="class or interface in
java.lang">CloneNotSupportedException</a></code></dd>
+</dl>
+</li>
+</ul>
+</li>
+</ul>
+</li>
+</ul>
+</div>
+</div>
+<!-- ========= END OF CLASS DATA ========= -->
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<div class="bottomNav"><a name="navbar.bottom">
+<!-- -->
+</a>
+<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation
links">Skip navigation links</a></div>
+<a name="navbar.bottom.firstrow">
+<!-- -->
+</a>
+<ul class="navList" title="Navigation">
+<li><a href="../../../../overview-summary.html">Overview</a></li>
+<li><a href="package-summary.html">Package</a></li>
+<li class="navBarCell1Rev">Class</li>
+<li><a href="class-use/KeyValue.KVComparator.html">Use</a></li>
+<li><a href="package-tree.html">Tree</a></li>
+<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
+<li><a href="../../../../index-all.html">Index</a></li>
+<li><a href="../../../../help-doc.html">Help</a></li>
+</ul>
+</div>
+<div class="subNav">
+<ul class="navList">
+<li><a
href="../../../../org/apache/hadoop/hbase/KeyValue.KeyOnlyKeyValue.html"
title="class in org.apache.hadoop.hbase"><span
class="typeNameLink">Prev Class</span></a></li>
+<li><a href="../../../../org/apache/hadoop/hbase/KeyValue.MetaComparator.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/KeyValue.KVComparator.html"
target="_top">Frames</a></li>
+<li><a href="KeyValue.KVComparator.html" target="_top">No Frames</a></li>
+</ul>
+<ul class="navList" id="allclasses_navbar_bottom">
+<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
+</ul>
+<div>
+<script type="text/javascript"><!--
+ allClassesLink = document.getElementById("allclasses_navbar_bottom");
+ if(window==top) {
+ allClassesLink.style.display = "block";
+ }
+ else {
+ allClassesLink.style.display = "none";
+ }
+ //-->
+</script>
+</div>
+<div>
+<ul class="subNavList">
+<li>Summary: </li>
+<li>Nested | </li>
+<li>Field | </li>
+<li><a href="#constructor.summary">Constr</a> | </li>
+<li><a href="#method.summary">Method</a></li>
+</ul>
+<ul class="subNavList">
+<li>Detail: </li>
+<li>Field | </li>
+<li><a href="#constructor.detail">Constr</a> | </li>
+<li><a href="#method.detail">Method</a></li>
+</ul>
+</div>
+<a name="skip.navbar.bottom">
+<!-- -->
+</a></div>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+<p class="legalCopy"><small>Copyright © 2007–2016 <a
href="http://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</small></p>
+</body>
+</html>