blob: 99ba0925fee5c69481420660b4bc7910c0c002c3 [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>SingleByteBuff (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="SingleByteBuff (Apache HBase 3.0.0-alpha-2-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"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};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete 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/SingleByteBuff.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/nio/RefCnt.html" title="class in org.apache.hadoop.hbase.nio"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/hadoop/hbase/nio/SingleByteBuff.html" target="_top">Frames</a></li>
<li><a href="SingleByteBuff.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.classes.inherited.from.class.org.apache.hadoop.hbase.nio.ByteBuff">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.nio</div>
<h2 title="Class SingleByteBuff" class="title">Class SingleByteBuff</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><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">org.apache.hadoop.hbase.nio.ByteBuff</a></li>
<li>
<ul class="inheritance">
<li>org.apache.hadoop.hbase.nio.SingleByteBuff</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../org/apache/hadoop/hbase/nio/HBaseReferenceCounted.html" title="interface in org.apache.hadoop.hbase.nio">HBaseReferenceCounted</a>, org.apache.hbase.thirdparty.io.netty.util.ReferenceCounted</dd>
</dl>
<hr>
<br>
<pre>@InterfaceAudience.Private
public class <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.41">SingleByteBuff</a>
extends <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></pre>
<div class="block">An implementation of ByteBuff where a single BB backs the BBI. This just acts as a wrapper over a
normal BB - offheap or onheap</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>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.hadoop.hbase.nio.ByteBuff">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;org.apache.hadoop.hbase.nio.<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></h3>
<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.ChannelReader.html" title="interface in org.apache.hadoop.hbase.nio">ByteBuff.ChannelReader</a></code></li>
</ul>
</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>private <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></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#buf">buf</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#UNSAFE_AVAIL">UNSAFE_AVAIL</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#UNSAFE_UNALIGNED">UNSAFE_UNALIGNED</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#unsafeOffset">unsafeOffset</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <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></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#unsafeRef">unsafeRef</a></span></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.hadoop.hbase.nio.ByteBuff">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.hadoop.hbase.nio.<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></h3>
<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#CHANNEL_READER">CHANNEL_READER</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#FILE_READER">FILE_READER</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#refCnt">refCnt</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/nio/SingleByteBuff.html#SingleByteBuff-org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler-java.nio.ByteBuffer-">SingleByteBuff</a></span>(<a href="../../../../../org/apache/hadoop/hbase/io/ByteBuffAllocator.Recycler.html" title="interface in org.apache.hadoop.hbase.io">ByteBuffAllocator.Recycler</a>&nbsp;recycler,
<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)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#SingleByteBuff-java.nio.ByteBuffer-">SingleByteBuff</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)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#SingleByteBuff-org.apache.hadoop.hbase.nio.RefCnt-java.nio.ByteBuffer-">SingleByteBuff</a></span>(<a href="../../../../../org/apache/hadoop/hbase/nio/RefCnt.html" title="class in org.apache.hadoop.hbase.nio">RefCnt</a>&nbsp;refCnt,
<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)</code>&nbsp;</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="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></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#array--">array</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#arrayOffset--">arrayOffset</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><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></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#asSubByteBuffer-int-">asSubByteBuffer</a></span>(int&nbsp;length)</code>
<div class="block">Returns bytes from current position till length specified, as a single ByteBuffer.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#asSubByteBuffer-int-int-org.apache.hadoop.hbase.util.ObjectIntPair-">asSubByteBuffer</a></span>(int&nbsp;offset,
int&nbsp;length,
<a href="../../../../../org/apache/hadoop/hbase/util/ObjectIntPair.html" title="class in org.apache.hadoop.hbase.util">ObjectIntPair</a>&lt;<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>&gt;&nbsp;pair)</code>
<div class="block">Returns bytes from given offset till length specified, as a single ByteBuffer.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#capacity--">capacity</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#duplicate--">duplicate</a></span>()</code>
<div class="block">Returns an ByteBuff which is a duplicate version of this ByteBuff.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.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;obj)</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>byte</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#get--">get</a></span>()</code>
<div class="block">A relative method that returns byte at the current position.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#get-byte:A-">get</a></span>(byte[]&nbsp;dst)</code>
<div class="block">Copies the content from this ByteBuff's current position to the byte array and fills it.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#get-byte:A-int-int-">get</a></span>(byte[]&nbsp;dst,
int&nbsp;offset,
int&nbsp;length)</code>
<div class="block">Copies the specified number of bytes from this ByteBuff's current position to
the byte[]'s offset.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#get-java.nio.ByteBuffer-int-int-">get</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;out,
int&nbsp;sourceOffset,
int&nbsp;length)</code>
<div class="block">Copies the content from this ByteBuff to a ByteBuffer
Note : This will advance the position marker of <code>out</code> but not change the position maker
for this ByteBuff</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/nio/SingleByteBuff.html#get-int-">get</a></span>(int&nbsp;index)</code>
<div class="block">Fetches the byte at the given index.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#get-int-byte:A-int-int-">get</a></span>(int&nbsp;sourceOffset,
byte[]&nbsp;dst,
int&nbsp;offset,
int&nbsp;length)</code>
<div class="block">Copies the specified number of bytes from this ByteBuff's given position to
the byte[]'s offset.</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/nio/SingleByteBuff.html#getByteAfterPosition-int-">getByteAfterPosition</a></span>(int&nbsp;offset)</code>
<div class="block">Fetches the byte at the given offset from current position.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#getInt--">getInt</a></span>()</code>
<div class="block">Returns the int value at the current position.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#getInt-int-">getInt</a></span>(int&nbsp;index)</code>
<div class="block">Fetches the int at the given index.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#getIntAfterPosition-int-">getIntAfterPosition</a></span>(int&nbsp;offset)</code>
<div class="block">Fetches the int value at the given offset from current position.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#getLong--">getLong</a></span>()</code>
<div class="block">Returns the long value at the current position.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#getLong-int-">getLong</a></span>(int&nbsp;index)</code>
<div class="block">Fetches the long at the given index.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#getLongAfterPosition-int-">getLongAfterPosition</a></span>(int&nbsp;offset)</code>
<div class="block">Fetches the long value at the given offset from current position.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#getShort--">getShort</a></span>()</code>
<div class="block">Returns the short value at the current position.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#getShort-int-">getShort</a></span>(int&nbsp;index)</code>
<div class="block">Fetches the short value at the given index.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>short</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#getShortAfterPosition-int-">getShortAfterPosition</a></span>(int&nbsp;offset)</code>
<div class="block">Fetches the short value at the given offset from current position.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#hasArray--">hasArray</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#hashCode--">hashCode</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#hasRemaining--">hasRemaining</a></span>()</code>
<div class="block">Returns true if there are elements between the current position and the limt</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/nio/SingleByteBuff.html#limit--">limit</a></span>()</code>
<div class="block">Returns the limit of this ByteBuff</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#limit-int-">limit</a></span>(int&nbsp;limit)</code>
<div class="block">Marks the limit of this ByteBuff.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#mark--">mark</a></span>()</code>
<div class="block">Marks the current position of the ByteBuff</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#moveBack-int-">moveBack</a></span>(int&nbsp;len)</code>
<div class="block">Jumps back the current position of this ByteBuff by specified length.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code><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>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#nioByteBuffers--">nioByteBuffers</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#position--">position</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#position-int-">position</a></span>(int&nbsp;position)</code>
<div class="block">Sets this ByteBuff's position to the given value.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#put-byte-">put</a></span>(byte&nbsp;b)</code>
<div class="block">Writes a byte to this ByteBuff at the current position and increments the position</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#put-byte:A-">put</a></span>(byte[]&nbsp;src)</code>
<div class="block">Copies from the given byte[] to this ByteBuff</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#put-byte:A-int-int-">put</a></span>(byte[]&nbsp;src,
int&nbsp;offset,
int&nbsp;length)</code>
<div class="block">Copies from the given byte[] to this ByteBuff</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#put-int-byte-">put</a></span>(int&nbsp;index,
byte&nbsp;b)</code>
<div class="block">Writes a byte to this ByteBuff at the given index</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#put-int-org.apache.hadoop.hbase.nio.ByteBuff-int-int-">put</a></span>(int&nbsp;offset,
<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a>&nbsp;src,
int&nbsp;srcOffset,
int&nbsp;length)</code>
<div class="block">Copies the contents from the src ByteBuff to this ByteBuff.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#putInt-int-">putInt</a></span>(int&nbsp;value)</code>
<div class="block">Writes an int to this ByteBuff at its current position.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#putLong-long-">putLong</a></span>(long&nbsp;value)</code>
<div class="block">Writes a long to this ByteBuff at its current position.</div>
</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/nio/SingleByteBuff.html#read-java.nio.channels.FileChannel-long-">read</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/FileChannel.html?is-external=true" title="class or interface in java.nio.channels">FileChannel</a>&nbsp;channel,
long&nbsp;offset)</code>
<div class="block">Reads bytes from FileChannel into this ByteBuff</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#read-java.nio.channels.ReadableByteChannel-">read</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/ReadableByteChannel.html?is-external=true" title="class or interface in java.nio.channels">ReadableByteChannel</a>&nbsp;channel)</code>
<div class="block">Reads bytes from the given channel into this ByteBuff</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/nio/SingleByteBuff.html#remaining--">remaining</a></span>()</code>
<div class="block">Returns the number of elements between the current position and the
limit.</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#reset--">reset</a></span>()</code>
<div class="block">Similar 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>.reset(), ensures that this ByteBuff
is reset back to last marked position.</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#retain--">retain</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#rewind--">rewind</a></span>()</code>
<div class="block">Rewinds this ByteBuff and the position is set to 0</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#skip-int-">skip</a></span>(int&nbsp;len)</code>
<div class="block">Jumps the current position of this ByteBuff by specified length.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#slice--">slice</a></span>()</code>
<div class="block">Returns an ByteBuff which is a sliced version of this ByteBuff.</div>
</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html#toBytes-int-int-">toBytes</a></span>(int&nbsp;offset,
int&nbsp;length)</code>
<div class="block">Copy the content from this ByteBuff to a byte[] based on the given offset and
length</div>
</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/nio/SingleByteBuff.html#write-java.nio.channels.FileChannel-long-">write</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/FileChannel.html?is-external=true" title="class or interface in java.nio.channels">FileChannel</a>&nbsp;channel,
long&nbsp;offset)</code>
<div class="block">Write this ByteBuff's data into target file</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.hadoop.hbase.nio.ByteBuff">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.hadoop.hbase.nio.<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></h3>
<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#checkRefCount--">checkRefCount</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#compareTo-org.apache.hadoop.hbase.nio.ByteBuff-int-int-org.apache.hadoop.hbase.nio.ByteBuff-int-int-">compareTo</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#read-java.nio.channels.ReadableByteChannel-java.nio.ByteBuffer-long-org.apache.hadoop.hbase.nio.ByteBuff.ChannelReader-">read</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#readCompressedInt-org.apache.hadoop.hbase.nio.ByteBuff-">readCompressedInt</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#readLong-org.apache.hadoop.hbase.nio.ByteBuff-int-">readLong</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#refCnt--">refCnt</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#release--">release</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#toBytes--">toBytes</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#toString--">toString</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#wrap-java.nio.ByteBuffer-">wrap</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#wrap-java.nio.ByteBuffer:A-">wrap</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#wrap-java.nio.ByteBuffer:A-org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler-">wrap</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#wrap-java.nio.ByteBuffer:A-org.apache.hadoop.hbase.nio.RefCnt-">wrap</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#wrap-java.util.List-">wrap</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#wrap-java.util.List-org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler-">wrap</a></code></li>
</ul>
<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#clone--" title="class or interface in java.lang">clone</a>, <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.nio.HBaseReferenceCounted">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.apache.hadoop.hbase.nio.<a href="../../../../../org/apache/hadoop/hbase/nio/HBaseReferenceCounted.html" title="interface in org.apache.hadoop.hbase.nio">HBaseReferenceCounted</a></h3>
<code><a href="../../../../../org/apache/hadoop/hbase/nio/HBaseReferenceCounted.html#release-int-">release</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/HBaseReferenceCounted.html#retain-int-">retain</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/HBaseReferenceCounted.html#touch--">touch</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/HBaseReferenceCounted.html#touch-java.lang.Object-">touch</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="UNSAFE_AVAIL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>UNSAFE_AVAIL</h4>
<pre>private static final&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.43">UNSAFE_AVAIL</a></pre>
</li>
</ul>
<a name="UNSAFE_UNALIGNED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>UNSAFE_UNALIGNED</h4>
<pre>private static final&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.44">UNSAFE_UNALIGNED</a></pre>
</li>
</ul>
<a name="buf">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>buf</h4>
<pre>private final&nbsp;<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> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.47">buf</a></pre>
</li>
</ul>
<a name="unsafeOffset">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unsafeOffset</h4>
<pre>private&nbsp;long <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.50">unsafeOffset</a></pre>
</li>
</ul>
<a name="unsafeRef">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>unsafeRef</h4>
<pre>private&nbsp;<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> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.51">unsafeRef</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="SingleByteBuff-java.nio.ByteBuffer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SingleByteBuff</h4>
<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.53">SingleByteBuff</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)</pre>
</li>
</ul>
<a name="SingleByteBuff-org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler-java.nio.ByteBuffer-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SingleByteBuff</h4>
<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.57">SingleByteBuff</a>(<a href="../../../../../org/apache/hadoop/hbase/io/ByteBuffAllocator.Recycler.html" title="interface in org.apache.hadoop.hbase.io">ByteBuffAllocator.Recycler</a>&nbsp;recycler,
<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)</pre>
</li>
</ul>
<a name="SingleByteBuff-org.apache.hadoop.hbase.nio.RefCnt-java.nio.ByteBuffer-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SingleByteBuff</h4>
<pre><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.61">SingleByteBuff</a>(<a href="../../../../../org/apache/hadoop/hbase/nio/RefCnt.html" title="class in org.apache.hadoop.hbase.nio">RefCnt</a>&nbsp;refCnt,
<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)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="position--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>position</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.73">position</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#position--">position</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this ByteBuff's current position</dd>
</dl>
</li>
</ul>
<a name="position-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>position</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.79">position</a>(int&nbsp;position)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#position-int-">ByteBuff</a></code></span></div>
<div class="block">Sets this ByteBuff's position to the given value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#position-int-">position</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this object</dd>
</dl>
</li>
</ul>
<a name="skip-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>skip</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.86">skip</a>(int&nbsp;len)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#skip-int-">ByteBuff</a></code></span></div>
<div class="block">Jumps the current position of this ByteBuff by specified length.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#skip-int-">skip</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>len</code> - the length to be skipped</dd>
</dl>
</li>
</ul>
<a name="moveBack-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>moveBack</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.93">moveBack</a>(int&nbsp;len)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#moveBack-int-">ByteBuff</a></code></span></div>
<div class="block">Jumps back the current position of this ByteBuff by specified length.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#moveBack-int-">moveBack</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>len</code> - the length to move back</dd>
</dl>
</li>
</ul>
<a name="capacity--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>capacity</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.100">capacity</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#capacity--">capacity</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the total capacity of this ByteBuff.</dd>
</dl>
</li>
</ul>
<a name="limit--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>limit</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.106">limit</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#limit--">ByteBuff</a></code></span></div>
<div class="block">Returns the limit of this ByteBuff</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#limit--">limit</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>limit of the ByteBuff</dd>
</dl>
</li>
</ul>
<a name="limit-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>limit</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.112">limit</a>(int&nbsp;limit)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#limit-int-">ByteBuff</a></code></span></div>
<div class="block">Marks the limit of this ByteBuff.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#limit-int-">limit</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This ByteBuff</dd>
</dl>
</li>
</ul>
<a name="rewind--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rewind</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.119">rewind</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#rewind--">ByteBuff</a></code></span></div>
<div class="block">Rewinds this ByteBuff and the position is set to 0</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#rewind--">rewind</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this object</dd>
</dl>
</li>
</ul>
<a name="mark--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mark</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.126">mark</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#mark--">ByteBuff</a></code></span></div>
<div class="block">Marks the current position of the ByteBuff</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#mark--">mark</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this object</dd>
</dl>
</li>
</ul>
<a name="asSubByteBuffer-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asSubByteBuffer</h4>
<pre>public&nbsp;<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;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.133">asSubByteBuffer</a>(int&nbsp;length)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#asSubByteBuffer-int-">ByteBuff</a></code></span></div>
<div class="block">Returns bytes from current position till length specified, as a single ByteBuffer. When all
these bytes happen to be in a single ByteBuffer, which this object wraps, that ByteBuffer item
as such will be returned. So users are warned not to change the position or limit of this
returned ByteBuffer. The position of the returned byte buffer is at the begin of the required
bytes. When the required bytes happen to span across multiple ByteBuffers, this API will copy
the bytes to a newly created ByteBuffer of required size and return that.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#asSubByteBuffer-int-">asSubByteBuffer</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>length</code> - number of bytes required.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>bytes from current position till length specified, as a single ByteButter.</dd>
</dl>
</li>
</ul>
<a name="asSubByteBuffer-int-int-org.apache.hadoop.hbase.util.ObjectIntPair-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asSubByteBuffer</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.140">asSubByteBuffer</a>(int&nbsp;offset,
int&nbsp;length,
<a href="../../../../../org/apache/hadoop/hbase/util/ObjectIntPair.html" title="class in org.apache.hadoop.hbase.util">ObjectIntPair</a>&lt;<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>&gt;&nbsp;pair)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#asSubByteBuffer-int-int-org.apache.hadoop.hbase.util.ObjectIntPair-">ByteBuff</a></code></span></div>
<div class="block">Returns bytes from given offset till length specified, as a single ByteBuffer. When all these
bytes happen to be in a single ByteBuffer, which this object wraps, that ByteBuffer item as
such will be returned (with offset in this ByteBuffer where the bytes starts). So users are
warned not to change the position or limit of this returned ByteBuffer. When the required bytes
happen to span across multiple ByteBuffers, this API will copy the bytes to a newly created
ByteBuffer of required size and return that.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#asSubByteBuffer-int-int-org.apache.hadoop.hbase.util.ObjectIntPair-">asSubByteBuffer</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>offset</code> - the offset in this ByteBuff from where the subBuffer should be created</dd>
<dd><code>length</code> - the length of the subBuffer</dd>
<dd><code>pair</code> - a pair that will have the bytes from the current position till length specified,
as a single ByteBuffer and offset in that Buffer where the bytes starts.
Since this API gets called in a loop we are passing a pair to it which could be created
outside the loop and the method would set the values on the pair that is passed in by
the caller. Thus it avoids more object creations that would happen if the pair that is
returned is created by this method every time.</dd>
</dl>
</li>
</ul>
<a name="remaining--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>remaining</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.148">remaining</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#remaining--">ByteBuff</a></code></span></div>
<div class="block">Returns the number of elements between the current position and the
limit.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#remaining--">remaining</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the remaining elements in this ByteBuff</dd>
</dl>
</li>
</ul>
<a name="hasRemaining--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasRemaining</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.154">hasRemaining</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#hasRemaining--">ByteBuff</a></code></span></div>
<div class="block">Returns true if there are elements between the current position and the limt</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#hasRemaining--">hasRemaining</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if there are elements, false otherwise</dd>
</dl>
</li>
</ul>
<a name="reset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.160">reset</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#reset--">ByteBuff</a></code></span></div>
<div class="block">Similar 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>.reset(), ensures that this ByteBuff
is reset back to last marked position.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#reset--">reset</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This ByteBuff</dd>
</dl>
</li>
</ul>
<a name="slice--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>slice</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.167">slice</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#slice--">ByteBuff</a></code></span></div>
<div class="block">Returns an ByteBuff which is a sliced version of this ByteBuff. The position, limit and mark
of the new ByteBuff will be independent than that of the original ByteBuff.
The content of the new ByteBuff will start at this ByteBuff's current position</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#slice--">slice</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a sliced ByteBuff</dd>
</dl>
</li>
</ul>
<a name="duplicate--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>duplicate</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.173">duplicate</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#duplicate--">ByteBuff</a></code></span></div>
<div class="block">Returns an ByteBuff which is a duplicate version of this ByteBuff. The
position, limit and mark of the new ByteBuff will be independent than that
of the original ByteBuff. The content of the new ByteBuff will start at
this ByteBuff's current position The position, limit and mark of the new
ByteBuff would be identical to this ByteBuff in terms of values.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#duplicate--">duplicate</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a sliced ByteBuff</dd>
</dl>
</li>
</ul>
<a name="get--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;byte&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.179">get</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get--">ByteBuff</a></code></span></div>
<div class="block">A relative method that returns byte at the current position. Increments the
current position by the size of a byte.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get--">get</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the byte at the current position</dd>
</dl>
</li>
</ul>
<a name="get-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;byte&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.185">get</a>(int&nbsp;index)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-int-">ByteBuff</a></code></span></div>
<div class="block">Fetches the byte at the given index. Does not change position of the underlying ByteBuffers</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-int-">get</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the byte at the given index</dd>
</dl>
</li>
</ul>
<a name="getByteAfterPosition-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getByteAfterPosition</h4>
<pre>public&nbsp;byte&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.194">getByteAfterPosition</a>(int&nbsp;offset)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getByteAfterPosition-int-">ByteBuff</a></code></span></div>
<div class="block">Fetches the byte at the given offset from current position. Does not change position
of the underlying ByteBuffers.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getByteAfterPosition-int-">getByteAfterPosition</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the byte value at the given index.</dd>
</dl>
</li>
</ul>
<a name="put-byte-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.200">put</a>(byte&nbsp;b)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-byte-">ByteBuff</a></code></span></div>
<div class="block">Writes a byte to this ByteBuff at the current position and increments the position</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-byte-">put</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this object</dd>
</dl>
</li>
</ul>
<a name="put-int-byte-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.207">put</a>(int&nbsp;index,
byte&nbsp;b)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-int-byte-">ByteBuff</a></code></span></div>
<div class="block">Writes a byte to this ByteBuff at the given index</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-int-byte-">put</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this object</dd>
</dl>
</li>
</ul>
<a name="get-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.214">get</a>(byte[]&nbsp;dst,
int&nbsp;offset,
int&nbsp;length)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-byte:A-int-int-">ByteBuff</a></code></span></div>
<div class="block">Copies the specified number of bytes from this ByteBuff's current position to
the byte[]'s offset. Also advances the position of the ByteBuff by the given length.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-byte:A-int-int-">get</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dd><code>offset</code> - within the current array</dd>
<dd><code>length</code> - upto which the bytes to be copied</dd>
</dl>
</li>
</ul>
<a name="get-int-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.221">get</a>(int&nbsp;sourceOffset,
byte[]&nbsp;dst,
int&nbsp;offset,
int&nbsp;length)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-int-byte:A-int-int-">ByteBuff</a></code></span></div>
<div class="block">Copies the specified number of bytes from this ByteBuff's given position to
the byte[]'s offset. The position of the ByteBuff remains in the current position only</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-int-byte:A-int-int-">get</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>sourceOffset</code> - the offset in this ByteBuff from where the copy should happen</dd>
<dd><code>dst</code> - the byte[] to which the ByteBuff's content is to be copied</dd>
<dd><code>offset</code> - within the current array</dd>
<dd><code>length</code> - upto which the bytes to be copied</dd>
</dl>
</li>
</ul>
<a name="get-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.227">get</a>(byte[]&nbsp;dst)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-byte:A-">ByteBuff</a></code></span></div>
<div class="block">Copies the content from this ByteBuff's current position to the byte array and fills it. Also
advances the position of the ByteBuff by the length of the byte[].</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-byte:A-">get</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
</dl>
</li>
</ul>
<a name="put-int-org.apache.hadoop.hbase.nio.ByteBuff-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.232">put</a>(int&nbsp;offset,
<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a>&nbsp;src,
int&nbsp;srcOffset,
int&nbsp;length)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-int-org.apache.hadoop.hbase.nio.ByteBuff-int-int-">ByteBuff</a></code></span></div>
<div class="block">Copies the contents from the src ByteBuff to this ByteBuff. This will be
absolute positional copying and
won't affect the position of any of the buffers.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-int-org.apache.hadoop.hbase.nio.ByteBuff-int-int-">put</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>offset</code> - the position in this ByteBuff to which the copy should happen</dd>
<dd><code>src</code> - the src ByteBuff</dd>
<dd><code>srcOffset</code> - the offset in the src ByteBuff from where the elements should be read</dd>
<dd><code>length</code> - the length up to which the copy should happen</dd>
</dl>
</li>
</ul>
<a name="put-byte:A-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.251">put</a>(byte[]&nbsp;src,
int&nbsp;offset,
int&nbsp;length)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-byte:A-int-int-">ByteBuff</a></code></span></div>
<div class="block">Copies from the given byte[] to this ByteBuff</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-byte:A-int-int-">put</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dd><code>offset</code> - the position in the byte array from which the copy should be done</dd>
<dd><code>length</code> - the length upto which the copy should happen</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this ByteBuff</dd>
</dl>
</li>
</ul>
<a name="put-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>put</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.258">put</a>(byte[]&nbsp;src)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-byte:A-">ByteBuff</a></code></span></div>
<div class="block">Copies from the given byte[] to this ByteBuff</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-byte:A-">put</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this ByteBuff</dd>
</dl>
</li>
</ul>
<a name="hasArray--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasArray</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.264">hasArray</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#hasArray--">hasArray</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true or false if the underlying BB support hasArray</dd>
</dl>
</li>
</ul>
<a name="array--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>array</h4>
<pre>public&nbsp;byte[]&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.270">array</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#array--">array</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the byte[] if the underlying BB has single BB and hasArray true</dd>
</dl>
</li>
</ul>
<a name="arrayOffset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayOffset</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.276">arrayOffset</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#arrayOffset--">arrayOffset</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the arrayOffset of the byte[] incase of a single BB backed ByteBuff</dd>
</dl>
</li>
</ul>
<a name="getShort--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShort</h4>
<pre>public&nbsp;short&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.282">getShort</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getShort--">ByteBuff</a></code></span></div>
<div class="block">Returns the short value at the current position. Also advances the position by the size
of short</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getShort--">getShort</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the short value at the current position</dd>
</dl>
</li>
</ul>
<a name="getShort-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShort</h4>
<pre>public&nbsp;short&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.288">getShort</a>(int&nbsp;index)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getShort-int-">ByteBuff</a></code></span></div>
<div class="block">Fetches the short value at the given index. Does not change position of the
underlying ByteBuffers. The caller is sure that the index will be after
the current position of this ByteBuff. So even if the current short does not fit in the
current item we can safely move to the next item and fetch the remaining bytes forming
the short</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getShort-int-">getShort</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the short value at the given index</dd>
</dl>
</li>
</ul>
<a name="getShortAfterPosition-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShortAfterPosition</h4>
<pre>public&nbsp;short&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.297">getShortAfterPosition</a>(int&nbsp;offset)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getShortAfterPosition-int-">ByteBuff</a></code></span></div>
<div class="block">Fetches the short value at the given offset from current position. Does not change position
of the underlying ByteBuffers.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getShortAfterPosition-int-">getShortAfterPosition</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the short value at the given index.</dd>
</dl>
</li>
</ul>
<a name="getInt--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInt</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.303">getInt</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getInt--">ByteBuff</a></code></span></div>
<div class="block">Returns the int value at the current position. Also advances the position by the size of int</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getInt--">getInt</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the int value at the current position</dd>
</dl>
</li>
</ul>
<a name="putInt-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putInt</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.309">putInt</a>(int&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#putInt-int-">ByteBuff</a></code></span></div>
<div class="block">Writes an int to this ByteBuff at its current position. Also advances the position
by size of int</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#putInt-int-">putInt</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Int value to write</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this object</dd>
</dl>
</li>
</ul>
<a name="getInt-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInt</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.316">getInt</a>(int&nbsp;index)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getInt-int-">ByteBuff</a></code></span></div>
<div class="block">Fetches the int at the given index. Does not change position of the underlying ByteBuffers.
Even if the current int does not fit in the
current item we can safely move to the next item and fetch the remaining bytes forming
the int</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getInt-int-">getInt</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the int value at the given index</dd>
</dl>
</li>
</ul>
<a name="getIntAfterPosition-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIntAfterPosition</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.325">getIntAfterPosition</a>(int&nbsp;offset)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getIntAfterPosition-int-">ByteBuff</a></code></span></div>
<div class="block">Fetches the int value at the given offset from current position. Does not change position
of the underlying ByteBuffers.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getIntAfterPosition-int-">getIntAfterPosition</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the int value at the given index.</dd>
</dl>
</li>
</ul>
<a name="getLong--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLong</h4>
<pre>public&nbsp;long&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.331">getLong</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getLong--">ByteBuff</a></code></span></div>
<div class="block">Returns the long value at the current position. Also advances the position by the size of long</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getLong--">getLong</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the long value at the current position</dd>
</dl>
</li>
</ul>
<a name="putLong-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>putLong</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.337">putLong</a>(long&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#putLong-long-">ByteBuff</a></code></span></div>
<div class="block">Writes a long to this ByteBuff at its current position.
Also advances the position by size of long</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#putLong-long-">putLong</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Long value to write</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>this object</dd>
</dl>
</li>
</ul>
<a name="getLong-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLong</h4>
<pre>public&nbsp;long&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.344">getLong</a>(int&nbsp;index)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getLong-int-">ByteBuff</a></code></span></div>
<div class="block">Fetches the long at the given index. Does not change position of the
underlying ByteBuffers. The caller is sure that the index will be after
the current position of this ByteBuff. So even if the current long does not fit in the
current item we can safely move to the next item and fetch the remaining bytes forming
the long</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getLong-int-">getLong</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the long value at the given index</dd>
</dl>
</li>
</ul>
<a name="getLongAfterPosition-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLongAfterPosition</h4>
<pre>public&nbsp;long&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.353">getLongAfterPosition</a>(int&nbsp;offset)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getLongAfterPosition-int-">ByteBuff</a></code></span></div>
<div class="block">Fetches the long value at the given offset from current position. Does not change position
of the underlying ByteBuffers.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getLongAfterPosition-int-">getLongAfterPosition</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the long value at the given index.</dd>
</dl>
</li>
</ul>
<a name="toBytes-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toBytes</h4>
<pre>public&nbsp;byte[]&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.359">toBytes</a>(int&nbsp;offset,
int&nbsp;length)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#toBytes-int-int-">ByteBuff</a></code></span></div>
<div class="block">Copy the content from this ByteBuff to a byte[] based on the given offset and
length</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#toBytes-int-int-">toBytes</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>offset</code> - the position from where the copy should start</dd>
<dd><code>length</code> - the length upto which the copy has to be done</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>byte[] with the copied contents from this ByteBuff.</dd>
</dl>
</li>
</ul>
<a name="get-java.nio.ByteBuffer-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>get</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.367">get</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;out,
int&nbsp;sourceOffset,
int&nbsp;length)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-java.nio.ByteBuffer-int-int-">ByteBuff</a></code></span></div>
<div class="block">Copies the content from this ByteBuff to a ByteBuffer
Note : This will advance the position marker of <code>out</code> but not change the position maker
for this ByteBuff</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-java.nio.ByteBuffer-int-int-">get</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>out</code> - the ByteBuffer to which the copy has to happen</dd>
<dd><code>sourceOffset</code> - the offset in the ByteBuff from which the elements has
to be copied</dd>
<dd><code>length</code> - the length in this ByteBuff upto which the elements has to be copied</dd>
</dl>
</li>
</ul>
<a name="read-java.nio.channels.ReadableByteChannel-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.373">read</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/ReadableByteChannel.html?is-external=true" title="class or interface in java.nio.channels">ReadableByteChannel</a>&nbsp;channel)
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 class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#read-java.nio.channels.ReadableByteChannel-">ByteBuff</a></code></span></div>
<div class="block">Reads bytes from the given channel into this ByteBuff</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#read-java.nio.channels.ReadableByteChannel-">read</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The number of bytes read from the channel</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="read-java.nio.channels.FileChannel-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>read</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.379">read</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/FileChannel.html?is-external=true" title="class or interface in java.nio.channels">FileChannel</a>&nbsp;channel,
long&nbsp;offset)
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 class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#read-java.nio.channels.FileChannel-long-">ByteBuff</a></code></span></div>
<div class="block">Reads bytes from FileChannel into this ByteBuff</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#read-java.nio.channels.FileChannel-long-">read</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></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-java.nio.channels.FileChannel-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>write</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.385">write</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/FileChannel.html?is-external=true" title="class or interface in java.nio.channels">FileChannel</a>&nbsp;channel,
long&nbsp;offset)
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 class:&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#write-java.nio.channels.FileChannel-long-">ByteBuff</a></code></span></div>
<div class="block">Write this ByteBuff's data into target file</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#write-java.nio.channels.FileChannel-long-">write</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></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="nioByteBuffers--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nioByteBuffers</h4>
<pre>public&nbsp;<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;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.397">nioByteBuffers</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#nioByteBuffers--">nioByteBuffers</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></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/nio/SingleByteBuff.html#line.403">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;obj)</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#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/nio/SingleByteBuff.html#line.411">hashCode</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#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="retain--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>retain</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/hadoop/hbase/nio/SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line.416">retain</a>()</pre>
</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/SingleByteBuff.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/nio/RefCnt.html" title="class in org.apache.hadoop.hbase.nio"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/hadoop/hbase/nio/SingleByteBuff.html" target="_top">Frames</a></li>
<li><a href="SingleByteBuff.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.classes.inherited.from.class.org.apache.hadoop.hbase.nio.ByteBuff">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>