| <!DOCTYPE HTML> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (17) --> |
| <title>MultiByteBuff (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: MultiByteBuff"> |
| <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/MultiByteBuff.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 MultiByteBuff" class="title">Class MultiByteBuff</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.MultiByteBuff</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/MultiByteBuff.html#line-43">MultiByteBuff</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">Provides a unified view of all the underlying ByteBuffers and will look as if a bigger sequential |
| buffer. This class provides similar APIs as in <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> to put/get int, short, long etc |
| and doing operations like mark, reset, slice etc. This has to be used when data is split across |
| multiple byte buffers and we don't want copy them to single buffer for reading from it.</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 <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Iterator.html" title="class or interface in java.util" class="external-link">Iterator</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>></code></div> |
| <div class="col-second even-row-color"><code><a href="#buffsIterator" class="member-name-link">buffsIterator</a></code></div> |
| <div class="col-last even-row-color"> </div> |
| <div class="col-first odd-row-color"><code>private <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 odd-row-color"><code><a href="#curItem" class="member-name-link">curItem</a></code></div> |
| <div class="col-last odd-row-color"> </div> |
| <div class="col-first even-row-color"><code>private int</code></div> |
| <div class="col-second even-row-color"><code><a href="#curItemIndex" class="member-name-link">curItemIndex</a></code></div> |
| <div class="col-last even-row-color"> </div> |
| <div class="col-first odd-row-color"><code>private final int[]</code></div> |
| <div class="col-second odd-row-color"><code><a href="#itemBeginPos" class="member-name-link">itemBeginPos</a></code></div> |
| <div class="col-last odd-row-color"> </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="#items" class="member-name-link">items</a></code></div> |
| <div class="col-last even-row-color"> </div> |
| <div class="col-first odd-row-color"><code>private int</code></div> |
| <div class="col-second odd-row-color"><code><a href="#limit" class="member-name-link">limit</a></code></div> |
| <div class="col-last odd-row-color"> </div> |
| <div class="col-first even-row-color"><code>private int</code></div> |
| <div class="col-second even-row-color"><code><a href="#limitedItemIndex" class="member-name-link">limitedItemIndex</a></code></div> |
| <div class="col-last even-row-color"> </div> |
| <div class="col-first odd-row-color"><code>private int</code></div> |
| <div class="col-second odd-row-color"><code><a href="#markedItemIndex" class="member-name-link">markedItemIndex</a></code></div> |
| <div class="col-last odd-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 three-column-summary"> |
| <div class="table-header col-first">Modifier</div> |
| <div class="table-header col-second">Constructor</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-first even-row-color"><code> </code></div> |
| <div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(java.nio.ByteBuffer...)" class="member-name-link">MultiByteBuff</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>... items)</code></div> |
| <div class="col-last even-row-color"> </div> |
| <div class="col-first odd-row-color"><code> </code></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">MultiByteBuff</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>... items)</code></div> |
| <div class="col-last odd-row-color"> </div> |
| <div class="col-first even-row-color"><code>(package private)</code></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">MultiByteBuff</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>... items)</code></div> |
| <div class="col-last even-row-color"> </div> |
| <div class="col-first odd-row-color"><code>private </code></div> |
| <div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(org.apache.hadoop.hbase.nio.RefCnt,java.nio.ByteBuffer%5B%5D,int%5B%5D,int,int,int,int)" class="member-name-link">MultiByteBuff</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>[] items, |
| int[] itemBeginPos, |
| int limit, |
| int limitedIndex, |
| int curItemIndex, |
| int markedIndex)</code></div> |
| <div class="col-last odd-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-tab1" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab1', 3)" class="table-tab">Static 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 MultiByteBuffer.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</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 MBB which is a duplicate version of this MBB.</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 MBB'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 MBB'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 an this MBB to a ByteBuffer</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>private 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(int,int)" class="member-name-link">getInt</a><wbr>(int index, |
| int itemIndex)</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="#getIntAfterPosition(int)" class="member-name-link">getIntAfterPosition</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 int value at the given offset from current position.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static <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-tab1 method-summary-table-tab4"><code><a href="#getItemByteBuffer(org.apache.hadoop.hbase.nio.ByteBuff,int)" class="member-name-link">getItemByteBuffer</a><wbr>(<a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> buf, |
| int byteBufferIndex)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static int</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getItemByteBufferCount(org.apache.hadoop.hbase.nio.ByteBuff)" class="member-name-link">getItemByteBufferCount</a><wbr>(<a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> buf)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private int</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getItemIndex(int)" class="member-name-link">getItemIndex</a><wbr>(int elemIndex)</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-tab1 method-summary-table-tab4"><code>private static int</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getItemIndexForByteBuff(org.apache.hadoop.hbase.nio.ByteBuff,int,int)" class="member-name-link">getItemIndexForByteBuff</a><wbr>(<a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> byteBuff, |
| int offset, |
| int length)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private int</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getItemIndexFromCurItemIndex(int)" class="member-name-link">getItemIndexFromCurItemIndex</a><wbr>(int elemIndex)</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>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>private 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(int,int)" class="member-name-link">getLong</a><wbr>(int index, |
| int itemIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </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="#getLongAfterPosition(int)" class="member-name-link">getLongAfterPosition</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 long 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>private int</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#getRelativeOffset(int,int)" class="member-name-link">getRelativeOffset</a><wbr>(int globalOffset, |
| int itemIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static int</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#getRelativeOffsetForByteBuff(org.apache.hadoop.hbase.nio.ByteBuff,int,int)" class="member-name-link">getRelativeOffsetForByteBuff</a><wbr>(<a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> byteBuff, |
| int globalOffset, |
| int itemIndex)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </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()" class="member-name-link">getShort</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 short 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>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(int)" class="member-name-link">getShort</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 short 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>private 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,int)" class="member-name-link">getShort</a><wbr>(int index, |
| int itemIndex)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </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 false.</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>final 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 limt</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#int0(int)" class="member-name-link">int0</a><wbr>(int x)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#int1(int)" class="member-name-link">int1</a><wbr>(int x)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#int2(int)" class="member-name-link">int2</a><wbr>(int x)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#int3(int)" class="member-name-link">int3</a><wbr>(int x)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>private int</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#internalRead(java.nio.channels.ReadableByteChannel,long,org.apache.hadoop.hbase.nio.ByteBuff.ChannelReader)" class="member-name-link">internalRead</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, |
| long offset, |
| <a href="ByteBuff.ChannelReader.html" title="interface in org.apache.hadoop.hbase.nio">ByteBuff.ChannelReader</a> reader)</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="#limit()" class="member-name-link">limit</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 limit of this MBB</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></div> |
| <div class="col-second even-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 even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Marks the limit of this MBB.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#long0(long)" class="member-name-link">long0</a><wbr>(long x)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#long1(long)" class="member-name-link">long1</a><wbr>(long x)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#long2(long)" class="member-name-link">long2</a><wbr>(long x)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#long3(long)" class="member-name-link">long3</a><wbr>(long x)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#long4(long)" class="member-name-link">long4</a><wbr>(long x)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#long5(long)" class="member-name-link">long5</a><wbr>(long x)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#long6(long)" class="member-name-link">long6</a><wbr>(long x)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"> </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>private static byte</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><a href="#long7(long)" class="member-name-link">long7</a><wbr>(long x)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab1 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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></div> |
| <div class="col-second odd-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 odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Marks the current position of the MBB</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></div> |
| <div class="col-second even-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 length)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Jumps back the current position of this MBB 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="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 odd-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 odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </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="#position()" class="member-name-link">position</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 this MBB's 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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></div> |
| <div class="col-second odd-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 odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Sets this MBB's position to the given value.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</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)" class="member-name-link">put</a><wbr>(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 MBB at the current position and increments the position</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>final <a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</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)" class="member-name-link">put</a><wbr>(byte[] src)</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 MBB</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</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,int,int)" class="member-name-link">put</a><wbr>(byte[] src, |
| 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">Copies from the given byte[] to this MBB.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</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,byte)" class="member-name-link">put</a><wbr>(int index, |
| 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 MBB at the given index and won't affect the position of any of the |
| buffers.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</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,org.apache.hadoop.hbase.nio.ByteBuff,int,int)" class="member-name-link">put</a><wbr>(int destOffset, |
| <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 even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Copies from a src BB to this MBB.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></div> |
| <div class="col-second odd-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 val)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Writes an int to this MBB 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><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></div> |
| <div class="col-second even-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 val)</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 long to this MBB 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>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.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 odd-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 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.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 even-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 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="#remaining()" class="member-name-link">remaining</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 number of 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><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></div> |
| <div class="col-second even-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 even-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 MBB is reset back to last marked |
| position.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></div> |
| <div class="col-second odd-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 odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></div> |
| <div class="col-second even-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 even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Rewinds this MBB and the position is set to 0</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></div> |
| <div class="col-second odd-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 length)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Jumps the current position of this MBB 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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></div> |
| <div class="col-second even-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 even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Returns an MBB which is a sliced version of this MBB.</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="#toBytes(int,int)" class="member-name-link">toBytes</a><wbr>(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">Copy the content from this MBB to a byte[] based on the given offset and length the position |
| from where the copy should start the length upto which the copy has to be done</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="#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 even-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="items"> |
| <h3>items</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/MultiByteBuff.html#line-46">items</a></span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="curItem"> |
| <h3>curItem</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/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/MultiByteBuff.html#line-48">curItem</a></span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="curItemIndex"> |
| <h3>curItemIndex</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-50">curItemIndex</a></span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="limit"> |
| <h3>limit</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-52">limit</a></span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="limitedItemIndex"> |
| <h3>limitedItemIndex</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-53">limitedItemIndex</a></span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="markedItemIndex"> |
| <h3>markedItemIndex</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-54">markedItemIndex</a></span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="itemBeginPos"> |
| <h3>itemBeginPos</h3> |
| <div class="member-signature"><span class="modifiers">private final</span> <span class="return-type">int[]</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-55">itemBeginPos</a></span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="buffsIterator"> |
| <h3>buffsIterator</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/util/Iterator.html" title="class or interface in java.util" class="external-link">Iterator</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>></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-57">buffsIterator</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>MultiByteBuff</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-74">MultiByteBuff</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>... items)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="<init>(org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler,java.nio.ByteBuffer...)"> |
| <h3>MultiByteBuff</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-78">MultiByteBuff</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>... items)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="<init>(org.apache.hadoop.hbase.nio.RefCnt,java.nio.ByteBuffer...)"> |
| <h3>MultiByteBuff</h3> |
| <div class="member-signature"><span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-82">MultiByteBuff</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>... items)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="<init>(org.apache.hadoop.hbase.nio.RefCnt,java.nio.ByteBuffer[],int[],int,int,int,int)"> |
| <h3>MultiByteBuff</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-106">MultiByteBuff</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>[] items, |
| int[] itemBeginPos, |
| int limit, |
| int limitedIndex, |
| int curItemIndex, |
| int markedIndex)</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="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/MultiByteBuff.html#line-121">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> |
| <dt>Throws:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang" class="external-link">UnsupportedOperationException</a></code> - MBB does not support array based operations</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/MultiByteBuff.html#line-129">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> |
| <dt>Throws:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/UnsupportedOperationException.html" title="class or interface in java.lang" class="external-link">UnsupportedOperationException</a></code> - MBB does not support array based operations</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/MultiByteBuff.html#line-135">hasArray</a></span>()</div> |
| <div class="block">Returns false. MBB does not support array based operations</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="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/MultiByteBuff.html#line-141">capacity</a></span>()</div> |
| <div class="block">Returns the total capacity of this MultiByteBuffer.</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="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/MultiByteBuff.html#line-155">get</a></span><wbr><span class="parameters">(int index)</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/MultiByteBuff.html#line-162">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="getItemIndex(int)"> |
| <h3>getItemIndex</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-174">getItemIndex</a></span><wbr><span class="parameters">(int elemIndex)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getItemIndexFromCurItemIndex(int)"> |
| <h3>getItemIndexFromCurItemIndex</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-192">getItemIndexFromCurItemIndex</a></span><wbr><span class="parameters">(int elemIndex)</span></div> |
| </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/MultiByteBuff.html#line-207">getInt</a></span><wbr><span class="parameters">(int index)</span></div> |
| <div class="block">Fetches the int 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#getInt(int)">getInt</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 int value at the given index</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/MultiByteBuff.html#line-223">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="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/MultiByteBuff.html#line-241">getShort</a></span><wbr><span class="parameters">(int index)</span></div> |
| <div class="block">Fetches the short 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#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/MultiByteBuff.html#line-272">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(int,int)"> |
| <h3>getInt</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-286">getInt</a></span><wbr><span class="parameters">(int index, |
| int itemIndex)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getShort(int,int)"> |
| <h3>getShort</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="return-type">short</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-305">getShort</a></span><wbr><span class="parameters">(int index, |
| int itemIndex)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getLong(int,int)"> |
| <h3>getLong</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/MultiByteBuff.html#line-330">getLong</a></span><wbr><span class="parameters">(int index, |
| int itemIndex)</span></div> |
| </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/MultiByteBuff.html#line-353">getLong</a></span><wbr><span class="parameters">(int index)</span></div> |
| <div class="block">Fetches the long 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#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/MultiByteBuff.html#line-369">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="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/MultiByteBuff.html#line-384">position</a></span>()</div> |
| <div class="block">Returns this MBB'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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-394">position</a></span><wbr><span class="parameters">(int position)</span></div> |
| <div class="block">Sets this MBB'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="rewind()"> |
| <h3>rewind</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-424">rewind</a></span>()</div> |
| <div class="block">Rewinds this MBB 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> |
| <dt>Returns:</dt> |
| <dd>this object</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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-440">mark</a></span>()</div> |
| <div class="block">Marks the current position of the MBB</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> |
| <dt>Returns:</dt> |
| <dd>this object</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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-453">reset</a></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 MBB 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 MBB</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/MultiByteBuff.html#line-474">remaining</a></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> |
| <dt>Returns:</dt> |
| <dd>the remaining elements in this MBB</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="hasRemaining()"> |
| <h3>hasRemaining</h3> |
| <div class="member-signature"><span class="modifiers">public final</span> <span class="return-type">boolean</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-488">hasRemaining</a></span>()</div> |
| <div class="block">Returns true if there are elements between the current position and the limt</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> |
| <dt>Returns:</dt> |
| <dd>true if there are elements, false otherwise</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/MultiByteBuff.html#line-500">get</a></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="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/MultiByteBuff.html#line-519">getShort</a></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> |
| <dt>Returns:</dt> |
| <dd>the short value at the current position</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/MultiByteBuff.html#line-537">getInt</a></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> |
| <dt>Returns:</dt> |
| <dd>the int value at the current position</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/MultiByteBuff.html#line-556">getLong</a></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> |
| <dt>Returns:</dt> |
| <dd>the long value at the current position</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/MultiByteBuff.html#line-575">get</a></span><wbr><span class="parameters">(byte[] dst)</span></div> |
| <div class="block">Copies the content from this MBB's current position to the byte array and fills it. Also |
| advances the position of the MBB 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="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/MultiByteBuff.html#line-584">get</a></span><wbr><span class="parameters">(byte[] dst, |
| int offset, |
| int length)</span></div> |
| <div class="block">Copies the specified number of bytes from this MBB's current position to the byte[]'s offset. |
| Also advances the position of the MBB 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/MultiByteBuff.html#line-600">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="limit(int)"> |
| <h3>limit</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-622">limit</a></span><wbr><span class="parameters">(int limit)</span></div> |
| <div class="block">Marks the limit of this MBB.</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> |
| <dt>Returns:</dt> |
| <dd>This MBB</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/MultiByteBuff.html#line-651">limit</a></span>()</div> |
| <div class="block">Returns the limit of this MBB</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> |
| <dt>Returns:</dt> |
| <dd>limit of the MBB</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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-662">slice</a></span>()</div> |
| <div class="block">Returns an MBB which is a sliced version of this MBB. The position, limit and mark of the new |
| MBB will be independent than that of the original MBB. The content of the new MBB will start at |
| this MBB'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 MBB</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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-679">duplicate</a></span>()</div> |
| <div class="block">Returns an MBB which is a duplicate version of this MBB. The position, limit and mark of the |
| new MBB will be independent than that of the original MBB. The content of the new MBB will |
| start at this MBB's current position The position, limit and mark of the new MBB would be |
| identical to this MBB 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 duplicated MBB</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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-694">put</a></span><wbr><span class="parameters">(byte b)</span></div> |
| <div class="block">Writes a byte to this MBB 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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-715">put</a></span><wbr><span class="parameters">(int index, |
| byte b)</span></div> |
| <div class="block">Writes a byte to this MBB at the given index 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,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> |
| <dt>Throws:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IndexOutOfBoundsException.html" title="class or interface in java.lang" class="external-link">IndexOutOfBoundsException</a></code> - If <tt>index</tt> is negative or not smaller than the |
| <a href="#limit"><code>limit</code></a></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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-736">put</a></span><wbr><span class="parameters">(int destOffset, |
| <a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> src, |
| int srcOffset, |
| int length)</span></div> |
| <div class="block">Copies from a src BB to this MBB. 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>destOffset</code> - the position in this MBB to which the copy should happen</dd> |
| <dd><code>src</code> - the src MBB</dd> |
| <dd><code>srcOffset</code> - the offset in the src MBB from where the elements should be read</dd> |
| <dd><code>length</code> - the length upto which the copy should happen</dd> |
| <dt>Throws:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/BufferUnderflowException.html" title="class or interface in java.nio" class="external-link">BufferUnderflowException</a></code> - If there are fewer than length bytes remaining in src |
| ByteBuff.</dd> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/BufferOverflowException.html" title="class or interface in java.nio" class="external-link">BufferOverflowException</a></code> - If there is insufficient available space in this MBB for |
| length bytes.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getItemByteBuffer(org.apache.hadoop.hbase.nio.ByteBuff,int)"> |
| <h3>getItemByteBuffer</h3> |
| <div class="member-signature"><span class="modifiers">private static</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/MultiByteBuff.html#line-794">getItemByteBuffer</a></span><wbr><span class="parameters">(<a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> buf, |
| int byteBufferIndex)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getItemIndexForByteBuff(org.apache.hadoop.hbase.nio.ByteBuff,int,int)"> |
| <h3>getItemIndexForByteBuff</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-810">getItemIndexForByteBuff</a></span><wbr><span class="parameters">(<a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> byteBuff, |
| int offset, |
| int length)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getRelativeOffsetForByteBuff(org.apache.hadoop.hbase.nio.ByteBuff,int,int)"> |
| <h3>getRelativeOffsetForByteBuff</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-822">getRelativeOffsetForByteBuff</a></span><wbr><span class="parameters">(<a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> byteBuff, |
| int globalOffset, |
| int itemIndex)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getRelativeOffset(int,int)"> |
| <h3>getRelativeOffset</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-833">getRelativeOffset</a></span><wbr><span class="parameters">(int globalOffset, |
| int itemIndex)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="getItemByteBufferCount(org.apache.hadoop.hbase.nio.ByteBuff)"> |
| <h3>getItemByteBufferCount</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-841">getItemByteBufferCount</a></span><wbr><span class="parameters">(<a href="ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> buf)</span></div> |
| </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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-850">putInt</a></span><wbr><span class="parameters">(int val)</span></div> |
| <div class="block">Writes an int to this MBB 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> |
| <dt>Parameters:</dt> |
| <dd><code>val</code> - Int value to write</dd> |
| <dt>Returns:</dt> |
| <dd>this object</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="int3(int)"> |
| <h3>int3</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-868">int3</a></span><wbr><span class="parameters">(int x)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="int2(int)"> |
| <h3>int2</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-872">int2</a></span><wbr><span class="parameters">(int x)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="int1(int)"> |
| <h3>int1</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-876">int1</a></span><wbr><span class="parameters">(int x)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="int0(int)"> |
| <h3>int0</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-880">int0</a></span><wbr><span class="parameters">(int x)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="put(byte[])"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public final</span> <span class="return-type"><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-885">put</a></span><wbr><span class="parameters">(byte[] src)</span></div> |
| <div class="block">Copies from the given byte[] to this MBB</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="put(byte[],int,int)"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-891">put</a></span><wbr><span class="parameters">(byte[] src, |
| int offset, |
| int length)</span></div> |
| <div class="block">Copies from the given byte[] to this MBB.</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="putLong(long)"> |
| <h3>putLong</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-910">putLong</a></span><wbr><span class="parameters">(long val)</span></div> |
| <div class="block">Writes a long to this MBB 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> |
| <dt>Parameters:</dt> |
| <dd><code>val</code> - Long value to write</dd> |
| <dt>Returns:</dt> |
| <dd>this object</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="long7(long)"> |
| <h3>long7</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-932">long7</a></span><wbr><span class="parameters">(long x)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="long6(long)"> |
| <h3>long6</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-936">long6</a></span><wbr><span class="parameters">(long x)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="long5(long)"> |
| <h3>long5</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-940">long5</a></span><wbr><span class="parameters">(long x)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="long4(long)"> |
| <h3>long4</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-944">long4</a></span><wbr><span class="parameters">(long x)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="long3(long)"> |
| <h3>long3</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-948">long3</a></span><wbr><span class="parameters">(long x)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="long2(long)"> |
| <h3>long2</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-952">long2</a></span><wbr><span class="parameters">(long x)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="long1(long)"> |
| <h3>long1</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-956">long1</a></span><wbr><span class="parameters">(long x)</span></div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="long0(long)"> |
| <h3>long0</h3> |
| <div class="member-signature"><span class="modifiers">private static</span> <span class="return-type">byte</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-960">long0</a></span><wbr><span class="parameters">(long x)</span></div> |
| </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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-967">skip</a></span><wbr><span class="parameters">(int length)</span></div> |
| <div class="block">Jumps the current position of this MBB 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>length</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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-989">moveBack</a></span><wbr><span class="parameters">(int length)</span></div> |
| <div class="block">Jumps back the current position of this MBB 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>length</code> - the length to move back</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/MultiByteBuff.html#line-1016">asSubByteBuffer</a></span><wbr><span class="parameters">(int length)</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/MultiByteBuff.html#line-1052">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">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 MBB 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. The |
| method would set the values on the pair that is passed in by the caller</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/MultiByteBuff.html#line-1094">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">Copies the content from an this MBB to a ByteBuffer</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, its position will be |
| advanced.</dd> |
| <dd><code>sourceOffset</code> - the offset in the MBB from which the elements has to be copied</dd> |
| <dd><code>length</code> - the length in the MBB upto which the elements has to be copied</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/MultiByteBuff.html#line-1118">toBytes</a></span><wbr><span class="parameters">(int offset, |
| int length)</span></div> |
| <div class="block">Copy the content from this MBB to a byte[] based on the given offset and length the position |
| from where the copy should start the length upto which the copy has to be done</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> |
| <dt>Returns:</dt> |
| <dd>byte[] with the copied contents from this MBB.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="internalRead(java.nio.channels.ReadableByteChannel,long,org.apache.hadoop.hbase.nio.ByteBuff.ChannelReader)"> |
| <h3>internalRead</h3> |
| <div class="member-signature"><span class="modifiers">private</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-1126">internalRead</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, |
| long offset, |
| <a href="ByteBuff.ChannelReader.html" title="interface in org.apache.hadoop.hbase.nio">ByteBuff.ChannelReader</a> reader)</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> |
| <dl class="notes"> |
| <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.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/MultiByteBuff.html#line-1147">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/MultiByteBuff.html#line-1152">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/MultiByteBuff.html#line-1157">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/MultiByteBuff.html#line-1172">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/MultiByteBuff.html#line-1178">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/MultiByteBuff.html#line-1193">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="MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line-1202">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> |