blob: 1024f1d1176ba0006eb3693fbff770dccc41c6d8 [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>PositionedByteRange (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="PositionedByteRange (Apache HBase 3.0.0-alpha-2-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":6,"i26":6,"i27":6,"i28":6,"i29":6,"i30":6,"i31":6,"i32":6,"i33":6,"i34":6,"i35":6,"i36":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract 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/PositionedByteRange.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/util/PoolMap.ThreadLocalPool.html" title="class in org.apache.hadoop.hbase.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/hadoop/hbase/util/PrettyPrinter.html" title="class in org.apache.hadoop.hbase.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/hadoop/hbase/util/PositionedByteRange.html" target="_top">Frames</a></li>
<li><a href="PositionedByteRange.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>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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.util</div>
<h2 title="Interface PositionedByteRange" class="title">Interface PositionedByteRange</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Superinterfaces:</dt>
<dd><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;<a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a>&gt;</dd>
</dl>
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><a href="../../../../../org/apache/hadoop/hbase/util/AbstractPositionedByteRange.html" title="class in org.apache.hadoop.hbase.util">AbstractPositionedByteRange</a>, <a href="../../../../../org/apache/hadoop/hbase/util/SimplePositionedByteRange.html" title="class in org.apache.hadoop.hbase.util">SimplePositionedByteRange</a>, <a href="../../../../../org/apache/hadoop/hbase/util/SimplePositionedMutableByteRange.html" title="class in org.apache.hadoop.hbase.util">SimplePositionedMutableByteRange</a></dd>
</dl>
<hr>
<br>
<pre>@InterfaceAudience.Public
public interface <a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.37">PositionedByteRange</a>
extends <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></pre>
<div class="block"><p>
Extends <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util"><code>ByteRange</code></a> with additional methods to support tracking a
consumers position within the viewport. The API is extended with methods
<a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#get--"><code>get()</code></a> and <a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#put-byte-"><code>put(byte)</code></a> for interacting with the backing
array from the current position forward. This frees the caller from managing
their own index into the array.
</p>
<p>
Designed to be a slimmed-down, mutable alternative to <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio"><code>ByteBuffer</code></a>.
</p></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== 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="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract 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><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#deepCopy--">deepCopy</a></span>()</code>
<div class="block">Create a new <code>ByteRange</code> with new backing byte[] containing a copy
of the content from <code>this</code> range's window.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#get--">get</a></span>()</code>
<div class="block">Retrieve the next byte from this range.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#get-byte:A-">get</a></span>(byte[]&nbsp;dst)</code>
<div class="block">Fill <code>dst</code> with bytes from the range, starting from <code>position</code>.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#get-byte:A-int-int-">get</a></span>(byte[]&nbsp;dst,
int&nbsp;offset,
int&nbsp;length)</code>
<div class="block">Fill <code>dst</code> with bytes from the range, starting from the current
<code>position</code>.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#get-int-byte:A-">get</a></span>(int&nbsp;index,
byte[]&nbsp;dst)</code>
<div class="block">Fill <code>dst</code> with bytes from the range, starting from <code>index</code>.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#get-int-byte:A-int-int-">get</a></span>(int&nbsp;index,
byte[]&nbsp;dst,
int&nbsp;offset,
int&nbsp;length)</code>
<div class="block">Fill <code>dst</code> with bytes from the range, starting from <code>index</code>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#getInt--">getInt</a></span>()</code>
<div class="block">Retrieve the next int value from this range.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#getLimit--">getLimit</a></span>()</code>
<div class="block">Return the current limit</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#getLong--">getLong</a></span>()</code>
<div class="block">Retrieve the next long value from this range.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#getPosition--">getPosition</a></span>()</code>
<div class="block">The current <code>position</code> marker.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#getRemaining--">getRemaining</a></span>()</code>
<div class="block">The number of bytes remaining between position and the end of the range.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#getShort--">getShort</a></span>()</code>
<div class="block">Retrieve the next short value from this range.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#getVLong--">getVLong</a></span>()</code>
<div class="block">Retrieve the next long value, which is stored as VLong, from this range</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#peek--">peek</a></span>()</code>
<div class="block">Retrieve the next byte from this range without incrementing position.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#put-byte-">put</a></span>(byte&nbsp;val)</code>
<div class="block">Store <code>val</code> at the next position in this range.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#put-byte:A-">put</a></span>(byte[]&nbsp;val)</code>
<div class="block">Store the content of <code>val</code> in this range, starting at the next position.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#put-byte:A-int-int-">put</a></span>(byte[]&nbsp;val,
int&nbsp;offset,
int&nbsp;length)</code>
<div class="block">Store <code>length</code> bytes from <code>val</code> into this range.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#put-int-byte-">put</a></span>(int&nbsp;index,
byte&nbsp;val)</code>
<div class="block">Store <code>val</code> at <code>index</code>.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#put-int-byte:A-">put</a></span>(int&nbsp;index,
byte[]&nbsp;val)</code>
<div class="block">Store <code>val</code> at <code>index</code>.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#put-int-byte:A-int-int-">put</a></span>(int&nbsp;index,
byte[]&nbsp;val,
int&nbsp;offset,
int&nbsp;length)</code>
<div class="block">Store <code>length</code> bytes from <code>val</code> into this range, starting at
<code>index</code>.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#putInt-int-">putInt</a></span>(int&nbsp;val)</code>
<div class="block">Store int <code>val</code> at the next position in this range.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#putInt-int-int-">putInt</a></span>(int&nbsp;index,
int&nbsp;val)</code>
<div class="block">Store the int value at <code>index</code></div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#putLong-int-long-">putLong</a></span>(int&nbsp;index,
long&nbsp;val)</code>
<div class="block">Store the long value at <code>index</code></div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#putLong-long-">putLong</a></span>(long&nbsp;val)</code>
<div class="block">Store long <code>val</code> at the next position in this range.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#putShort-int-short-">putShort</a></span>(int&nbsp;index,
short&nbsp;val)</code>
<div class="block">Store the short value at <code>index</code></div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#putShort-short-">putShort</a></span>(short&nbsp;val)</code>
<div class="block">Store short <code>val</code> at the next position in this range.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#putVLong-long-">putVLong</a></span>(long&nbsp;val)</code>
<div class="block">Store the long <code>val</code> at the next position as a VLong</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#set-byte:A-">set</a></span>(byte[]&nbsp;bytes)</code>
<div class="block">Reuse this <code>ByteRange</code> over a new byte[].</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#set-byte:A-int-int-">set</a></span>(byte[]&nbsp;bytes,
int&nbsp;offset,
int&nbsp;length)</code>
<div class="block">Reuse this <code>ByteRange</code> over a new byte[].</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#set-int-">set</a></span>(int&nbsp;capacity)</code>
<div class="block">Reuse this <code>ByteRange</code> over a new byte[].</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#setLength-int-">setLength</a></span>(int&nbsp;length)</code>
<div class="block">Update the length of this range.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#setLimit-int-">setLimit</a></span>(int&nbsp;limit)</code>
<div class="block">Limits the byte range upto a specified value.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#setOffset-int-">setOffset</a></span>(int&nbsp;offset)</code>
<div class="block">Update the beginning of this range.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#setPosition-int-">setPosition</a></span>(int&nbsp;position)</code>
<div class="block">Update the <code>position</code> index.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#shallowCopy--">shallowCopy</a></span>()</code>
<div class="block">Create a new <code>ByteRange</code> that points at this range's byte[].</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#shallowCopySubRange-int-int-">shallowCopySubRange</a></span>(int&nbsp;innerOffset,
int&nbsp;copyLength)</code>
<div class="block">Create a new <code>ByteRange</code> that points at this range's byte[].</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html#unset--">unset</a></span>()</code>
<div class="block">Nullifies this ByteRange.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.hadoop.hbase.util.ByteRange">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.hadoop.hbase.util.<a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></h3>
<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#deepCopySubRangeTo-int-int-byte:A-int-">deepCopySubRangeTo</a>, <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#deepCopyTo-byte:A-int-">deepCopyTo</a>, <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#deepCopyToNewArray--">deepCopyToNewArray</a>, <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#get-int-">get</a>, <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#getBytes--">getBytes</a>, <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#getInt-int-">getInt</a>, <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#getLength--">getLength</a>, <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#getLong-int-">getLong</a>, <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#getOffset--">getOffset</a>, <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#getShort-int-">getShort</a>, <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#getVLong-int-">getVLong</a>, <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#isEmpty--">isEmpty</a>, <a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#putVLong-int-long-">putVLong</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Comparable">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true#compareTo-T-" title="class or interface in java.lang">compareTo</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getPosition--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPosition</h4>
<pre>int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.45">getPosition</a>()</pre>
<div class="block">The current <code>position</code> marker. This valuae is 0-indexed, relative to
the beginning of the range.</div>
</li>
</ul>
<a name="setPosition-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPosition</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.52">setPosition</a>(int&nbsp;position)</pre>
<div class="block">Update the <code>position</code> index. May not be greater than <code>length</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>position</code> - the new position in this range.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="getRemaining--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRemaining</h4>
<pre>int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.57">getRemaining</a>()</pre>
<div class="block">The number of bytes remaining between position and the end of the range.</div>
</li>
</ul>
<a name="peek--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>peek</h4>
<pre>byte&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.62">peek</a>()</pre>
<div class="block">Retrieve the next byte from this range without incrementing position.</div>
</li>
</ul>
<a name="get--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>byte&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.67">get</a>()</pre>
<div class="block">Retrieve the next byte from this range.</div>
</li>
</ul>
<a name="getShort--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShort</h4>
<pre>short&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.72">getShort</a>()</pre>
<div class="block">Retrieve the next short value from this range.</div>
</li>
</ul>
<a name="getInt--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInt</h4>
<pre>int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.77">getInt</a>()</pre>
<div class="block">Retrieve the next int value from this range.</div>
</li>
</ul>
<a name="getLong--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLong</h4>
<pre>long&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.82">getLong</a>()</pre>
<div class="block">Retrieve the next long value from this range.</div>
</li>
</ul>
<a name="getVLong--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVLong</h4>
<pre>long&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.88">getVLong</a>()</pre>
<div class="block">Retrieve the next long value, which is stored as VLong, from this range</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the long value which is stored as VLong</dd>
</dl>
</li>
</ul>
<a name="get-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.97">get</a>(byte[]&nbsp;dst)</pre>
<div class="block">Fill <code>dst</code> with bytes from the range, starting from <code>position</code>.
This range's <code>position</code> is incremented by the length of <code>dst</code>,
the number of bytes copied.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dst</code> - the destination of the copy.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="get-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.109">get</a>(byte[]&nbsp;dst,
int&nbsp;offset,
int&nbsp;length)</pre>
<div class="block">Fill <code>dst</code> with bytes from the range, starting from the current
<code>position</code>. <code>length</code> bytes are copied into <code>dst</code>,
starting at <code>offset</code>. This range's <code>position</code> is incremented
by the number of bytes copied.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dst</code> - the destination of the copy.</dd>
<dd><code>offset</code> - the offset into <code>dst</code> to start the copy.</dd>
<dd><code>length</code> - the number of bytes to copy into <code>dst</code>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="put-byte-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.116">put</a>(byte&nbsp;val)</pre>
<div class="block">Store <code>val</code> at the next position in this range.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>val</code> - the new value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="putShort-short-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putShort</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.123">putShort</a>(short&nbsp;val)</pre>
<div class="block">Store short <code>val</code> at the next position in this range.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>val</code> - the new value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="putInt-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putInt</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.130">putInt</a>(int&nbsp;val)</pre>
<div class="block">Store int <code>val</code> at the next position in this range.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>val</code> - the new value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="putLong-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putLong</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.137">putLong</a>(long&nbsp;val)</pre>
<div class="block">Store long <code>val</code> at the next position in this range.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>val</code> - the new value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="putVLong-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putVLong</h4>
<pre>int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.144">putVLong</a>(long&nbsp;val)</pre>
<div class="block">Store the long <code>val</code> at the next position as a VLong</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>val</code> - the value to store</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of bytes written</dd>
</dl>
</li>
</ul>
<a name="put-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.151">put</a>(byte[]&nbsp;val)</pre>
<div class="block">Store the content of <code>val</code> in this range, starting at the next position.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>val</code> - the new value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="put-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.162">put</a>(byte[]&nbsp;val,
int&nbsp;offset,
int&nbsp;length)</pre>
<div class="block">Store <code>length</code> bytes from <code>val</code> into this range. Bytes from
<code>val</code> are copied starting at <code>offset</code> into the range, starting at
the current position.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>val</code> - the new value.</dd>
<dd><code>offset</code> - the offset in <code>val</code> from which to start copying.</dd>
<dd><code>length</code> - the number of bytes to copy from <code>val</code>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="setLimit-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLimit</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.171">setLimit</a>(int&nbsp;limit)</pre>
<div class="block">Limits the byte range upto a specified value. Limit cannot be greater than
capacity</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>limit</code> - </dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>PositionedByteRange</dd>
</dl>
</li>
</ul>
<a name="getLimit--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLimit</h4>
<pre>int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.178">getLimit</a>()</pre>
<div class="block">Return the current limit</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>limit</dd>
</dl>
</li>
</ul>
<a name="unset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unset</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.183">unset</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#unset--">ByteRange</a></code></span></div>
<div class="block">Nullifies this ByteRange. That is, it becomes a husk, being a range over
no byte[] whatsoever.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#unset--">unset</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this</dd>
</dl>
</li>
</ul>
<a name="set-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.186">set</a>(int&nbsp;capacity)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#set-int-">ByteRange</a></code></span></div>
<div class="block">Reuse this <code>ByteRange</code> over a new byte[]. <code>offset</code> is set to
0 and <code>length</code> is set to <code>capacity</code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#set-int-">set</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>capacity</code> - the size of a new byte[].</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this</dd>
</dl>
</li>
</ul>
<a name="set-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.189">set</a>(byte[]&nbsp;bytes)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#set-byte:A-">ByteRange</a></code></span></div>
<div class="block">Reuse this <code>ByteRange</code> over a new byte[]. <code>offset</code> is set to
0 and <code>length</code> is set to <code>bytes.length</code>. A null <code>bytes</code>
IS supported, in which case this method will behave equivalently to
<a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#unset--"><code>ByteRange.unset()</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#set-byte:A-">set</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bytes</code> - the array to wrap.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this</dd>
</dl>
</li>
</ul>
<a name="set-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>set</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.192">set</a>(byte[]&nbsp;bytes,
int&nbsp;offset,
int&nbsp;length)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#set-byte:A-int-int-">ByteRange</a></code></span></div>
<div class="block">Reuse this <code>ByteRange</code> over a new byte[]. A null <code>bytes</code> IS
supported, in which case this method will behave equivalently to
<a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#unset--"><code>ByteRange.unset()</code></a>, regardless of the values of <code>offset</code> and
<code>length</code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#set-byte:A-int-int-">set</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bytes</code> - The array to wrap.</dd>
<dd><code>offset</code> - The offset into <code>bytes</code> considered the beginning of
this range.</dd>
<dd><code>length</code> - The length of this range.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="setOffset-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOffset</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.195">setOffset</a>(int&nbsp;offset)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#setOffset-int-">ByteRange</a></code></span></div>
<div class="block">Update the beginning of this range. <code>offset + length</code> may not be
greater than <code>bytes.length</code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#setOffset-int-">setOffset</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>offset</code> - the new start of this range.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="setLength-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLength</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.198">setLength</a>(int&nbsp;length)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#setLength-int-">ByteRange</a></code></span></div>
<div class="block">Update the length of this range. <code>offset + length</code> should not be
greater than <code>bytes.length</code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#setLength-int-">setLength</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>length</code> - The new length of this range.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="get-int-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.201">get</a>(int&nbsp;index,
byte[]&nbsp;dst)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#get-int-byte:A-">ByteRange</a></code></span></div>
<div class="block">Fill <code>dst</code> with bytes from the range, starting from <code>index</code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#get-int-byte:A-">get</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - zero-based index into this range.</dd>
<dd><code>dst</code> - the destination of the copy.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="get-int-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.204">get</a>(int&nbsp;index,
byte[]&nbsp;dst,
int&nbsp;offset,
int&nbsp;length)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#get-int-byte:A-int-int-">ByteRange</a></code></span></div>
<div class="block">Fill <code>dst</code> with bytes from the range, starting from <code>index</code>.
<code>length</code> bytes are copied into <code>dst</code>, starting at <code>offset</code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#get-int-byte:A-int-int-">get</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - zero-based index into this range.</dd>
<dd><code>dst</code> - the destination of the copy.</dd>
<dd><code>offset</code> - the offset into <code>dst</code> to start the copy.</dd>
<dd><code>length</code> - the number of bytes to copy into <code>dst</code>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="put-int-byte-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.207">put</a>(int&nbsp;index,
byte&nbsp;val)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#put-int-byte-">ByteRange</a></code></span></div>
<div class="block">Store <code>val</code> at <code>index</code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#put-int-byte-">put</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - the index in the range where <code>val</code> is stored.</dd>
<dd><code>val</code> - the value to store.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="putShort-int-short-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putShort</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.210">putShort</a>(int&nbsp;index,
short&nbsp;val)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#putShort-int-short-">ByteRange</a></code></span></div>
<div class="block">Store the short value at <code>index</code></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#putShort-int-short-">putShort</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - the index in the range where <code>val</code> is stored</dd>
<dd><code>val</code> - the value to store</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this</dd>
</dl>
</li>
</ul>
<a name="putInt-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putInt</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.213">putInt</a>(int&nbsp;index,
int&nbsp;val)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#putInt-int-int-">ByteRange</a></code></span></div>
<div class="block">Store the int value at <code>index</code></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#putInt-int-int-">putInt</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - the index in the range where <code>val</code> is stored</dd>
<dd><code>val</code> - the value to store</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this</dd>
</dl>
</li>
</ul>
<a name="putLong-int-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putLong</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.216">putLong</a>(int&nbsp;index,
long&nbsp;val)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#putLong-int-long-">ByteRange</a></code></span></div>
<div class="block">Store the long value at <code>index</code></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#putLong-int-long-">putLong</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - the index in the range where <code>val</code> is stored</dd>
<dd><code>val</code> - the value to store</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this</dd>
</dl>
</li>
</ul>
<a name="put-int-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.219">put</a>(int&nbsp;index,
byte[]&nbsp;val)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#put-int-byte:A-">ByteRange</a></code></span></div>
<div class="block">Store <code>val</code> at <code>index</code>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#put-int-byte:A-">put</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - the index in the range where <code>val</code> is stored.</dd>
<dd><code>val</code> - the value to store.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="put-int-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.222">put</a>(int&nbsp;index,
byte[]&nbsp;val,
int&nbsp;offset,
int&nbsp;length)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#put-int-byte:A-int-int-">ByteRange</a></code></span></div>
<div class="block">Store <code>length</code> bytes from <code>val</code> into this range, starting at
<code>index</code>. Bytes from <code>val</code> are copied starting at <code>offset</code>
into the range.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#put-int-byte:A-int-int-">put</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - position in this range to start the copy.</dd>
<dd><code>val</code> - the value to store.</dd>
<dd><code>offset</code> - the offset in <code>val</code> from which to start copying.</dd>
<dd><code>length</code> - the number of bytes to copy from <code>val</code>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this.</dd>
</dl>
</li>
</ul>
<a name="deepCopy--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>deepCopy</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.225">deepCopy</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#deepCopy--">ByteRange</a></code></span></div>
<div class="block">Create a new <code>ByteRange</code> with new backing byte[] containing a copy
of the content from <code>this</code> range's window.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#deepCopy--">deepCopy</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Deep copy</dd>
</dl>
</li>
</ul>
<a name="shallowCopy--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shallowCopy</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.228">shallowCopy</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#shallowCopy--">ByteRange</a></code></span></div>
<div class="block">Create a new <code>ByteRange</code> that points at this range's byte[].
Modifying the shallowCopy will modify the bytes in this range's array.
Pass over the hash code if it is already cached.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#shallowCopy--">shallowCopy</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>new <code>ByteRange</code> object referencing this range's byte[].</dd>
</dl>
</li>
</ul>
<a name="shallowCopySubRange-int-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>shallowCopySubRange</h4>
<pre><a href="../../../../../org/apache/hadoop/hbase/util/PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/util/PositionedByteRange.html#line.231">shallowCopySubRange</a>(int&nbsp;innerOffset,
int&nbsp;copyLength)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#shallowCopySubRange-int-int-">ByteRange</a></code></span></div>
<div class="block">Create a new <code>ByteRange</code> that points at this range's byte[]. The new
range can have different values for offset and length, but modifying the
shallowCopy will modify the bytes in this range's array. Pass over the
hash code if it is already cached.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html#shallowCopySubRange-int-int-">shallowCopySubRange</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/util/ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>innerOffset</code> - First byte of clone will be this.offset + copyOffset.</dd>
<dd><code>copyLength</code> - Number of bytes in the clone.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>new <code>ByteRange</code> object referencing this range's byte[].</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/PositionedByteRange.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/util/PoolMap.ThreadLocalPool.html" title="class in org.apache.hadoop.hbase.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/hadoop/hbase/util/PrettyPrinter.html" title="class in org.apache.hadoop.hbase.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/hadoop/hbase/util/PositionedByteRange.html" target="_top">Frames</a></li>
<li><a href="PositionedByteRange.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>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&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>