blob: 99a1943872c62269c3dbe528431c94ef0843a185 [file] [log] [blame]
<!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 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>KeyValue (Apache HBase 3.0.0-alpha-2-SNAPSHOT API)</title>
<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 (Apache HBase 3.0.0-alpha-2-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":9,"i2":10,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":10,"i9":10,"i10":10,"i11":10,"i12":9,"i13":9,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":9,"i22":10,"i23":10,"i24":10,"i25":9,"i26":9,"i27":9,"i28":10,"i29":9,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":9,"i59":10,"i60":9,"i61":9,"i62":41,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":9,"i72":10,"i73":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static 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.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/KeepDeletedCells.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/hadoop/hbase/KeyValue.KeyOnlyKeyValue.html" title="class in org.apache.hadoop.hbase"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/hadoop/hbase/KeyValue.html" target="_top">Frames</a></li>
<li><a href="KeyValue.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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" class="title">Class KeyValue</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://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.KeyValue</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a>, <a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>, <a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a>, <a href="../../../../org/apache/hadoop/hbase/io/HeapSize.html" title="interface in org.apache.hadoop.hbase.io">HeapSize</a>, <a href="../../../../org/apache/hadoop/hbase/RawCell.html" title="interface in org.apache.hadoop.hbase">RawCell</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../org/apache/hadoop/hbase/KeyValue.KeyOnlyKeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue.KeyOnlyKeyValue</a>, <a href="../../../../org/apache/hadoop/hbase/NoTagsKeyValue.html" title="class in org.apache.hadoop.hbase">NoTagsKeyValue</a>, <a href="../../../../org/apache/hadoop/hbase/SizeCachedKeyValue.html" title="class in org.apache.hadoop.hbase">SizeCachedKeyValue</a></dd>
</dl>
<hr>
<br>
<pre>@InterfaceAudience.Private
public class <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.78">KeyValue</a>
extends <a href="https://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="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a></pre>
<div class="block">An HBase Key/Value. This is the fundamental HBase Type.
<p>
HBase applications and users should use the Cell interface and avoid directly using KeyValue and
member functions not defined in Cell.
<p>
If being used client-side, the primary methods to access individual fields are
<a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getRowArray--"><code>getRowArray()</code></a>, <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getFamilyArray--"><code>getFamilyArray()</code></a>, <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getQualifierArray--"><code>getQualifierArray()</code></a>,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getTimestamp--"><code>getTimestamp()</code></a>, and <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getValueArray--"><code>getValueArray()</code></a>. These methods allocate new byte arrays
and return copies. Avoid their use server-side.
<p>
Instances of this class are immutable. They do not implement Comparable but Comparators are
provided. Comparators change with context, whether user table or a catalog table comparison. Its
critical you use the appropriate comparator. There are Comparators for normal HFiles, Meta's
Hfiles, and bloom filter keys.
<p>
KeyValue wraps a byte array and takes offsets and lengths into passed array at where to start
interpreting the content as KeyValue. The KeyValue format inside a byte array is:
<code>&lt;keylength&gt; &lt;valuelength&gt; &lt;key&gt; &lt;value&gt;</code> Key is further
decomposed as: <code>&lt;rowlength&gt; &lt;row&gt; &lt;columnfamilylength&gt;
&lt;columnfamily&gt; &lt;columnqualifier&gt;
&lt;timestamp&gt; &lt;keytype&gt;</code> The <code>rowlength</code> maximum is
<code>Short.MAX_SIZE</code>, column family length maximum is <code>Byte.MAX_SIZE</code>, and
column qualifier + key length must be &lt; <code>Integer.MAX_SIZE</code>. The column does not
contain the family/qualifier delimiter, <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#COLUMN_FAMILY_DELIMITER"><code>COLUMN_FAMILY_DELIMITER</code></a><br>
KeyValue can optionally contain Tags. When it contains tags, it is added in the byte array after
the value part. The format for this part is: <code>&lt;tagslength&gt;&lt;tagsbytes&gt;</code>.
<code>tagslength</code> maximum is <code>Short.MAX_SIZE</code>. The <code>tagsbytes</code>
contain one or more tags where as each tag is of the form
<code>&lt;taglength&gt;&lt;tagtype&gt;&lt;tagbytes&gt;</code>. <code>tagtype</code> is one byte
and <code>taglength</code> maximum is <code>Short.MAX_SIZE</code> and it includes 1 byte type
length and actual tag bytes length.</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">&nbsp;</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&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.KeyOnlyKeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue.KeyOnlyKeyValue</a></span></code>
<div class="block">A simple form of KeyValue that creates a keyvalue with only the key part of the byte[]
Mainly used in places where we need to compare two cells.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html" title="class in org.apache.hadoop.hbase">KeyValue.KVComparator</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">: Use <a href="../../../../org/apache/hadoop/hbase/CellComparatorImpl.html" title="class in org.apache.hadoop.hbase"><code>CellComparatorImpl</code></a>. Deprecated for hbase 2.0, remove for hbase 3.0.</span></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.MetaComparator.html" title="class in org.apache.hadoop.hbase">KeyValue.MetaComparator</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">: <a href="../../../../org/apache/hadoop/hbase/MetaCellComparator.html#META_COMPARATOR"><code>MetaCellComparator.META_COMPARATOR</code></a> to be used.
Deprecated for hbase 2.0, remove for hbase 3.0.</span></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.SamePrefixComparator.html" title="interface in org.apache.hadoop.hbase">KeyValue.SamePrefixComparator</a>&lt;<a href="../../../../org/apache/hadoop/hbase/KeyValue.SamePrefixComparator.html" title="type parameter in KeyValue.SamePrefixComparator">T</a>&gt;</span></code>
<div class="block">Avoids redundant comparisons for better performance.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a></span></code>
<div class="block">Key type.</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">&nbsp;</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>protected byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#bytes">bytes</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#COLUMN_FAMILY_DELIM_ARRAY">COLUMN_FAMILY_DELIM_ARRAY</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#COLUMN_FAMILY_DELIMITER">COLUMN_FAMILY_DELIMITER</a></span></code>
<div class="block">Colon character in UTF-8</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html" title="class in org.apache.hadoop.hbase">KeyValue.KVComparator</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#COMPARATOR">COMPARATOR</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">Use <a href="../../../../org/apache/hadoop/hbase/CellComparator.html#getInstance--"><code>CellComparator.getInstance()</code></a> instead. Deprecated for hbase 2.0, remove for hbase 3.0.</span></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#FAMILY_LENGTH_SIZE">FAMILY_LENGTH_SIZE</a></span></code>
<div class="block">Size of the family length field in bytes</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#FIXED_OVERHEAD">FIXED_OVERHEAD</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KEY_INFRASTRUCTURE_SIZE">KEY_INFRASTRUCTURE_SIZE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KEY_LENGTH_SIZE">KEY_LENGTH_SIZE</a></span></code>
<div class="block">Size of the key length field in bytes</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KEYVALUE_INFRASTRUCTURE_SIZE">KEYVALUE_INFRASTRUCTURE_SIZE</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE">KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#length">length</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static org.slf4j.Logger</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#LOG">LOG</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#LOWESTKEY">LOWESTKEY</a></span></code>
<div class="block">Lowest possible key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html" title="class in org.apache.hadoop.hbase">KeyValue.KVComparator</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#META_COMPARATOR">META_COMPARATOR</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">Use <a href="../../../../org/apache/hadoop/hbase/MetaCellComparator.html#META_COMPARATOR"><code>MetaCellComparator.META_COMPARATOR</code></a> instead.
Deprecated for hbase 2.0, remove for hbase 3.0.</span></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#offset">offset</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#ROW_KEY_OFFSET">ROW_KEY_OFFSET</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#ROW_LENGTH_SIZE">ROW_LENGTH_SIZE</a></span></code>
<div class="block">Size of the row length field in bytes</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#ROW_OFFSET">ROW_OFFSET</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#seqId">seqId</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#TAGS_LENGTH_SIZE">TAGS_LENGTH_SIZE</a></span></code>
<div class="block">Size of the tags length field in bytes</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#TIMESTAMP_SIZE">TIMESTAMP_SIZE</a></span></code>
<div class="block">Size of the timestamp field in bytes</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#TIMESTAMP_TYPE_SIZE">TIMESTAMP_TYPE_SIZE</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#TYPE_SIZE">TYPE_SIZE</a></span></code>
<div class="block">Size of the key type field in bytes</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.hadoop.hbase.ExtendedCell">
<!-- -->
</a>
<h3>Fields inherited from interface&nbsp;org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></h3>
<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#CELL_NOT_BASED_ON_CHUNK">CELL_NOT_BASED_ON_CHUNK</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.hadoop.hbase.RawCell">
<!-- -->
</a>
<h3>Fields inherited from interface&nbsp;org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/RawCell.html" title="interface in org.apache.hadoop.hbase">RawCell</a></h3>
<code><a href="../../../../org/apache/hadoop/hbase/RawCell.html#MAX_TAGS_LENGTH">MAX_TAGS_LENGTH</a></code></li>
</ul>
</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">&nbsp;</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.html#KeyValue--">KeyValue</a></span>()</code>
<div class="block">Writable Constructor -- DO NOT USE</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-">KeyValue</a></span>(byte[]&nbsp;bytes)</code>
<div class="block">Creates a KeyValue from the start of the specified byte array.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-byte:A-byte:A-">KeyValue</a></span>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier)</code>
<div class="block">Constructs KeyValue structure filled with null value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-byte:A-byte:A-byte:A-">KeyValue</a></span>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
byte[]&nbsp;value)</code>
<div class="block">Constructs KeyValue structure as a put filled with specified values and
LATEST_TIMESTAMP.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-byte:A-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-byte:A-">KeyValue</a></span>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
byte[]&nbsp;tags)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-byte:A-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-java.util.List-">KeyValue</a></span>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</code>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-byte:A-byte:A-long-byte:A-">KeyValue</a></span>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
byte[]&nbsp;value)</code>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-byte:A-byte:A-long-byte:A-java.util.List-">KeyValue</a></span>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
byte[]&nbsp;value,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</code>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-byte:A-byte:A-long-byte:A-org.apache.hadoop.hbase.Tag:A-">KeyValue</a></span>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
byte[]&nbsp;value,
<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>[]&nbsp;tags)</code>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-byte:A-byte:A-long-org.apache.hadoop.hbase.KeyValue.Type-">KeyValue</a></span>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type)</code>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-byte:A-byte:A-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-">KeyValue</a></span>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value)</code>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-byte:A-byte:A-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-byte:A-">KeyValue</a></span>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
byte[]&nbsp;tags)</code>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-byte:A-byte:A-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-java.util.List-">KeyValue</a></span>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</code>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-int-">KeyValue</a></span>(byte[]&nbsp;bytes,
int&nbsp;offset)</code>
<div class="block">Creates a KeyValue from the specified byte array and offset.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-int-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-org.apache.hadoop.hbase.Tag:A-">KeyValue</a></span>(byte[]&nbsp;buffer,
int&nbsp;boffset,
byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>[]&nbsp;tags)</code>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-int-int-">KeyValue</a></span>(byte[]&nbsp;bytes,
int&nbsp;offset,
int&nbsp;length)</code>
<div class="block">Creates a KeyValue from the specified byte array, starting at offset, and
for length <code>length</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-">KeyValue</a></span>(byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength)</code>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-byte:A-int-int-">KeyValue</a></span>(byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
byte[]&nbsp;tags,
int&nbsp;tagsOffset,
int&nbsp;tagsLength)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-java.util.List-">KeyValue</a></span>(byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</code>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-int-int-byte:A-int-int-java.nio.ByteBuffer-long-org.apache.hadoop.hbase.KeyValue.Type-java.nio.ByteBuffer-java.util.List-">KeyValue</a></span>(byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>&nbsp;qualifier,
long&nbsp;ts,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>&nbsp;value,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-int-int-long-">KeyValue</a></span>(byte[]&nbsp;bytes,
int&nbsp;offset,
int&nbsp;length,
long&nbsp;ts)</code>
<div class="block">Creates a KeyValue from the specified byte array, starting at offset, and
for length <code>length</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-long-">KeyValue</a></span>(byte[]&nbsp;row,
long&nbsp;timestamp)</code>
<div class="block">Constructs KeyValue structure filled with null value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-byte:A-long-org.apache.hadoop.hbase.KeyValue.Type-">KeyValue</a></span>(byte[]&nbsp;row,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type)</code>
<div class="block">Constructs KeyValue structure filled with null value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-org.apache.hadoop.hbase.Cell-">KeyValue</a></span>(<a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;c)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-int-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-int-">KeyValue</a></span>(int&nbsp;rlength,
int&nbsp;flength,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
int&nbsp;vlength)</code>
<div class="block">Constructs an empty KeyValue structure, with specified sizes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#KeyValue-int-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-int-int-">KeyValue</a></span>(int&nbsp;rlength,
int&nbsp;flength,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
int&nbsp;vlength,
int&nbsp;tagsLength)</code>
<div class="block">Constructs an empty KeyValue structure, with specified sizes.</div>
</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">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</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>private int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#calculateHashForKey-org.apache.hadoop.hbase.Cell-">calculateHashForKey</a></span>(<a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>(package private) static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#checkParameters-byte:A-int-byte:A-int-int-int-">checkParameters</a></span>(byte[]&nbsp;row,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;flength,
int&nbsp;qlength,
int&nbsp;vlength)</code>
<div class="block">Checks the parameters passed to a constructor.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#clone--">clone</a></span>()</code>
<div class="block">Clones a KeyValue.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#create-java.io.DataInput-">create</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</a>&nbsp;in)</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#create-int-java.io.DataInput-">create</a></span>(int&nbsp;length,
<a href="https://docs.oracle.com/javase/8/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</a>&nbsp;in)</code>
<div class="block">Create a KeyValue reading <code>length</code> from <code>in</code></div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>private static byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#createByteArray-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-byte:A-int-int-">createByteArray</a></span>(byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
byte[]&nbsp;tags,
int&nbsp;tagsOffset,
int&nbsp;tagsLength)</code>
<div class="block">Write KeyValue format into a byte array.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>private static byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#createByteArray-byte:A-int-int-byte:A-int-int-java.lang.Object-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-java.lang.Object-int-int-java.util.List-">createByteArray</a></span>(byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>private static byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#createEmptyByteArray-int-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-int-int-">createEmptyByteArray</a></span>(int&nbsp;rlength,
int&nbsp;flength,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
int&nbsp;vlength,
int&nbsp;tagsLength)</code>
<div class="block">Create an empty byte[] representing a KeyValue
All lengths are preset and can be filled in later.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#createKeyOnly-boolean-">createKeyOnly</a></span>(boolean&nbsp;lenAsVal)</code>
<div class="block">Creates a new KeyValue that only contains the key portion (the value is
set to be null).</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#deepClone--">deepClone</a></span>()</code>
<div class="block">Does a deep copy of the contents to a new memory area and returns it as a new cell.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#equals-java.lang.Object-">equals</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;other)</code>
<div class="block">Needed doing 'contains' on List.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getBuffer--">getBuffer</a></span>()</code>
<div class="block">To be used only in tests where the Cells are clearly assumed to be of type KeyValue
and that we need access to the backing array to do some test case related assertions.</div>
</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/KeyValue.html#getDelimiter-byte:A-int-int-int-">getDelimiter</a></span>(byte[]&nbsp;b,
int&nbsp;offset,
int&nbsp;length,
int&nbsp;delimiter)</code>&nbsp;</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/KeyValue.html#getDelimiterInReverse-byte:A-int-int-int-">getDelimiterInReverse</a></span>(byte[]&nbsp;b,
int&nbsp;offset,
int&nbsp;length,
int&nbsp;delimiter)</code>
<div class="block">Find index of passed delimiter walking from end of buffer backwards.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getFamilyArray--">getFamilyArray</a></span>()</code>
<div class="block">Contiguous bytes composed of legal HDFS filename characters which may start at any index in the
containing array.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getFamilyLength--">getFamilyLength</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getFamilyLength-int-">getFamilyLength</a></span>(int&nbsp;famLenPos)</code>&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>(package private) int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getFamilyLengthPosition-int-">getFamilyLengthPosition</a></span>(int&nbsp;rowLength)</code>&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getFamilyOffset--">getFamilyOffset</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>(package private) int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getFamilyOffset-int-">getFamilyOffset</a></span>(int&nbsp;familyLenPosition)</code>&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getKey--">getKey</a></span>()</code>
<div class="block">Do not use unless you have to.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getKeyDataStructureSize-int-int-int-">getKeyDataStructureSize</a></span>(int&nbsp;rlength,
int&nbsp;flength,
int&nbsp;qlength)</code>
<div class="block">Computes the number of bytes that a <code>KeyValue</code> instance with the provided
characteristics would take up in its underlying data structure for the key.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getKeyLength--">getKeyLength</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getKeyOffset--">getKeyOffset</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/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.html#getKeyString--">getKeyString</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getKeyValueDataStructureSize-int-int-int-">getKeyValueDataStructureSize</a></span>(int&nbsp;klength,
int&nbsp;vlength,
int&nbsp;tagsLength)</code>
<div class="block">Computes the number of bytes that a <code>KeyValue</code> instance with the provided
characteristics would take up for its underlying data structure.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getKeyValueDataStructureSize-int-int-int-int-">getKeyValueDataStructureSize</a></span>(int&nbsp;rlength,
int&nbsp;flength,
int&nbsp;qlength,
int&nbsp;vlength)</code>
<div class="block">Computes the number of bytes that a <code>KeyValue</code> instance with the provided
characteristics would take up for its underlying data structure.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getKeyValueDataStructureSize-int-int-int-int-int-">getKeyValueDataStructureSize</a></span>(int&nbsp;rlength,
int&nbsp;flength,
int&nbsp;qlength,
int&nbsp;vlength,
int&nbsp;tagsLength)</code>
<div class="block">Computes the number of bytes that a <code>KeyValue</code> instance with the provided
characteristics would take up for its underlying data structure.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getLength--">getLength</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>private static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getLength-byte:A-int-">getLength</a></span>(byte[]&nbsp;bytes,
int&nbsp;offset)</code>
<div class="block">Determines the total length of the KeyValue stored in the specified
byte array and offset.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getOffset--">getOffset</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getQualifierArray--">getQualifierArray</a></span>()</code>
<div class="block">Contiguous raw bytes that may start at any index in the containing array.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getQualifierLength--">getQualifierLength</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>private int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getQualifierLength-int-int-">getQualifierLength</a></span>(int&nbsp;rlength,
int&nbsp;flength)</code>&nbsp;</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>(package private) int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getQualifierLength-int-int-int-">getQualifierLength</a></span>(int&nbsp;keyLength,
int&nbsp;rlength,
int&nbsp;flength)</code>&nbsp;</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getQualifierOffset--">getQualifierOffset</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>private int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getQualifierOffset-int-">getQualifierOffset</a></span>(int&nbsp;foffset)</code>&nbsp;</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>(package private) int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getQualifierOffset-int-int-">getQualifierOffset</a></span>(int&nbsp;foffset,
int&nbsp;flength)</code>&nbsp;</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getRowArray--">getRowArray</a></span>()</code>
<div class="block">Contiguous raw bytes that may start at any index in the containing array.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getRowLength--">getRowLength</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getRowOffset--">getRowOffset</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getSequenceId--">getSequenceId</a></span>()</code>
<div class="block">used to achieve atomic operations in the memstore.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getSerializedSize--">getSerializedSize</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getSerializedSize-boolean-">getSerializedSize</a></span>(boolean&nbsp;withTags)</code>&nbsp;</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getTagsArray--">getTagsArray</a></span>()</code>
<div class="block">Contiguous raw bytes representing tags that may start at any index in the containing array.</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getTagsLength--">getTagsLength</a></span>()</code>
<div class="block">This returns the total length of the tag bytes</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getTagsOffset--">getTagsOffset</a></span>()</code>
<div class="block">This returns the offset where the tag actually starts.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getTimestamp--">getTimestamp</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code>(package private) long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getTimestamp-int-">getTimestamp</a></span>(int&nbsp;keylength)</code>&nbsp;</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getTimestampOffset--">getTimestampOffset</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code>private int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getTimestampOffset-int-">getTimestampOffset</a></span>(int&nbsp;keylength)</code>&nbsp;</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getTypeByte--">getTypeByte</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code>(package private) byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getTypeByte-int-">getTypeByte</a></span>(int&nbsp;keyLength)</code>&nbsp;</td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getValueArray--">getValueArray</a></span>()</code>
<div class="block">Contiguous raw bytes that may start at any index in the containing array.</div>
</td>
</tr>
<tr id="i54" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getValueLength--">getValueLength</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getValueOffset--">getValueOffset</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#hashCode--">hashCode</a></span>()</code>
<div class="block">In line with <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#equals-java.lang.Object-"><code>equals(Object)</code></a>, only uses the key portion, not the value.</div>
</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#heapSize--">heapSize</a></span>()</code>
<div class="block">HeapSize implementation
We do not count the bytes in the rowCache because it should be empty for a KeyValue in the
MemStore.</div>
</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/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.html#humanReadableTimestamp-long-">humanReadableTimestamp</a></span>(long&nbsp;timestamp)</code>&nbsp;</td>
</tr>
<tr id="i59" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#isLatestTimestamp--">isLatestTimestamp</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i60" class="altColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/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.html#keyToString-byte:A-">keyToString</a></span>(byte[]&nbsp;k)</code>&nbsp;</td>
</tr>
<tr id="i61" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/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.html#keyToString-byte:A-int-int-">keyToString</a></span>(byte[]&nbsp;b,
int&nbsp;o,
int&nbsp;l)</code>
<div class="block">Use for logging.</div>
</td>
</tr>
<tr id="i62" class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#oswrite-org.apache.hadoop.hbase.KeyValue-java.io.OutputStream-boolean-">oswrite</a></span>(<a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a>&nbsp;kv,
<a href="https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;out,
boolean&nbsp;withTags)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">As of release 2.0.0, this will be removed in HBase 3.0.0.
Instead use <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#write-java.io.OutputStream-boolean-"><code>write(OutputStream, boolean)</code></a></span></div>
</div>
</td>
</tr>
<tr id="i63" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#setSequenceId-long-">setSequenceId</a></span>(long&nbsp;seqId)</code>
<div class="block">Sets with the given seqId.</div>
</td>
</tr>
<tr id="i64" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#setTimestamp-byte:A-">setTimestamp</a></span>(byte[]&nbsp;ts)</code>
<div class="block">Sets with the given timestamp.</div>
</td>
</tr>
<tr id="i65" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#setTimestamp-long-">setTimestamp</a></span>(long&nbsp;ts)</code>
<div class="block">Sets with the given timestamp.</div>
</td>
</tr>
<tr id="i66" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#shallowCopy--">shallowCopy</a></span>()</code>
<div class="block">Creates a shallow copy of this KeyValue, reusing the data byte buffer.</div>
</td>
</tr>
<tr id="i67" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/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.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i68" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#toStringMap--">toStringMap</a></span>()</code>
<div class="block">Produces a string map for this key/value pair.</div>
</td>
</tr>
<tr id="i69" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#updateLatestStamp-byte:A-">updateLatestStamp</a></span>(byte[]&nbsp;now)</code>&nbsp;</td>
</tr>
<tr id="i70" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#write-java.nio.ByteBuffer-int-">write</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>&nbsp;buf,
int&nbsp;offset)</code>
<div class="block">Write this Cell into the given buf's offset in a <a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase"><code>KeyValue</code></a> format.</div>
</td>
</tr>
<tr id="i71" class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#write-org.apache.hadoop.hbase.KeyValue-java.io.DataOutput-">write</a></span>(<a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a>&nbsp;kv,
<a href="https://docs.oracle.com/javase/8/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</a>&nbsp;out)</code>
<div class="block">Write out a KeyValue in the manner in which we used to when KeyValue was a Writable.</div>
</td>
</tr>
<tr id="i72" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#write-java.io.OutputStream-boolean-">write</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;out,
boolean&nbsp;withTags)</code>
<div class="block">Write this cell to an OutputStream in a <a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase"><code>KeyValue</code></a> format.</div>
</td>
</tr>
<tr id="i73" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#writeByteArray-byte:A-int-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-org.apache.hadoop.hbase.Tag:A-">writeByteArray</a></span>(byte[]&nbsp;buffer,
int&nbsp;boffset,
byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>[]&nbsp;tags)</code>
<div class="block">Write KeyValue format into the provided byte array.</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&nbsp;java.lang.<a href="https://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="https://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="https://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="https://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="https://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="https://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="https://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="https://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.org.apache.hadoop.hbase.ExtendedCell">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></h3>
<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#getChunkId--">getChunkId</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.hadoop.hbase.RawCell">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/RawCell.html" title="interface in org.apache.hadoop.hbase">RawCell</a></h3>
<code><a href="../../../../org/apache/hadoop/hbase/RawCell.html#checkForTagsLength-int-">checkForTagsLength</a>, <a href="../../../../org/apache/hadoop/hbase/RawCell.html#cloneTags--">cloneTags</a>, <a href="../../../../org/apache/hadoop/hbase/RawCell.html#createCell-org.apache.hadoop.hbase.Cell-java.util.List-">createCell</a>, <a href="../../../../org/apache/hadoop/hbase/RawCell.html#getTag-byte-">getTag</a>, <a href="../../../../org/apache/hadoop/hbase/RawCell.html#getTags--">getTags</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.hadoop.hbase.Cell">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.hadoop.hbase.<a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></h3>
<code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getType--">getType</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<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>private static final&nbsp;org.slf4j.Logger <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.79">LOG</a></pre>
</li>
</ul>
<a name="FIXED_OVERHEAD">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FIXED_OVERHEAD</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.81">FIXED_OVERHEAD</a></pre>
</li>
</ul>
<a name="COLUMN_FAMILY_DELIMITER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COLUMN_FAMILY_DELIMITER</h4>
<pre>public static final&nbsp;char <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.89">COLUMN_FAMILY_DELIMITER</a></pre>
<div class="block">Colon character in UTF-8</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.COLUMN_FAMILY_DELIMITER">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="COLUMN_FAMILY_DELIM_ARRAY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COLUMN_FAMILY_DELIM_ARRAY</h4>
<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.91">COLUMN_FAMILY_DELIM_ARRAY</a></pre>
</li>
</ul>
<a name="COMPARATOR">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMPARATOR</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static final&nbsp;<a href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html" title="class in org.apache.hadoop.hbase">KeyValue.KVComparator</a> <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.100">COMPARATOR</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">Use <a href="../../../../org/apache/hadoop/hbase/CellComparator.html#getInstance--"><code>CellComparator.getInstance()</code></a> instead. Deprecated for hbase 2.0, remove for hbase 3.0.</span></div>
<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="blockList">
<li class="blockList">
<h4>META_COMPARATOR</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static final&nbsp;<a href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html" title="class in org.apache.hadoop.hbase">KeyValue.KVComparator</a> <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.108">META_COMPARATOR</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">Use <a href="../../../../org/apache/hadoop/hbase/MetaCellComparator.html#META_COMPARATOR"><code>MetaCellComparator.META_COMPARATOR</code></a> instead.
Deprecated for hbase 2.0, remove for hbase 3.0.</span></div>
<div class="block">A <a href="../../../../org/apache/hadoop/hbase/KeyValue.KVComparator.html" title="class in org.apache.hadoop.hbase"><code>KeyValue.KVComparator</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>
<a name="KEY_LENGTH_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KEY_LENGTH_SIZE</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.111">KEY_LENGTH_SIZE</a></pre>
<div class="block">Size of the key length field in bytes</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.KEY_LENGTH_SIZE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="TYPE_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TYPE_SIZE</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.114">TYPE_SIZE</a></pre>
<div class="block">Size of the key type field in bytes</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.TYPE_SIZE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ROW_LENGTH_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ROW_LENGTH_SIZE</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.117">ROW_LENGTH_SIZE</a></pre>
<div class="block">Size of the row length field in bytes</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.ROW_LENGTH_SIZE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="FAMILY_LENGTH_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FAMILY_LENGTH_SIZE</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.120">FAMILY_LENGTH_SIZE</a></pre>
<div class="block">Size of the family length field in bytes</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.FAMILY_LENGTH_SIZE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="TIMESTAMP_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TIMESTAMP_SIZE</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.123">TIMESTAMP_SIZE</a></pre>
<div class="block">Size of the timestamp field in bytes</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.TIMESTAMP_SIZE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="TIMESTAMP_TYPE_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TIMESTAMP_TYPE_SIZE</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.126">TIMESTAMP_TYPE_SIZE</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.TIMESTAMP_TYPE_SIZE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="KEY_INFRASTRUCTURE_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KEY_INFRASTRUCTURE_SIZE</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.129">KEY_INFRASTRUCTURE_SIZE</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.KEY_INFRASTRUCTURE_SIZE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ROW_OFFSET">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ROW_OFFSET</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.134">ROW_OFFSET</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.ROW_OFFSET">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ROW_KEY_OFFSET">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ROW_KEY_OFFSET</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.138">ROW_KEY_OFFSET</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.ROW_KEY_OFFSET">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="KEYVALUE_INFRASTRUCTURE_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KEYVALUE_INFRASTRUCTURE_SIZE</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.141">KEYVALUE_INFRASTRUCTURE_SIZE</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.KEYVALUE_INFRASTRUCTURE_SIZE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="TAGS_LENGTH_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TAGS_LENGTH_SIZE</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.144">TAGS_LENGTH_SIZE</a></pre>
<div class="block">Size of the tags length field in bytes</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.TAGS_LENGTH_SIZE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.146">KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.KeyValue.KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="LOWESTKEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOWESTKEY</h4>
<pre>public static final&nbsp;<a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a> <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.281">LOWESTKEY</a></pre>
<div class="block">Lowest possible key.
Makes a Key with highest possible Timestamp, empty row and column. No
key can be equal or lower than this one in memstore or in store file.</div>
</li>
</ul>
<a name="bytes">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bytes</h4>
<pre>protected&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.286">bytes</a></pre>
</li>
</ul>
<a name="offset">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>offset</h4>
<pre>protected&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.287">offset</a></pre>
</li>
</ul>
<a name="length">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>length</h4>
<pre>protected&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.288">length</a></pre>
</li>
</ul>
<a name="seqId">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>seqId</h4>
<pre>private&nbsp;long <a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.306">seqId</a></pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="KeyValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.312">KeyValue</a>()</pre>
<div class="block">Writable Constructor -- DO NOT USE</div>
</li>
</ul>
<a name="KeyValue-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.319">KeyValue</a>(byte[]&nbsp;bytes)</pre>
<div class="block">Creates a KeyValue from the start of the specified byte array.
Presumes <code>bytes</code> content is formatted as a KeyValue blob.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bytes</code> - byte array</dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.330">KeyValue</a>(byte[]&nbsp;bytes,
int&nbsp;offset)</pre>
<div class="block">Creates a KeyValue from the specified byte array and offset.
Presumes <code>bytes</code> content starting at <code>offset</code> is
formatted as a KeyValue blob.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bytes</code> - byte array</dd>
<dd><code>offset</code> - offset to start of KeyValue</dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.341">KeyValue</a>(byte[]&nbsp;bytes,
int&nbsp;offset,
int&nbsp;length)</pre>
<div class="block">Creates a KeyValue from the specified byte array, starting at offset, and
for length <code>length</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bytes</code> - byte array</dd>
<dd><code>offset</code> - offset to start of the KeyValue</dd>
<dd><code>length</code> - length of the KeyValue</dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-int-int-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.357">KeyValue</a>(byte[]&nbsp;bytes,
int&nbsp;offset,
int&nbsp;length,
long&nbsp;ts)</pre>
<div class="block">Creates a KeyValue from the specified byte array, starting at offset, and
for length <code>length</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bytes</code> - byte array</dd>
<dd><code>offset</code> - offset to start of the KeyValue</dd>
<dd><code>length</code> - length of the KeyValue</dd>
<dd><code>ts</code> - </dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.369">KeyValue</a>(byte[]&nbsp;row,
long&nbsp;timestamp)</pre>
<div class="block">Constructs KeyValue structure filled with null value.
Sets type to <a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html#Maximum"><code>KeyValue.Type.Maximum</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - - row key (arbitrary byte array)</dd>
<dd><code>timestamp</code> - </dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-long-org.apache.hadoop.hbase.KeyValue.Type-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.378">KeyValue</a>(byte[]&nbsp;row,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type)</pre>
<div class="block">Constructs KeyValue structure filled with null value.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - - row key (arbitrary byte array)</dd>
<dd><code>timestamp</code> - </dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-byte:A-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.389">KeyValue</a>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier)</pre>
<div class="block">Constructs KeyValue structure filled with null value.
Sets type to <a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html#Maximum"><code>KeyValue.Type.Maximum</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - - row key (arbitrary byte array)</dd>
<dd><code>family</code> - family name</dd>
<dd><code>qualifier</code> - column qualifier</dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-byte:A-byte:A-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.401">KeyValue</a>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
byte[]&nbsp;value)</pre>
<div class="block">Constructs KeyValue structure as a put filled with specified values and
LATEST_TIMESTAMP.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - - row key (arbitrary byte array)</dd>
<dd><code>family</code> - family name</dd>
<dd><code>qualifier</code> - column qualifier</dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-byte:A-byte:A-long-org.apache.hadoop.hbase.KeyValue.Type-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.415">KeyValue</a>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type)</pre>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - row key</dd>
<dd><code>family</code> - family name</dd>
<dd><code>qualifier</code> - column qualifier</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>type</code> - key type</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-byte:A-byte:A-long-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.429">KeyValue</a>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
byte[]&nbsp;value)</pre>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - row key</dd>
<dd><code>family</code> - family name</dd>
<dd><code>qualifier</code> - column qualifier</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>value</code> - column value</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-byte:A-byte:A-long-byte:A-org.apache.hadoop.hbase.Tag:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.444">KeyValue</a>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
byte[]&nbsp;value,
<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>[]&nbsp;tags)</pre>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - row key</dd>
<dd><code>family</code> - family name</dd>
<dd><code>qualifier</code> - column qualifier</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>value</code> - column value</dd>
<dd><code>tags</code> - tags</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-byte:A-byte:A-long-byte:A-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.460">KeyValue</a>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
byte[]&nbsp;value,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</pre>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - row key</dd>
<dd><code>family</code> - family name</dd>
<dd><code>qualifier</code> - column qualifier</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>value</code> - column value</dd>
<dd><code>tags</code> - tags non-empty list of tags or null</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-byte:A-byte:A-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.480">KeyValue</a>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value)</pre>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - row key</dd>
<dd><code>family</code> - family name</dd>
<dd><code>qualifier</code> - column qualifier</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>type</code> - key type</dd>
<dd><code>value</code> - column value</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-byte:A-byte:A-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.499">KeyValue</a>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</pre>
<div class="block">Constructs KeyValue structure filled with specified values.
<p>
Column is split into two fields, family and qualifier.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - row key</dd>
<dd><code>family</code> - family name</dd>
<dd><code>qualifier</code> - column qualifier</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>type</code> - key type</dd>
<dd><code>value</code> - column value</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-byte:A-byte:A-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.516">KeyValue</a>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
byte[]&nbsp;tags)</pre>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - row key</dd>
<dd><code>family</code> - family name</dd>
<dd><code>qualifier</code> - column qualifier</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>type</code> - key type</dd>
<dd><code>value</code> - column value</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-byte:A-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.537">KeyValue</a>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</pre>
<div class="block">Constructs KeyValue structure filled with specified values.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - row key</dd>
<dd><code>family</code> - family name</dd>
<dd><code>qualifier</code> - column qualifier</dd>
<dd><code>qoffset</code> - qualifier offset</dd>
<dd><code>qlength</code> - qualifier length</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>type</code> - key type</dd>
<dd><code>value</code> - column value</dd>
<dd><code>voffset</code> - value offset</dd>
<dd><code>vlength</code> - value length</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-byte:A-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.559">KeyValue</a>(byte[]&nbsp;row,
byte[]&nbsp;family,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
byte[]&nbsp;tags)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - </dd>
<dd><code>family</code> - </dd>
<dd><code>qualifier</code> - </dd>
<dd><code>qoffset</code> - </dd>
<dd><code>qlength</code> - </dd>
<dd><code>timestamp</code> - </dd>
<dd><code>type</code> - </dd>
<dd><code>value</code> - </dd>
<dd><code>voffset</code> - </dd>
<dd><code>vlength</code> - </dd>
<dd><code>tags</code> - </dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.575">KeyValue</a>(byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength)</pre>
<div class="block">Constructs KeyValue structure filled with specified values.
<p>
Column is split into two fields, family and qualifier.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - row key</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-int-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-org.apache.hadoop.hbase.Tag:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.610">KeyValue</a>(byte[]&nbsp;buffer,
int&nbsp;boffset,
byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>[]&nbsp;tags)</pre>
<div class="block">Constructs KeyValue structure filled with specified values. Uses the provided buffer as the
data buffer.
<p>
Column is split into two fields, family and qualifier.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>buffer</code> - the bytes buffer to use</dd>
<dd><code>boffset</code> - buffer offset</dd>
<dd><code>row</code> - row key</dd>
<dd><code>roffset</code> - row offset</dd>
<dd><code>rlength</code> - row length</dd>
<dd><code>family</code> - family name</dd>
<dd><code>foffset</code> - family offset</dd>
<dd><code>flength</code> - family length</dd>
<dd><code>qualifier</code> - column qualifier</dd>
<dd><code>qoffset</code> - qualifier offset</dd>
<dd><code>qlength</code> - qualifier length</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>type</code> - key type</dd>
<dd><code>value</code> - column value</dd>
<dd><code>voffset</code> - value offset</dd>
<dd><code>vlength</code> - value length</dd>
<dd><code>tags</code> - non-empty list of tags or null</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - an illegal value was passed or there is insufficient space
remaining in the buffer</dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.646">KeyValue</a>(byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</pre>
<div class="block">Constructs KeyValue structure filled with specified values.
<p>
Column is split into two fields, family and qualifier.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - row key</dd>
<dd><code>roffset</code> - row offset</dd>
<dd><code>rlength</code> - row length</dd>
<dd><code>family</code> - family name</dd>
<dd><code>foffset</code> - family offset</dd>
<dd><code>flength</code> - family length</dd>
<dd><code>qualifier</code> - column qualifier</dd>
<dd><code>qoffset</code> - qualifier offset</dd>
<dd><code>qlength</code> - qualifier length</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>type</code> - key type</dd>
<dd><code>value</code> - column value</dd>
<dd><code>voffset</code> - value offset</dd>
<dd><code>vlength</code> - value length</dd>
<dd><code>tags</code> - tags</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.676">KeyValue</a>(byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
byte[]&nbsp;tags,
int&nbsp;tagsOffset,
int&nbsp;tagsLength)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - </dd>
<dd><code>roffset</code> - </dd>
<dd><code>rlength</code> - </dd>
<dd><code>family</code> - </dd>
<dd><code>foffset</code> - </dd>
<dd><code>flength</code> - </dd>
<dd><code>qualifier</code> - </dd>
<dd><code>qoffset</code> - </dd>
<dd><code>qlength</code> - </dd>
<dd><code>timestamp</code> - </dd>
<dd><code>type</code> - </dd>
<dd><code>value</code> - </dd>
<dd><code>voffset</code> - </dd>
<dd><code>vlength</code> - </dd>
<dd><code>tags</code> - </dd>
</dl>
</li>
</ul>
<a name="KeyValue-int-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.702">KeyValue</a>(int&nbsp;rlength,
int&nbsp;flength,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
int&nbsp;vlength)</pre>
<div class="block">Constructs an empty KeyValue structure, with specified sizes.
This can be used to partially fill up KeyValues.
<p>
Column is split into two fields, family and qualifier.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rlength</code> - row length</dd>
<dd><code>flength</code> - family length</dd>
<dd><code>qlength</code> - qualifier length</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>type</code> - key type</dd>
<dd><code>vlength</code> - value length</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="KeyValue-int-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.724">KeyValue</a>(int&nbsp;rlength,
int&nbsp;flength,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
int&nbsp;vlength,
int&nbsp;tagsLength)</pre>
<div class="block">Constructs an empty KeyValue structure, with specified sizes.
This can be used to partially fill up KeyValues.
<p>
Column is split into two fields, family and qualifier.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rlength</code> - row length</dd>
<dd><code>flength</code> - family length</dd>
<dd><code>qlength</code> - qualifier length</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>type</code> - key type</dd>
<dd><code>vlength</code> - value length</dd>
<dd><code>tagsLength</code> - </dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="KeyValue-byte:A-int-int-byte:A-int-int-java.nio.ByteBuffer-long-org.apache.hadoop.hbase.KeyValue.Type-java.nio.ByteBuffer-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.736">KeyValue</a>(byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>&nbsp;qualifier,
long&nbsp;ts,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>&nbsp;value,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</pre>
</li>
</ul>
<a name="KeyValue-org.apache.hadoop.hbase.Cell-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>KeyValue</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.746">KeyValue</a>(<a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;c)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getKeyValueDataStructureSize-int-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKeyValueDataStructureSize</h4>
<pre>public static&nbsp;long&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.159">getKeyValueDataStructureSize</a>(int&nbsp;rlength,
int&nbsp;flength,
int&nbsp;qlength,
int&nbsp;vlength)</pre>
<div class="block">Computes the number of bytes that a <code>KeyValue</code> instance with the provided
characteristics would take up for its underlying data structure.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rlength</code> - row length</dd>
<dd><code>flength</code> - family length</dd>
<dd><code>qlength</code> - qualifier length</dd>
<dd><code>vlength</code> - value length</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>KeyValue</code> data structure length</dd>
</dl>
</li>
</ul>
<a name="getKeyValueDataStructureSize-int-int-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKeyValueDataStructureSize</h4>
<pre>public static&nbsp;long&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.177">getKeyValueDataStructureSize</a>(int&nbsp;rlength,
int&nbsp;flength,
int&nbsp;qlength,
int&nbsp;vlength,
int&nbsp;tagsLength)</pre>
<div class="block">Computes the number of bytes that a <code>KeyValue</code> instance with the provided
characteristics would take up for its underlying data structure.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rlength</code> - row length</dd>
<dd><code>flength</code> - family length</dd>
<dd><code>qlength</code> - qualifier length</dd>
<dd><code>vlength</code> - value length</dd>
<dd><code>tagsLength</code> - total length of the tags</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>KeyValue</code> data structure length</dd>
</dl>
</li>
</ul>
<a name="getKeyValueDataStructureSize-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKeyValueDataStructureSize</h4>
<pre>public static&nbsp;long&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.196">getKeyValueDataStructureSize</a>(int&nbsp;klength,
int&nbsp;vlength,
int&nbsp;tagsLength)</pre>
<div class="block">Computes the number of bytes that a <code>KeyValue</code> instance with the provided
characteristics would take up for its underlying data structure.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>klength</code> - key length</dd>
<dd><code>vlength</code> - value length</dd>
<dd><code>tagsLength</code> - total length of the tags</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>KeyValue</code> data structure length</dd>
</dl>
</li>
</ul>
<a name="getKeyDataStructureSize-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKeyDataStructureSize</h4>
<pre>public static&nbsp;long&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.213">getKeyDataStructureSize</a>(int&nbsp;rlength,
int&nbsp;flength,
int&nbsp;qlength)</pre>
<div class="block">Computes the number of bytes that a <code>KeyValue</code> instance with the provided
characteristics would take up in its underlying data structure for the key.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rlength</code> - row length</dd>
<dd><code>flength</code> - family length</dd>
<dd><code>qlength</code> - qualifier length</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the key data structure length</dd>
</dl>
</li>
</ul>
<a name="getSequenceId--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSequenceId</h4>
<pre>public&nbsp;long&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.296">getSequenceId</a>()</pre>
<div class="block">used to achieve atomic operations in the memstore.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getSequenceId--">getSequenceId</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#getSequenceId--">getSequenceId</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>seqId (always &gt; 0 if exists), or 0 if it no longer exists</dd>
</dl>
</li>
</ul>
<a name="setSequenceId-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSequenceId</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.301">setSequenceId</a>(long&nbsp;seqId)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#setSequenceId-long-">ExtendedCell</a></code></span></div>
<div class="block">Sets with the given seqId.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#setSequenceId-long-">setSequenceId</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>seqId</code> - sequence ID</dd>
</dl>
</li>
</ul>
<a name="createEmptyByteArray-int-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createEmptyByteArray</h4>
<pre>private static&nbsp;byte[]&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.766">createEmptyByteArray</a>(int&nbsp;rlength,
int&nbsp;flength,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
int&nbsp;vlength,
int&nbsp;tagsLength)</pre>
<div class="block">Create an empty byte[] representing a KeyValue
All lengths are preset and can be filled in later.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>rlength</code> - </dd>
<dd><code>flength</code> - </dd>
<dd><code>qlength</code> - </dd>
<dd><code>timestamp</code> - </dd>
<dd><code>type</code> - </dd>
<dd><code>vlength</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The newly created byte array.</dd>
</dl>
</li>
</ul>
<a name="checkParameters-byte:A-int-byte:A-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkParameters</h4>
<pre>static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.824">checkParameters</a>(byte[]&nbsp;row,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;flength,
int&nbsp;qlength,
int&nbsp;vlength)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre>
<div class="block">Checks the parameters passed to a constructor.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - row key</dd>
<dd><code>rlength</code> - row length</dd>
<dd><code>family</code> - family name</dd>
<dd><code>flength</code> - family length</dd>
<dd><code>qlength</code> - qualifier length</dd>
<dd><code>vlength</code> - value length</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - an illegal value was passed</dd>
</dl>
</li>
</ul>
<a name="writeByteArray-byte:A-int-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-org.apache.hadoop.hbase.Tag:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeByteArray</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.880">writeByteArray</a>(byte[]&nbsp;buffer,
int&nbsp;boffset,
byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>[]&nbsp;tags)</pre>
<div class="block">Write KeyValue format into the provided byte array.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>buffer</code> - the bytes buffer to use</dd>
<dd><code>boffset</code> - buffer offset</dd>
<dd><code>row</code> - row key</dd>
<dd><code>roffset</code> - row offset</dd>
<dd><code>rlength</code> - row length</dd>
<dd><code>family</code> - family name</dd>
<dd><code>foffset</code> - family offset</dd>
<dd><code>flength</code> - family length</dd>
<dd><code>qualifier</code> - column qualifier</dd>
<dd><code>qoffset</code> - qualifier offset</dd>
<dd><code>qlength</code> - qualifier length</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>type</code> - key type</dd>
<dd><code>value</code> - column value</dd>
<dd><code>voffset</code> - value offset</dd>
<dd><code>vlength</code> - value length</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The number of useful bytes in the buffer.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - an illegal value was passed or there is insufficient space
remaining in the buffer</dd>
</dl>
</li>
</ul>
<a name="createByteArray-byte:A-int-int-byte:A-int-int-byte:A-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-byte:A-int-int-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createByteArray</h4>
<pre>private static&nbsp;byte[]&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.955">createByteArray</a>(byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
byte[]&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
byte[]&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
byte[]&nbsp;tags,
int&nbsp;tagsOffset,
int&nbsp;tagsLength)</pre>
<div class="block">Write KeyValue format into a byte array.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>row</code> - row key</dd>
<dd><code>roffset</code> - row offset</dd>
<dd><code>rlength</code> - row length</dd>
<dd><code>family</code> - family name</dd>
<dd><code>foffset</code> - family offset</dd>
<dd><code>flength</code> - family length</dd>
<dd><code>qualifier</code> - column qualifier</dd>
<dd><code>qoffset</code> - qualifier offset</dd>
<dd><code>qlength</code> - qualifier length</dd>
<dd><code>timestamp</code> - version timestamp</dd>
<dd><code>type</code> - key type</dd>
<dd><code>value</code> - column value</dd>
<dd><code>voffset</code> - value offset</dd>
<dd><code>vlength</code> - value length</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The newly created byte array.</dd>
</dl>
</li>
</ul>
<a name="createByteArray-byte:A-int-int-byte:A-int-int-java.lang.Object-int-int-long-org.apache.hadoop.hbase.KeyValue.Type-java.lang.Object-int-int-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createByteArray</h4>
<pre>private static&nbsp;byte[]&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.998">createByteArray</a>(byte[]&nbsp;row,
int&nbsp;roffset,
int&nbsp;rlength,
byte[]&nbsp;family,
int&nbsp;foffset,
int&nbsp;flength,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;qualifier,
int&nbsp;qoffset,
int&nbsp;qlength,
long&nbsp;timestamp,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.Type.html" title="enum in org.apache.hadoop.hbase">KeyValue.Type</a>&nbsp;type,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;value,
int&nbsp;voffset,
int&nbsp;vlength,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/hadoop/hbase/Tag.html" title="interface in org.apache.hadoop.hbase">Tag</a>&gt;&nbsp;tags)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>qualifier</code> - can be a ByteBuffer or a byte[], or null.</dd>
<dd><code>value</code> - can be a ByteBuffer or a byte[], or null.</dd>
</dl>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1064">equals</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;other)</pre>
<div class="block">Needed doing 'contains' on List. Only compares the key portion, not the value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://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></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="hashCode--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1075">hashCode</a>()</pre>
<div class="block">In line with <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#equals-java.lang.Object-"><code>equals(Object)</code></a>, only uses the key portion, not the value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="calculateHashForKey-org.apache.hadoop.hbase.Cell-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>calculateHashForKey</h4>
<pre>private&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1079">calculateHashForKey</a>(<a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a>&nbsp;cell)</pre>
</li>
</ul>
<a name="clone--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clone</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1107">clone</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/CloneNotSupportedException.html?is-external=true" title="class or interface in java.lang">CloneNotSupportedException</a></pre>
<div class="block">Clones a KeyValue. This creates a copy, re-allocating the buffer.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Fully copied clone of this KeyValue</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/CloneNotSupportedException.html?is-external=true" title="class or interface in java.lang">CloneNotSupportedException</a></code></dd>
</dl>
</li>
</ul>
<a name="shallowCopy--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shallowCopy</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1124">shallowCopy</a>()</pre>
<div class="block">Creates a shallow copy of this KeyValue, reusing the data byte buffer.
http://en.wikipedia.org/wiki/Object_copy</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Shallow copy of this KeyValue</dd>
</dl>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1137">toString</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="keyToString-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>keyToString</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1149">keyToString</a>(byte[]&nbsp;k)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>k</code> - Key portion of a KeyValue.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Key as a String, empty string if k is null.</dd>
</dl>
</li>
</ul>
<a name="toStringMap--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toStringMap</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&gt;&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1164">toStringMap</a>()</pre>
<div class="block">Produces a string map for this key/value pair. Useful for programmatic use
and manipulation of the data stored in an WALKey, for example, printing
as JSON. Values are left out due to their tendency to be large. If needed,
they can be added manually.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the Map&lt;String,?&gt; containing data from this key</dd>
</dl>
</li>
</ul>
<a name="keyToString-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>keyToString</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1191">keyToString</a>(byte[]&nbsp;b,
int&nbsp;o,
int&nbsp;l)</pre>
<div class="block">Use for logging.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>b</code> - Key portion of a KeyValue.</dd>
<dd><code>o</code> - Offset to start of key</dd>
<dd><code>l</code> - Length of key.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Key as a String.</dd>
</dl>
</li>
</ul>
<a name="humanReadableTimestamp-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>humanReadableTimestamp</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1211">humanReadableTimestamp</a>(long&nbsp;timestamp)</pre>
</li>
</ul>
<a name="getBuffer--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBuffer</h4>
<pre>public&nbsp;byte[]&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1232">getBuffer</a>()</pre>
<div class="block">To be used only in tests where the Cells are clearly assumed to be of type KeyValue
and that we need access to the backing array to do some test case related assertions.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The byte array backing this KeyValue.</dd>
</dl>
</li>
</ul>
<a name="getOffset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOffset</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1239">getOffset</a>()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Offset into <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getBuffer--"><code>getBuffer()</code></a> at which this KeyValue starts.</dd>
</dl>
</li>
</ul>
<a name="getLength--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLength</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1246">getLength</a>()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Length of bytes this KeyValue occupies in <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getBuffer--"><code>getBuffer()</code></a>.</dd>
</dl>
</li>
</ul>
<a name="getLength-byte:A-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLength</h4>
<pre>private static&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1263">getLength</a>(byte[]&nbsp;bytes,
int&nbsp;offset)</pre>
<div class="block">Determines the total length of the KeyValue stored in the specified
byte array and offset. Includes all headers.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bytes</code> - byte array</dd>
<dd><code>offset</code> - offset to start of the KeyValue</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>length of entire KeyValue, in bytes</dd>
</dl>
</li>
</ul>
<a name="getKeyOffset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKeyOffset</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1272">getKeyOffset</a>()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Key offset in backing buffer..</dd>
</dl>
</li>
</ul>
<a name="getKeyString--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKeyString</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1276">getKeyString</a>()</pre>
</li>
</ul>
<a name="getKeyLength--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKeyLength</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1283">getKeyLength</a>()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Length of key portion.</dd>
</dl>
</li>
</ul>
<a name="getValueArray--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValueArray</h4>
<pre>public&nbsp;byte[]&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1291">getValueArray</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getValueArray--">Cell</a></code></span></div>
<div class="block">Contiguous raw bytes that may start at any index in the containing array. Max length is
Integer.MAX_VALUE which is 2,147,483,647 bytes.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getValueArray--">getValueArray</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the backing array of the entire KeyValue (all KeyValue fields are in a single array)</dd>
</dl>
</li>
</ul>
<a name="getValueOffset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValueOffset</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1299">getValueOffset</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getValueOffset--">getValueOffset</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the value offset</dd>
</dl>
</li>
</ul>
<a name="getValueLength--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValueLength</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1308">getValueLength</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getValueLength--">getValueLength</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Value length</dd>
</dl>
</li>
</ul>
<a name="getRowArray--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRowArray</h4>
<pre>public&nbsp;byte[]&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1317">getRowArray</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getRowArray--">Cell</a></code></span></div>
<div class="block">Contiguous raw bytes that may start at any index in the containing array. Max length is
Short.MAX_VALUE which is 32,767 bytes.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getRowArray--">getRowArray</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the backing array of the entire KeyValue (all KeyValue fields are in a single array)</dd>
</dl>
</li>
</ul>
<a name="getRowOffset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRowOffset</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1325">getRowOffset</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getRowOffset--">getRowOffset</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Row offset</dd>
</dl>
</li>
</ul>
<a name="getRowLength--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRowLength</h4>
<pre>public&nbsp;short&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1333">getRowLength</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getRowLength--">getRowLength</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Row length</dd>
</dl>
</li>
</ul>
<a name="getFamilyArray--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFamilyArray</h4>
<pre>public&nbsp;byte[]&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1341">getFamilyArray</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getFamilyArray--">Cell</a></code></span></div>
<div class="block">Contiguous bytes composed of legal HDFS filename characters which may start at any index in the
containing array. Max length is Byte.MAX_VALUE, which is 127 bytes.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getFamilyArray--">getFamilyArray</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the backing array of the entire KeyValue (all KeyValue fields are in a single array)</dd>
</dl>
</li>
</ul>
<a name="getFamilyOffset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFamilyOffset</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1349">getFamilyOffset</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getFamilyOffset--">getFamilyOffset</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Family offset</dd>
</dl>
</li>
</ul>
<a name="getFamilyOffset-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFamilyOffset</h4>
<pre>int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1356">getFamilyOffset</a>(int&nbsp;familyLenPosition)</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Family offset</dd>
</dl>
</li>
</ul>
<a name="getFamilyLength--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFamilyLength</h4>
<pre>public&nbsp;byte&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1364">getFamilyLength</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getFamilyLength--">getFamilyLength</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Family length</dd>
</dl>
</li>
</ul>
<a name="getFamilyLength-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFamilyLength</h4>
<pre>public&nbsp;byte&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1371">getFamilyLength</a>(int&nbsp;famLenPos)</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Family length</dd>
</dl>
</li>
</ul>
<a name="getFamilyLengthPosition-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFamilyLengthPosition</h4>
<pre>int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1375">getFamilyLengthPosition</a>(int&nbsp;rowLength)</pre>
</li>
</ul>
<a name="getQualifierArray--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getQualifierArray</h4>
<pre>public&nbsp;byte[]&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1383">getQualifierArray</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getQualifierArray--">Cell</a></code></span></div>
<div class="block">Contiguous raw bytes that may start at any index in the containing array.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getQualifierArray--">getQualifierArray</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the backing array of the entire KeyValue (all KeyValue fields are in a single array)</dd>
</dl>
</li>
</ul>
<a name="getQualifierOffset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getQualifierOffset</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1391">getQualifierOffset</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getQualifierOffset--">getQualifierOffset</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Qualifier offset</dd>
</dl>
</li>
</ul>
<a name="getQualifierOffset-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getQualifierOffset</h4>
<pre>private&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1398">getQualifierOffset</a>(int&nbsp;foffset)</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Qualifier offset</dd>
</dl>
</li>
</ul>
<a name="getQualifierOffset-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getQualifierOffset</h4>
<pre>int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1405">getQualifierOffset</a>(int&nbsp;foffset,
int&nbsp;flength)</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Qualifier offset</dd>
</dl>
</li>
</ul>
<a name="getQualifierLength--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getQualifierLength</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1413">getQualifierLength</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getQualifierLength--">getQualifierLength</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Qualifier length</dd>
</dl>
</li>
</ul>
<a name="getQualifierLength-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getQualifierLength</h4>
<pre>private&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1420">getQualifierLength</a>(int&nbsp;rlength,
int&nbsp;flength)</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Qualifier length</dd>
</dl>
</li>
</ul>
<a name="getQualifierLength-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getQualifierLength</h4>
<pre>int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1427">getQualifierLength</a>(int&nbsp;keyLength,
int&nbsp;rlength,
int&nbsp;flength)</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Qualifier length</dd>
</dl>
</li>
</ul>
<a name="getTimestampOffset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTimestampOffset</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1434">getTimestampOffset</a>()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Timestamp offset</dd>
</dl>
</li>
</ul>
<a name="getTimestampOffset-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTimestampOffset</h4>
<pre>private&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1442">getTimestampOffset</a>(int&nbsp;keylength)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>keylength</code> - Pass if you have it to save on a int creation.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Timestamp offset</dd>
</dl>
</li>
</ul>
<a name="isLatestTimestamp--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isLatestTimestamp</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1449">isLatestTimestamp</a>()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True if this KeyValue has a LATEST_TIMESTAMP timestamp.</dd>
</dl>
</li>
</ul>
<a name="updateLatestStamp-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>updateLatestStamp</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1459">updateLatestStamp</a>(byte[]&nbsp;now)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>now</code> - Time to set into <code>this</code> IFF timestamp ==
<a href="../../../../org/apache/hadoop/hbase/HConstants.html#LATEST_TIMESTAMP"><code>HConstants.LATEST_TIMESTAMP</code></a> (else, its a noop).</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True is we modified this.</dd>
</dl>
</li>
</ul>
<a name="setTimestamp-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTimestamp</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1470">setTimestamp</a>(long&nbsp;ts)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#setTimestamp-long-">ExtendedCell</a></code></span></div>
<div class="block">Sets with the given timestamp.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#setTimestamp-long-">setTimestamp</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ts</code> - timestamp</dd>
</dl>
</li>
</ul>
<a name="setTimestamp-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTimestamp</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1475">setTimestamp</a>(byte[]&nbsp;ts)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#setTimestamp-byte:A-">ExtendedCell</a></code></span></div>
<div class="block">Sets with the given timestamp.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#setTimestamp-byte:A-">setTimestamp</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>ts</code> - buffer containing the timestamp value</dd>
</dl>
</li>
</ul>
<a name="getKey--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKey</h4>
<pre>public&nbsp;byte[]&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1491">getKey</a>()</pre>
<div class="block">Do not use unless you have to. Used internally for compacting and testing. Use
<a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getRowArray--"><code>getRowArray()</code></a>, <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getFamilyArray--"><code>getFamilyArray()</code></a>, <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getQualifierArray--"><code>getQualifierArray()</code></a>, and
<a href="../../../../org/apache/hadoop/hbase/KeyValue.html#getValueArray--"><code>getValueArray()</code></a> if accessing a KeyValue client-side.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Copy of the key portion only.</dd>
</dl>
</li>
</ul>
<a name="getTimestamp--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTimestamp</h4>
<pre>public&nbsp;long&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1503">getTimestamp</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getTimestamp--">getTimestamp</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Timestamp</dd>
</dl>
</li>
</ul>
<a name="getTimestamp-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTimestamp</h4>
<pre>long&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1511">getTimestamp</a>(int&nbsp;keylength)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>keylength</code> - Pass if you have it to save on a int creation.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Timestamp</dd>
</dl>
</li>
</ul>
<a name="getTypeByte--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypeByte</h4>
<pre>public&nbsp;byte&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1520">getTypeByte</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getTypeByte--">getTypeByte</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#getTypeByte--">getTypeByte</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>KeyValue.TYPE byte representation</dd>
</dl>
</li>
</ul>
<a name="getTypeByte-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypeByte</h4>
<pre>byte&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1524">getTypeByte</a>(int&nbsp;keyLength)</pre>
</li>
</ul>
<a name="getTagsOffset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTagsOffset</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1532">getTagsOffset</a>()</pre>
<div class="block">This returns the offset where the tag actually starts.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getTagsOffset--">getTagsOffset</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#getTagsOffset--">getTagsOffset</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the first offset where the tags start in the Cell</dd>
</dl>
</li>
</ul>
<a name="getTagsLength--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTagsLength</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1544">getTagsLength</a>()</pre>
<div class="block">This returns the total length of the tag bytes</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getTagsLength--">getTagsLength</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#getTagsLength--">getTagsLength</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the total length of the tags in the Cell.</dd>
</dl>
</li>
</ul>
<a name="getTagsArray--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTagsArray</h4>
<pre>public&nbsp;byte[]&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1558">getTagsArray</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#getTagsArray--">ExtendedCell</a></code></span></div>
<div class="block">Contiguous raw bytes representing tags that may start at any index in the containing array.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getTagsArray--">getTagsArray</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#getTagsArray--">getTagsArray</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the backing array of the entire KeyValue (all KeyValue fields are in a single array)</dd>
</dl>
</li>
</ul>
<a name="createKeyOnly-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createKeyOnly</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1569">createKeyOnly</a>(boolean&nbsp;lenAsVal)</pre>
<div class="block">Creates a new KeyValue that only contains the key portion (the value is
set to be null).
TODO only used by KeyOnlyFilter -- move there.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>lenAsVal</code> - replace value with the actual value length (false=empty)</dd>
</dl>
</li>
</ul>
<a name="getDelimiter-byte:A-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDelimiter</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1589">getDelimiter</a>(byte[]&nbsp;b,
int&nbsp;offset,
int&nbsp;length,
int&nbsp;delimiter)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>b</code> - </dd>
<dd><code>delimiter</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Index of delimiter having started from start of <code>b</code>
moving rightward.</dd>
</dl>
</li>
</ul>
<a name="getDelimiterInReverse-byte:A-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDelimiterInReverse</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.1610">getDelimiterInReverse</a>(byte[]&nbsp;b,
int&nbsp;offset,
int&nbsp;length,
int&nbsp;delimiter)</pre>
<div class="block">Find index of passed delimiter walking from end of buffer backwards.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>b</code> - </dd>
<dd><code>delimiter</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Index of delimiter</dd>
</dl>
</li>
</ul>
<a name="create-java.io.DataInput-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.2267">create</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</a>&nbsp;in)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>in</code> - Where to read bytes from. Creates a byte array to hold the KeyValue
backing bytes copied from the steam.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>KeyValue created by deserializing from <code>in</code> OR if we find a length
of zero, we will return null which can be useful marking a stream as done.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="create-int-java.io.DataInput-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.2279">create</a>(int&nbsp;length,
<a href="https://docs.oracle.com/javase/8/docs/api/java/io/DataInput.html?is-external=true" title="class or interface in java.io">DataInput</a>&nbsp;in)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Create a KeyValue reading <code>length</code> from <code>in</code></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>length</code> - </dd>
<dd><code>in</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Created KeyValue OR if we find a length of zero, we will return null which
can be useful marking a stream as done.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="write-org.apache.hadoop.hbase.KeyValue-java.io.DataOutput-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public static&nbsp;long&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.2300">write</a>(<a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a>&nbsp;kv,
<a href="https://docs.oracle.com/javase/8/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</a>&nbsp;out)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Write out a KeyValue in the manner in which we used to when KeyValue was a Writable.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>kv</code> - </dd>
<dd><code>out</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Length written on stream</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#create-java.io.DataInput-"><code>for the inverse function</code></a></dd>
</dl>
</li>
</ul>
<a name="oswrite-org.apache.hadoop.hbase.KeyValue-java.io.OutputStream-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>oswrite</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public static&nbsp;long&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.2325">oswrite</a>(<a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase">KeyValue</a>&nbsp;kv,
<a href="https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;out,
boolean&nbsp;withTags)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">As of release 2.0.0, this will be removed in HBase 3.0.0.
Instead use <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#write-java.io.OutputStream-boolean-"><code>write(OutputStream, boolean)</code></a></span></div>
<div class="block">Write out a KeyValue in the manner in which we used to when KeyValue was a Writable but do
not require a <a href="https://docs.oracle.com/javase/8/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io"><code>DataOutput</code></a>, just take plain <a href="https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io"><code>OutputStream</code></a>
Named <code>oswrite</code> so does not clash with <a href="../../../../org/apache/hadoop/hbase/KeyValue.html#write-org.apache.hadoop.hbase.KeyValue-java.io.DataOutput-"><code>write(KeyValue, DataOutput)</code></a></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>kv</code> - </dd>
<dd><code>out</code> - </dd>
<dd><code>withTags</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Length written on stream</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/hadoop/hbase/KeyValue.html#create-java.io.DataInput-"><code>for the inverse function</code></a>,
<a href="../../../../org/apache/hadoop/hbase/KeyValue.html#write-org.apache.hadoop.hbase.KeyValue-java.io.DataOutput-"><code>write(KeyValue, DataOutput)</code></a>,
<a href="../../../../org/apache/hadoop/hbase/KeyValueUtil.html#oswrite-org.apache.hadoop.hbase.Cell-java.io.OutputStream-boolean-"><code>KeyValueUtil.oswrite(Cell, OutputStream, boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="write-java.io.OutputStream-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.2332">write</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a>&nbsp;out,
boolean&nbsp;withTags)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#write-java.io.OutputStream-boolean-">ExtendedCell</a></code></span></div>
<div class="block">Write this cell to an OutputStream in a <a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase"><code>KeyValue</code></a> format.
<br> KeyValue format <br>
<code>&lt;4 bytes keylength&gt; &lt;4 bytes valuelength&gt; &lt;2 bytes rowlength&gt;
&lt;row&gt; &lt;1 byte columnfamilylength&gt; &lt;columnfamily&gt; &lt;columnqualifier&gt;
&lt;8 bytes timestamp&gt; &lt;1 byte keytype&gt; &lt;value&gt; &lt;2 bytes tagslength&gt;
&lt;tags&gt;</code></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#write-java.io.OutputStream-boolean-">write</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>out</code> - Stream to which cell has to be written</dd>
<dd><code>withTags</code> - Whether to write tags.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>how many bytes are written.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
</dl>
</li>
</ul>
<a name="getSerializedSize-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSerializedSize</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.2339">getSerializedSize</a>(boolean&nbsp;withTags)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#getSerializedSize-boolean-">getSerializedSize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>withTags</code> - Whether to write tags.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Bytes count required to serialize this Cell in a <a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase"><code>KeyValue</code></a> format.
<br> KeyValue format <br>
<code>&lt;4 bytes keylength&gt; &lt;4 bytes valuelength&gt; &lt;2 bytes rowlength&gt;
&lt;row&gt; &lt;1 byte columnfamilylength&gt; &lt;columnfamily&gt; &lt;columnqualifier&gt;
&lt;8 bytes timestamp&gt; &lt;1 byte keytype&gt; &lt;value&gt; &lt;2 bytes tagslength&gt;
&lt;tags&gt;</code></dd>
</dl>
</li>
</ul>
<a name="getSerializedSize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSerializedSize</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.2347">getSerializedSize</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/Cell.html#getSerializedSize--">getSerializedSize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/Cell.html" title="interface in org.apache.hadoop.hbase">Cell</a></code></dd>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#getSerializedSize--">getSerializedSize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Serialized size (defaults to include tag length).</dd>
</dl>
</li>
</ul>
<a name="write-java.nio.ByteBuffer-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.2352">write</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>&nbsp;buf,
int&nbsp;offset)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#write-java.nio.ByteBuffer-int-">ExtendedCell</a></code></span></div>
<div class="block">Write this Cell into the given buf's offset in a <a href="../../../../org/apache/hadoop/hbase/KeyValue.html" title="class in org.apache.hadoop.hbase"><code>KeyValue</code></a> format.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#write-java.nio.ByteBuffer-int-">write</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>buf</code> - The buffer where to write the Cell.</dd>
<dd><code>offset</code> - The offset within buffer, to write the Cell.</dd>
</dl>
</li>
</ul>
<a name="heapSize--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>heapSize</h4>
<pre>public&nbsp;long&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.2378">heapSize</a>()</pre>
<div class="block">HeapSize implementation
We do not count the bytes in the rowCache because it should be empty for a KeyValue in the
MemStore.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/io/HeapSize.html#heapSize--">heapSize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/io/HeapSize.html" title="interface in org.apache.hadoop.hbase.io">HeapSize</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Approximate 'exclusive deep size' of implementing object. Includes
count of payload and hosting object sizings.</dd>
</dl>
</li>
</ul>
<a name="deepClone--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>deepClone</h4>
<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/KeyValue.html#line.2594">deepClone</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#deepClone--">ExtendedCell</a></code></span></div>
<div class="block">Does a deep copy of the contents to a new memory area and returns it as a new cell.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html#deepClone--">deepClone</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/hadoop/hbase/ExtendedCell.html" title="interface in org.apache.hadoop.hbase">ExtendedCell</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The deep cloned cell</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.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/KeepDeletedCells.html" title="enum in org.apache.hadoop.hbase"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/hadoop/hbase/KeyValue.KeyOnlyKeyValue.html" title="class in org.apache.hadoop.hbase"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/hadoop/hbase/KeyValue.html" target="_top">Frames</a></li>
<li><a href="KeyValue.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 2007&#x2013;2021 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>