| <!DOCTYPE HTML> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (17) --> |
| <title>SingleByteBuff (Apache HBase 4.0.0-alpha-1-SNAPSHOT API)</title> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="description" content="declaration: package: org.apache.hadoop.hbase.nio, class: SingleByteBuff"> |
| <meta name="generator" content="javadoc/ClassWriterImpl"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.min.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../script-dir/jquery-3.6.1.min.js"></script> |
| <script type="text/javascript" src="../../../../../script-dir/jquery-ui.min.js"></script> |
| </head> |
| <body class="class-declaration-page"> |
| <script type="text/javascript">var evenRowColor = "even-row-color"; |
| var oddRowColor = "odd-row-color"; |
| var tableTab = "table-tab"; |
| var activeTableTab = "active-table-tab"; |
| var pathtoroot = "../../../../../"; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <div class="flex-box"> |
| <header role="banner" class="flex-header"> |
| <nav role="navigation"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="top-nav" id="navbar-top"> |
| <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> |
| <ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> |
| <li><a href="../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="nav-bar-cell1-rev">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#class">Help</a></li> |
| </ul> |
| </div> |
| <div class="sub-nav"> |
| <div> |
| <ul class="sub-nav-list"> |
| <li>Summary: </li> |
| <li><a href="#nested-class-summary">Nested</a> | </li> |
| <li><a href="#field-summary">Field</a> | </li> |
| <li><a href="#constructor-summary">Constr</a> | </li> |
| <li><a href="#method-summary">Method</a></li> |
| </ul> |
| <ul class="sub-nav-list"> |
| <li>Detail: </li> |
| <li><a href="#field-detail">Field</a> | </li> |
| <li><a href="#constructor-detail">Constr</a> | </li> |
| <li><a href="#method-detail">Method</a></li> |
| </ul> |
| </div> |
| <div class="nav-list-search"><label for="search-input">SEARCH:</label> |
| <input type="text" id="search-input" value="search" disabled="disabled"> |
| <input type="reset" id="reset-button" value="reset" disabled="disabled"> |
| </div> |
| </div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <span class="skip-nav" id="skip-navbar-top"></span></nav> |
| </header> |
| <div class="flex-content"> |
| <main role="main"> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="sub-title"><span class="package-label-in-type">Package</span> <a href="package-summary.html">org.apache.hadoop.hbase.nio</a></div> |
| <h1 title="Class SingleByteBuff" class="title">Class SingleByteBuff</h1> |
| </div> |
| <div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a> |
| <div class="inheritance"><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">org.apache.hadoop.hbase.nio.ByteBuff</a> |
| <div class="inheritance">org.apache.hadoop.hbase.nio.SingleByteBuff</div> |
| </div> |
| </div> |
| <section class="class-description" id="class-description"> |
| <dl class="notes"> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><code><a href="HBaseReferenceCounted.html" title="interface in org.apache.hadoop.hbase.nio">HBaseReferenceCounted</a></code>, <code>org.apache.hbase.thirdparty.io.netty.util.ReferenceCounted</code></dd> |
| </dl> |
| <hr> |
| <div class="type-signature"><span class="annotations">@Private |
| </span><span class="modifiers">public class </span><span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-37">SingleByteBuff</a></span> |
| <span class="extends-implements">extends <a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></span></div> |
| <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> |
| </section> |
| <section class="summary"> |
| <ul class="summary-list"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <li> |
| <section class="nested-class-summary" id="nested-class-summary"> |
| <h2>Nested Class Summary</h2> |
| <div class="inherited-list"> |
| <h2 id="nested-classes-inherited-from-class-org.apache.hadoop.hbase.nio.ByteBuff">Nested classes/interfaces inherited from class org.apache.hadoop.hbase.nio.<a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></h2> |
| <code><a href="ByteBuff.ChannelReader.html" title="interface in org.apache.hadoop.hbase.nio">ByteBuff.ChannelReader</a></code></div> |
| </section> |
| </li> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <li> |
| <section class="field-summary" id="field-summary"> |
| <h2>Field Summary</h2> |
| <div class="caption"><span>Fields</span></div> |
| <div class="summary-table three-column-summary"> |
| <div class="table-header col-first">Modifier and Type</div> |
| <div class="table-header col-second">Field</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-first even-row-color"><code>private final <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a></code></div> |
| <div class="col-second even-row-color"><code><a href="#buf" class="member-name-link">buf</a></code></div> |
| <div class="col-last even-row-color"> </div> |
| <div class="col-first odd-row-color"><code>private static final boolean</code></div> |
| <div class="col-second odd-row-color"><code><a href="#UNSAFE_AVAIL" class="member-name-link">UNSAFE_AVAIL</a></code></div> |
| <div class="col-last odd-row-color"> </div> |
| <div class="col-first even-row-color"><code>private static final boolean</code></div> |
| <div class="col-second even-row-color"><code><a href="#UNSAFE_UNALIGNED" class="member-name-link">UNSAFE_UNALIGNED</a></code></div> |
| <div class="col-last even-row-color"> </div> |
| <div class="col-first odd-row-color"><code>private long</code></div> |
| <div class="col-second odd-row-color"><code><a href="#unsafeOffset" class="member-name-link">unsafeOffset</a></code></div> |
| <div class="col-last odd-row-color"> </div> |
| <div class="col-first even-row-color"><code>private <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></div> |
| <div class="col-second even-row-color"><code><a href="#unsafeRef" class="member-name-link">unsafeRef</a></code></div> |
| <div class="col-last even-row-color"> </div> |
| </div> |
| <div class="inherited-list"> |
| <h3 id="fields-inherited-from-class-org.apache.hadoop.hbase.nio.ByteBuff">Fields inherited from class org.apache.hadoop.hbase.nio.<a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></h3> |
| <code><a href="ByteBuff.html#CHANNEL_READER">CHANNEL_READER</a>, <a href="ByteBuff.html#FILE_READER">FILE_READER</a>, <a href="ByteBuff.html#refCnt">refCnt</a></code></div> |
| </section> |
| </li> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <li> |
| <section class="constructor-summary" id="constructor-summary"> |
| <h2>Constructor Summary</h2> |
| <div class="caption"><span>Constructors</span></div> |
| <div class="summary-table two-column-summary"> |
| <div class="table-header col-first">Constructor</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.nio.ByteBuffer)" class="member-name-link">SingleByteBuff</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a> buf)</code></div> |
| <div class="col-last even-row-color"> </div> |
| <div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler,java.nio.ByteBuffer)" class="member-name-link">SingleByteBuff</a><wbr>(<a href="../io/ByteBuffAllocator.Recycler.html" title="interface in org.apache.hadoop.hbase.io">ByteBuffAllocator.Recycler</a> recycler, |
| <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a> buf)</code></div> |
| <div class="col-last odd-row-color"> </div> |
| <div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(org.apache.hadoop.hbase.nio.RefCnt,java.nio.ByteBuffer)" class="member-name-link">SingleByteBuff</a><wbr>(<a href="RefCnt.html" title="class in org.apache.hadoop.hbase.nio">RefCnt</a> refCnt, |
| <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a> buf)</code></div> |
| <div class="col-last even-row-color"> </div> |
| </div> |
| </section> |
| </li> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <li> |
| <section class="method-summary" id="method-summary"> |
| <h2>Method Summary</h2> |
| <div id="method-summary-table"> |
| <div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div> |
| <div id="method-summary-table.tabpanel" role="tabpanel" aria-labelledby="method-summary-table-tab0"> |
| <div class="summary-table three-column-summary"> |
| <div class="table-header col-first">Modifier and Type</div> |
| <div class="table-header col-second">Method</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>byte[]</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#array()" class="member-name-link">array</a>()</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns the byte[] if the underlying BB has single BB and hasArray true</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#arrayOffset()" class="member-name-link">arrayOffset</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns the arrayOffset of the byte[] incase of a single BB backed ByteBuff</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#asSubByteBuffer(int)" class="member-name-link">asSubByteBuffer</a><wbr>(int length)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns bytes from current position till length specified, as a single ByteBuffer.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#asSubByteBuffer(int,int,org.apache.hadoop.hbase.util.ObjectIntPair)" class="member-name-link">asSubByteBuffer</a><wbr>(int offset, |
| int length, |
| <a href="../util/ObjectIntPair.html" title="class in org.apache.hadoop.hbase.util">ObjectIntPair</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a>> pair)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns bytes from given offset till length specified, as a single ByteBuffer.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#capacity()" class="member-name-link">capacity</a>()</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns the total capacity of this ByteBuff.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#duplicate()" class="member-name-link">duplicate</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns an ByteBuff which is a duplicate version of this ByteBuff.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#equals(java.lang.Object)" class="member-name-link">equals</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a> obj)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>byte</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#get()" class="member-name-link">get</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">A relative method that returns byte at the current position.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#get(byte%5B%5D)" class="member-name-link">get</a><wbr>(byte[] dst)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Copies the content from this ByteBuff's current position to the byte array and fills it.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#get(byte%5B%5D,int,int)" class="member-name-link">get</a><wbr>(byte[] dst, |
| int offset, |
| int length)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Copies the specified number of bytes from this ByteBuff's current position to the byte[]'s |
| offset.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>byte</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#get(int)" class="member-name-link">get</a><wbr>(int index)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Fetches the byte at the given index.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#get(int,byte%5B%5D,int,int)" class="member-name-link">get</a><wbr>(int sourceOffset, |
| byte[] dst, |
| int offset, |
| int length)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Copies the specified number of bytes from this ByteBuff's given position to the byte[]'s |
| offset.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#get(java.nio.ByteBuffer,int,int)" class="member-name-link">get</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a> out, |
| int sourceOffset, |
| int length)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <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> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>byte</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getByteAfterPosition(int)" class="member-name-link">getByteAfterPosition</a><wbr>(int offset)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Fetches the byte at the given offset from current position.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getInt()" class="member-name-link">getInt</a>()</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns the int value at the current position.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getInt(int)" class="member-name-link">getInt</a><wbr>(int index)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Fetches the int at the given index.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getIntAfterPosition(int)" class="member-name-link">getIntAfterPosition</a><wbr>(int offset)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Fetches the int value at the given offset from current position.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>long</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getLong()" class="member-name-link">getLong</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns the long value at the current position.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>long</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getLong(int)" class="member-name-link">getLong</a><wbr>(int index)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Fetches the long at the given index.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>long</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getLongAfterPosition(int)" class="member-name-link">getLongAfterPosition</a><wbr>(int offset)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Fetches the long value at the given offset from current position.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>short</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getShort()" class="member-name-link">getShort</a>()</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns the short value at the current position.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>short</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getShort(int)" class="member-name-link">getShort</a><wbr>(int index)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Fetches the short value at the given index.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>short</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getShortAfterPosition(int)" class="member-name-link">getShortAfterPosition</a><wbr>(int offset)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Fetches the short value at the given offset from current position.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#hasArray()" class="member-name-link">hasArray</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns true or false if the underlying BB support hasArray</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#hashCode()" class="member-name-link">hashCode</a>()</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>boolean</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#hasRemaining()" class="member-name-link">hasRemaining</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns true if there are elements between the current position and the limit.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#limit()" class="member-name-link">limit</a>()</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns the limit of this ByteBuff</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#limit(int)" class="member-name-link">limit</a><wbr>(int limit)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Marks the limit of this ByteBuff</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#mark()" class="member-name-link">mark</a>()</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Marks the current position of the ByteBuff</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#moveBack(int)" class="member-name-link">moveBack</a><wbr>(int len)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Jumps back the current position of this ByteBuff by specified length.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a>[]</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#nioByteBuffers()" class="member-name-link">nioByteBuffers</a>()</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#position()" class="member-name-link">position</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns this ByteBuff's current position</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#position(int)" class="member-name-link">position</a><wbr>(int position)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Sets this ByteBuff's position to the given value.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#put(byte)" class="member-name-link">put</a><wbr>(byte b)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Writes a byte to this ByteBuff at the current position and increments the position</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#put(byte%5B%5D)" class="member-name-link">put</a><wbr>(byte[] src)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Copies from the given byte[] to this ByteBuff</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#put(byte%5B%5D,int,int)" class="member-name-link">put</a><wbr>(byte[] src, |
| int offset, |
| int length)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Copies from the given byte[] to this ByteBuff</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#put(int,byte)" class="member-name-link">put</a><wbr>(int index, |
| byte b)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Writes a byte to this ByteBuff at the given index</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#put(int,org.apache.hadoop.hbase.nio.ByteBuff,int,int)" class="member-name-link">put</a><wbr>(int offset, |
| <a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> src, |
| int srcOffset, |
| int length)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Copies the contents from the src ByteBuff to this ByteBuff.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#putInt(int)" class="member-name-link">putInt</a><wbr>(int value)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Writes an int to this ByteBuff at its current position.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#putLong(long)" class="member-name-link">putLong</a><wbr>(long value)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Writes a long to this ByteBuff at its current position.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#read(java.nio.channels.FileChannel,long)" class="member-name-link">read</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/channels/FileChannel.html" title="class or interface in java.nio.channels" class="external-link">FileChannel</a> channel, |
| long offset)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Reads bytes from FileChannel into this ByteBuff</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#read(java.nio.channels.ReadableByteChannel)" class="member-name-link">read</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/channels/ReadableByteChannel.html" title="class or interface in java.nio.channels" class="external-link">ReadableByteChannel</a> channel)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Reads bytes from the given channel into this ByteBuf.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#remaining()" class="member-name-link">remaining</a>()</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns the number of elements between the current position and the limit.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#reset()" class="member-name-link">reset</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Similar to <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link"><code>ByteBuffer</code></a>.reset(), ensures that this ByteBuff is reset back to last marked |
| position.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#retain()" class="member-name-link">retain</a>()</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#rewind()" class="member-name-link">rewind</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Rewinds this ByteBuff and the position is set to 0</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#skip(int)" class="member-name-link">skip</a><wbr>(int len)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Jumps the current position of this ByteBuff by specified length.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#slice()" class="member-name-link">slice</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns an ByteBuff which is a sliced version of this ByteBuff.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>byte[]</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#toBytes(int,int)" class="member-name-link">toBytes</a><wbr>(int offset, |
| int length)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Copy the content from this ByteBuff to a byte[] based on the given offset and length.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#write(java.nio.channels.FileChannel,long)" class="member-name-link">write</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/channels/FileChannel.html" title="class or interface in java.nio.channels" class="external-link">FileChannel</a> channel, |
| long offset)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Write this ByteBuff's data into target file</div> |
| </div> |
| </div> |
| </div> |
| </div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-org.apache.hadoop.hbase.nio.ByteBuff">Methods inherited from class org.apache.hadoop.hbase.nio.<a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></h3> |
| <code><a href="ByteBuff.html#checkRefCount()">checkRefCount</a>, <a href="ByteBuff.html#compareTo(org.apache.hadoop.hbase.nio.ByteBuff,int,int,org.apache.hadoop.hbase.nio.ByteBuff,int,int)">compareTo</a>, <a href="ByteBuff.html#getRefCnt()">getRefCnt</a>, <a href="ByteBuff.html#read(java.nio.channels.ReadableByteChannel,java.nio.ByteBuffer,long,org.apache.hadoop.hbase.nio.ByteBuff.ChannelReader)">read</a>, <a href="ByteBuff.html#readCompressedInt(org.apache.hadoop.hbase.nio.ByteBuff)">readCompressedInt</a>, <a href="ByteBuff.html#readLong(org.apache.hadoop.hbase.nio.ByteBuff,int)">readLong</a>, <a href="ByteBuff.html#refCnt()">refCnt</a>, <a href="ByteBuff.html#release()">release</a>, <a href="ByteBuff.html#toBytes()">toBytes</a>, <a href="ByteBuff.html#toString()">toString</a>, <a href="ByteBuff.html#touch()">touch</a>, <a href="ByteBuff.html#touch(java.lang.Object)">touch</a>, <a href="ByteBuff.html#wrap(java.nio.ByteBuffer)">wrap</a>, <a href="ByteBuff.html#wrap(java.nio.ByteBuffer%5B%5D)">wrap</a>, <a href="ByteBuff.html#wrap(java.nio.ByteBuffer%5B%5D,org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler)">wrap</a>, <a href="ByteBuff.html#wrap(java.nio.ByteBuffer%5B%5D,org.apache.hadoop.hbase.nio.RefCnt)">wrap</a>, <a href="ByteBuff.html#wrap(java.util.List)">wrap</a>, <a href="ByteBuff.html#wrap(java.util.List,org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler)">wrap</a></code></div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3> |
| <code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-org.apache.hadoop.hbase.nio.HBaseReferenceCounted">Methods inherited from interface org.apache.hadoop.hbase.nio.<a href="HBaseReferenceCounted.html" title="interface in org.apache.hadoop.hbase.nio">HBaseReferenceCounted</a></h3> |
| <code><a href="HBaseReferenceCounted.html#release(int)">release</a>, <a href="HBaseReferenceCounted.html#retain(int)">retain</a></code></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <section class="details"> |
| <ul class="details-list"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <li> |
| <section class="field-details" id="field-detail"> |
| <h2>Field Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="UNSAFE_AVAIL"> |
| <h3>UNSAFE_AVAIL</h3> |
| <div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">boolean</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-40">UNSAFE_AVAIL</a></span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="UNSAFE_UNALIGNED"> |
| <h3>UNSAFE_UNALIGNED</h3> |
| <div class="member-signature"><span class="modifiers">private static final</span> <span class="return-type">boolean</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-41">UNSAFE_UNALIGNED</a></span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="buf"> |
| <h3>buf</h3> |
| <div class="member-signature"><span class="modifiers">private final</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-44">buf</a></span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="unsafeOffset"> |
| <h3>unsafeOffset</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="return-type">long</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-47">unsafeOffset</a></span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="unsafeRef"> |
| <h3>unsafeRef</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-48">unsafeRef</a></span></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <li> |
| <section class="constructor-details" id="constructor-detail"> |
| <h2>Constructor Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="<init>(java.nio.ByteBuffer)"> |
| <h3>SingleByteBuff</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-50">SingleByteBuff</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a> buf)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="<init>(org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler,java.nio.ByteBuffer)"> |
| <h3>SingleByteBuff</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-54">SingleByteBuff</a></span><wbr><span class="parameters">(<a href="../io/ByteBuffAllocator.Recycler.html" title="interface in org.apache.hadoop.hbase.io">ByteBuffAllocator.Recycler</a> recycler, |
| <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a> buf)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="<init>(org.apache.hadoop.hbase.nio.RefCnt,java.nio.ByteBuffer)"> |
| <h3>SingleByteBuff</h3> |
| <div class="member-signature"><span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-58">SingleByteBuff</a></span><wbr><span class="parameters">(<a href="RefCnt.html" title="class in org.apache.hadoop.hbase.nio">RefCnt</a> refCnt, |
| <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a> buf)</span></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| <!-- ============ METHOD DETAIL ========== --> |
| <li> |
| <section class="method-details" id="method-detail"> |
| <h2>Method Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="position()"> |
| <h3>position</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-69">position</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#position()">ByteBuff</a></code></span></div> |
| <div class="block">Returns this ByteBuff's current position</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#position()">position</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="position(int)"> |
| <h3>position</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-75">position</a></span><wbr><span class="parameters">(int position)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#position(int)">ByteBuff</a></code></span></div> |
| <div class="block">Sets this ByteBuff's position to the given value.</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#position(int)">position</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>this object</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="skip(int)"> |
| <h3>skip</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-82">skip</a></span><wbr><span class="parameters">(int len)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#skip(int)">ByteBuff</a></code></span></div> |
| <div class="block">Jumps the current position of this ByteBuff by specified length.</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#skip(int)">skip</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Parameters:</dt> |
| <dd><code>len</code> - the length to be skipped</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="moveBack(int)"> |
| <h3>moveBack</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-89">moveBack</a></span><wbr><span class="parameters">(int len)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#moveBack(int)">moveBack</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Parameters:</dt> |
| <dd><code>len</code> - the length to move back</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="capacity()"> |
| <h3>capacity</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-96">capacity</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#capacity()">ByteBuff</a></code></span></div> |
| <div class="block">Returns the total capacity of this ByteBuff.</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#capacity()">capacity</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="limit()"> |
| <h3>limit</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-102">limit</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#limit()">ByteBuff</a></code></span></div> |
| <div class="block">Returns the limit of this ByteBuff</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#limit()">limit</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="limit(int)"> |
| <h3>limit</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-108">limit</a></span><wbr><span class="parameters">(int limit)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#limit(int)">ByteBuff</a></code></span></div> |
| <div class="block">Marks the limit of this ByteBuff</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#limit(int)">limit</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="rewind()"> |
| <h3>rewind</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-115">rewind</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#rewind()">ByteBuff</a></code></span></div> |
| <div class="block">Rewinds this ByteBuff and the position is set to 0</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#rewind()">rewind</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="mark()"> |
| <h3>mark</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-122">mark</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#mark()">ByteBuff</a></code></span></div> |
| <div class="block">Marks the current position of the ByteBuff</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#mark()">mark</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="asSubByteBuffer(int)"> |
| <h3>asSubByteBuffer</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-129">asSubByteBuffer</a></span><wbr><span class="parameters">(int length)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#asSubByteBuffer(int)">asSubByteBuffer</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Parameters:</dt> |
| <dd><code>length</code> - number of bytes required.</dd> |
| <dt>Returns:</dt> |
| <dd>bytes from current position till length specified, as a single ByteButter.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="asSubByteBuffer(int,int,org.apache.hadoop.hbase.util.ObjectIntPair)"> |
| <h3>asSubByteBuffer</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-136">asSubByteBuffer</a></span><wbr><span class="parameters">(int offset, |
| int length, |
| <a href="../util/ObjectIntPair.html" title="class in org.apache.hadoop.hbase.util">ObjectIntPair</a><<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a>> pair)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#asSubByteBuffer(int,int,org.apache.hadoop.hbase.util.ObjectIntPair)">asSubByteBuffer</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Parameters:</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> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="remaining()"> |
| <h3>remaining</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-144">remaining</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#remaining()">remaining</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="hasRemaining()"> |
| <h3>hasRemaining</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-150">hasRemaining</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#hasRemaining()">ByteBuff</a></code></span></div> |
| <div class="block">Returns true if there are elements between the current position and the limit.</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#hasRemaining()">hasRemaining</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="reset()"> |
| <h3>reset</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-156">reset</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#reset()">ByteBuff</a></code></span></div> |
| <div class="block">Similar to <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link"><code>ByteBuffer</code></a>.reset(), ensures that this ByteBuff is reset back to last marked |
| position.</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#reset()">reset</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>This ByteBuff</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="slice()"> |
| <h3>slice</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-163">slice</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#slice()">slice</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>a sliced ByteBuff</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="duplicate()"> |
| <h3>duplicate</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-169">duplicate</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#duplicate()">duplicate</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>a sliced ByteBuff</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="get()"> |
| <h3>get</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-175">get</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#get()">get</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>the byte at the current position</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="get(int)"> |
| <h3>get</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-181">get</a></span><wbr><span class="parameters">(int index)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#get(int)">get</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>the byte at the given index</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getByteAfterPosition(int)"> |
| <h3>getByteAfterPosition</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-190">getByteAfterPosition</a></span><wbr><span class="parameters">(int offset)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#getByteAfterPosition(int)">getByteAfterPosition</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>the byte value at the given index.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="put(byte)"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-196">put</a></span><wbr><span class="parameters">(byte b)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#put(byte)">put</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>this object</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="put(int,byte)"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-203">put</a></span><wbr><span class="parameters">(int index, |
| byte b)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#put(int,byte)">put</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>this object</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="get(byte[],int,int)"> |
| <h3>get</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-210">get</a></span><wbr><span class="parameters">(byte[] dst, |
| int offset, |
| int length)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#get(byte%5B%5D,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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#get(byte%5B%5D,int,int)">get</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Parameters:</dt> |
| <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> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="get(int,byte[],int,int)"> |
| <h3>get</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-217">get</a></span><wbr><span class="parameters">(int sourceOffset, |
| byte[] dst, |
| int offset, |
| int length)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#get(int,byte%5B%5D,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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#get(int,byte%5B%5D,int,int)">get</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Parameters:</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> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="get(byte[])"> |
| <h3>get</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-223">get</a></span><wbr><span class="parameters">(byte[] dst)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#get(byte%5B%5D)">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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#get(byte%5B%5D)">get</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Parameters:</dt> |
| <dd><code>dst</code> - the byte[] to which the ByteBuff's content is to be copied</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="put(int,org.apache.hadoop.hbase.nio.ByteBuff,int,int)"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-228">put</a></span><wbr><span class="parameters">(int offset, |
| <a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> src, |
| int srcOffset, |
| int length)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#put(int,org.apache.hadoop.hbase.nio.ByteBuff,int,int)">put</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Parameters:</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> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="put(byte[],int,int)"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-247">put</a></span><wbr><span class="parameters">(byte[] src, |
| int offset, |
| int length)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#put(byte%5B%5D,int,int)">ByteBuff</a></code></span></div> |
| <div class="block">Copies from the given byte[] to this ByteBuff</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#put(byte%5B%5D,int,int)">put</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Parameters:</dt> |
| <dd><code>src</code> - source byte array</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>Returns:</dt> |
| <dd>this ByteBuff</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="put(byte[])"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-254">put</a></span><wbr><span class="parameters">(byte[] src)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#put(byte%5B%5D)">ByteBuff</a></code></span></div> |
| <div class="block">Copies from the given byte[] to this ByteBuff</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#put(byte%5B%5D)">put</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Parameters:</dt> |
| <dd><code>src</code> - source byte array</dd> |
| <dt>Returns:</dt> |
| <dd>this ByteBuff</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="hasArray()"> |
| <h3>hasArray</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-260">hasArray</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#hasArray()">ByteBuff</a></code></span></div> |
| <div class="block">Returns true or false if the underlying BB support hasArray</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#hasArray()">hasArray</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="array()"> |
| <h3>array</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">byte[]</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-266">array</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#array()">ByteBuff</a></code></span></div> |
| <div class="block">Returns the byte[] if the underlying BB has single BB and hasArray true</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#array()">array</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="arrayOffset()"> |
| <h3>arrayOffset</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-272">arrayOffset</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#arrayOffset()">ByteBuff</a></code></span></div> |
| <div class="block">Returns the arrayOffset of the byte[] incase of a single BB backed ByteBuff</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#arrayOffset()">arrayOffset</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getShort()"> |
| <h3>getShort</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">short</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-278">getShort</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#getShort()">getShort</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getShort(int)"> |
| <h3>getShort</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">short</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-284">getShort</a></span><wbr><span class="parameters">(int index)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#getShort(int)">getShort</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>the short value at the given index</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getShortAfterPosition(int)"> |
| <h3>getShortAfterPosition</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">short</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-293">getShortAfterPosition</a></span><wbr><span class="parameters">(int offset)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#getShortAfterPosition(int)">getShortAfterPosition</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>the short value at the given index.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getInt()"> |
| <h3>getInt</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-299">getInt</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#getInt()">getInt</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="putInt(int)"> |
| <h3>putInt</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-305">putInt</a></span><wbr><span class="parameters">(int value)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#putInt(int)">putInt</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getInt(int)"> |
| <h3>getInt</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-312">getInt</a></span><wbr><span class="parameters">(int index)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#getInt(int)">getInt</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getIntAfterPosition(int)"> |
| <h3>getIntAfterPosition</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-321">getIntAfterPosition</a></span><wbr><span class="parameters">(int offset)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#getIntAfterPosition(int)">getIntAfterPosition</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getLong()"> |
| <h3>getLong</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">long</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-327">getLong</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#getLong()">getLong</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="putLong(long)"> |
| <h3>putLong</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-333">putLong</a></span><wbr><span class="parameters">(long value)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#putLong(long)">putLong</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getLong(int)"> |
| <h3>getLong</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">long</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-340">getLong</a></span><wbr><span class="parameters">(int index)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#getLong(int)">getLong</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>the long value at the given index</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getLongAfterPosition(int)"> |
| <h3>getLongAfterPosition</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">long</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-349">getLongAfterPosition</a></span><wbr><span class="parameters">(int offset)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#getLongAfterPosition(int)">getLongAfterPosition</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Returns:</dt> |
| <dd>the long value at the given index.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="toBytes(int,int)"> |
| <h3>toBytes</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">byte[]</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-355">toBytes</a></span><wbr><span class="parameters">(int offset, |
| int length)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#toBytes(int,int)">toBytes</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="get(java.nio.ByteBuffer,int,int)"> |
| <h3>get</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">void</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-363">get</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a> out, |
| int sourceOffset, |
| int length)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#get(java.nio.ByteBuffer,int,int)">get</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Parameters:</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> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="read(java.nio.channels.ReadableByteChannel)"> |
| <h3>read</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-369">read</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/channels/ReadableByteChannel.html" title="class or interface in java.nio.channels" class="external-link">ReadableByteChannel</a> channel)</span> |
| throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="ByteBuff.html#read(java.nio.channels.ReadableByteChannel)">ByteBuff</a></code></span></div> |
| <div class="block">Reads bytes from the given channel into this ByteBuf.</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#read(java.nio.channels.ReadableByteChannel)">read</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="read(java.nio.channels.FileChannel,long)"> |
| <h3>read</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-375">read</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/channels/FileChannel.html" title="class or interface in java.nio.channels" class="external-link">FileChannel</a> channel, |
| long offset)</span> |
| throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#read(java.nio.channels.FileChannel,long)">read</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="write(java.nio.channels.FileChannel,long)"> |
| <h3>write</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-381">write</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/channels/FileChannel.html" title="class or interface in java.nio.channels" class="external-link">FileChannel</a> channel, |
| long offset)</span> |
| throws <span class="exceptions"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from class: <code><a href="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 class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#write(java.nio.channels.FileChannel,long)">write</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html" title="class or interface in java.io" class="external-link">IOException</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="nioByteBuffers()"> |
| <h3>nioByteBuffers</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/ByteBuffer.html" title="class or interface in java.nio" class="external-link">ByteBuffer</a>[]</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-393">nioByteBuffers</a></span>()</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteBuff.html#nioByteBuffers()">nioByteBuffers</a></code> in class <code><a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="equals(java.lang.Object)"> |
| <h3>equals</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">boolean</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-399">equals</a></span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a> obj)</span></div> |
| <dl class="notes"> |
| <dt>Overrides:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="external-link">equals</a></code> in class <code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="hashCode()"> |
| <h3>hashCode</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-407">hashCode</a></span>()</div> |
| <dl class="notes"> |
| <dt>Overrides:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a></code> in class <code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="retain()"> |
| <h3>retain</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="SingleByteBuff.html" title="class in org.apache.hadoop.hbase.nio">SingleByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/SingleByteBuff.html#line-412">retain</a></span>()</div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <!-- ========= END OF CLASS DATA ========= --> |
| </main> |
| <footer role="contentinfo"> |
| <hr> |
| <p class="legal-copy"><small>Copyright © 2007–2020 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </div> |
| </div> |
| </body> |
| </html> |