| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>MultiByteBuff (Apache HBase 4.0.0-alpha-1-SNAPSHOT API)</title> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="MultiByteBuff (Apache HBase 4.0.0-alpha-1-SNAPSHOT API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":9,"i19":9,"i20":10,"i21":9,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":9,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":9,"i37":9,"i38":9,"i39":9,"i40":10,"i41":10,"i42":10,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":10,"i71":10,"i72":10}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/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">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/hadoop/hbase/nio/HBaseReferenceCounted.html" title="interface in org.apache.hadoop.hbase.nio"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/hadoop/hbase/nio/RefCnt.html" title="class in org.apache.hadoop.hbase.nio"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/hadoop/hbase/nio/MultiByteBuff.html" target="_top">Frames</a></li> |
| <li><a href="MultiByteBuff.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.classes.inherited.from.class.org.apache.hadoop.hbase.nio.ByteBuff">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="subNavList"> |
| <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> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.hadoop.hbase.nio</div> |
| <h2 title="Class MultiByteBuff" class="title">Class MultiByteBuff</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">org.apache.hadoop.hbase.nio.ByteBuff</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.hadoop.hbase.nio.MultiByteBuff</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="../../../../../org/apache/hadoop/hbase/nio/HBaseReferenceCounted.html" title="interface in org.apache.hadoop.hbase.nio">HBaseReferenceCounted</a>, org.apache.hbase.thirdparty.io.netty.util.ReferenceCounted</dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>@InterfaceAudience.Private |
| public class <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.44">MultiByteBuff</a> |
| extends <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></pre> |
| <div class="block">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/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio"><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> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.hadoop.hbase.nio.ByteBuff"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from class org.apache.hadoop.hbase.nio.<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></h3> |
| <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.ChannelReader.html" title="interface in org.apache.hadoop.hbase.nio">ByteBuff.ChannelReader</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#buffsIterator">buffsIterator</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#curItem">curItem</a></span></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#curItemIndex">curItemIndex</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private int[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#itemBeginPos">itemBeginPos</a></span></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#items">items</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#limit">limit</a></span></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#limitedItemIndex">limitedItemIndex</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#markedItemIndex">markedItemIndex</a></span></code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.apache.hadoop.hbase.nio.ByteBuff"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.apache.hadoop.hbase.nio.<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></h3> |
| <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#CHANNEL_READER">CHANNEL_READER</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#FILE_READER">FILE_READER</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#refCnt">refCnt</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier</th> |
| <th class="colLast" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code> </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#MultiByteBuff-org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler-java.nio.ByteBuffer...-">MultiByteBuff</a></span>(<a href="../../../../../org/apache/hadoop/hbase/io/ByteBuffAllocator.Recycler.html" title="interface in org.apache.hadoop.hbase.io">ByteBuffAllocator.Recycler</a> recycler, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>... items)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code> </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#MultiByteBuff-java.nio.ByteBuffer...-">MultiByteBuff</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>... items)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>(package private)</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#MultiByteBuff-org.apache.hadoop.hbase.nio.RefCnt-java.nio.ByteBuffer...-">MultiByteBuff</a></span>(<a href="../../../../../org/apache/hadoop/hbase/nio/RefCnt.html" title="class in org.apache.hadoop.hbase.nio">RefCnt</a> refCnt, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>... items)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#MultiByteBuff-org.apache.hadoop.hbase.nio.RefCnt-java.nio.ByteBuffer:A-int:A-int-int-int-int-">MultiByteBuff</a></span>(<a href="../../../../../org/apache/hadoop/hbase/nio/RefCnt.html" title="class in org.apache.hadoop.hbase.nio">RefCnt</a> refCnt, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>[] items, |
| int[] itemBeginPos, |
| int limit, |
| int limitedIndex, |
| int curItemIndex, |
| int markedIndex)</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#array--">array</a></span>()</code> |
| <div class="block">Returns the byte[] if the underlying BB has single BB and hasArray true</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#arrayOffset--">arrayOffset</a></span>()</code> |
| <div class="block">Returns the arrayOffset of the byte[] incase of a single BB backed ByteBuff</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#asSubByteBuffer-int-">asSubByteBuffer</a></span>(int length)</code> |
| <div class="block">Returns bytes from current position till length specified, as a single ByteBuffer.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#asSubByteBuffer-int-int-org.apache.hadoop.hbase.util.ObjectIntPair-">asSubByteBuffer</a></span>(int offset, |
| int length, |
| <a href="../../../../../org/apache/hadoop/hbase/util/ObjectIntPair.html" title="class in org.apache.hadoop.hbase.util">ObjectIntPair</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>> pair)</code> |
| <div class="block">Returns bytes from given offset till length specified, as a single ByteBuffer.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#capacity--">capacity</a></span>()</code> |
| <div class="block">Returns the total capacity of this MultiByteBuffer.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#duplicate--">duplicate</a></span>()</code> |
| <div class="block">Returns an MBB which is a duplicate version of this MBB.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#equals-java.lang.Object-">equals</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</code> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#get--">get</a></span>()</code> |
| <div class="block">A relative method that returns byte at the current position.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#get-byte:A-">get</a></span>(byte[] dst)</code> |
| <div class="block">Copies the content from this MBB's current position to the byte array and fills it.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#get-byte:A-int-int-">get</a></span>(byte[] dst, |
| int offset, |
| int length)</code> |
| <div class="block">Copies the specified number of bytes from this MBB's current position to the byte[]'s offset.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#get-java.nio.ByteBuffer-int-int-">get</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, |
| int sourceOffset, |
| int length)</code> |
| <div class="block">Copies the content from an this MBB to a ByteBuffer</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#get-int-">get</a></span>(int index)</code> |
| <div class="block">Fetches the byte at the given index.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#get-int-byte:A-int-int-">get</a></span>(int sourceOffset, |
| byte[] dst, |
| int offset, |
| int length)</code> |
| <div class="block">Copies the specified number of bytes from this ByteBuff's given position to the byte[]'s |
| offset.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getByteAfterPosition-int-">getByteAfterPosition</a></span>(int offset)</code> |
| <div class="block">Fetches the byte at the given offset from current position.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getInt--">getInt</a></span>()</code> |
| <div class="block">Returns the int value at the current position.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getInt-int-">getInt</a></span>(int index)</code> |
| <div class="block">Fetches the int at the given index.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>private int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getInt-int-int-">getInt</a></span>(int index, |
| int itemIndex)</code> </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getIntAfterPosition-int-">getIntAfterPosition</a></span>(int offset)</code> |
| <div class="block">Fetches the int value at the given offset from current position.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getItemByteBuffer-org.apache.hadoop.hbase.nio.ByteBuff-int-">getItemByteBuffer</a></span>(<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> buf, |
| int byteBufferIndex)</code> </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>private static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getItemByteBufferCount-org.apache.hadoop.hbase.nio.ByteBuff-">getItemByteBufferCount</a></span>(<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> buf)</code> </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>private int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getItemIndex-int-">getItemIndex</a></span>(int elemIndex)</code> </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>private static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getItemIndexForByteBuff-org.apache.hadoop.hbase.nio.ByteBuff-int-int-">getItemIndexForByteBuff</a></span>(<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> byteBuff, |
| int offset, |
| int length)</code> </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>private int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getItemIndexFromCurItemIndex-int-">getItemIndexFromCurItemIndex</a></span>(int elemIndex)</code> </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getLong--">getLong</a></span>()</code> |
| <div class="block">Returns the long value at the current position.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getLong-int-">getLong</a></span>(int index)</code> |
| <div class="block">Fetches the long at the given index.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>private long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getLong-int-int-">getLong</a></span>(int index, |
| int itemIndex)</code> </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getLongAfterPosition-int-">getLongAfterPosition</a></span>(int offset)</code> |
| <div class="block">Fetches the long value at the given offset from current position.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>private int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getRelativeOffset-int-int-">getRelativeOffset</a></span>(int globalOffset, |
| int itemIndex)</code> </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>private static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getRelativeOffsetForByteBuff-org.apache.hadoop.hbase.nio.ByteBuff-int-int-">getRelativeOffsetForByteBuff</a></span>(<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> byteBuff, |
| int globalOffset, |
| int itemIndex)</code> </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>short</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getShort--">getShort</a></span>()</code> |
| <div class="block">Returns the short value at the current position.</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>short</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getShort-int-">getShort</a></span>(int index)</code> |
| <div class="block">Fetches the short at the given index.</div> |
| </td> |
| </tr> |
| <tr id="i31" class="rowColor"> |
| <td class="colFirst"><code>private short</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getShort-int-int-">getShort</a></span>(int index, |
| int itemIndex)</code> </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code>short</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#getShortAfterPosition-int-">getShortAfterPosition</a></span>(int offset)</code> |
| <div class="block">Fetches the short value at the given offset from current position.</div> |
| </td> |
| </tr> |
| <tr id="i33" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#hasArray--">hasArray</a></span>()</code> |
| <div class="block">Returns false.</div> |
| </td> |
| </tr> |
| <tr id="i34" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#hashCode--">hashCode</a></span>()</code> </td> |
| </tr> |
| <tr id="i35" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#hasRemaining--">hasRemaining</a></span>()</code> |
| <div class="block">Returns true if there are elements between the current position and the limt</div> |
| </td> |
| </tr> |
| <tr id="i36" class="altColor"> |
| <td class="colFirst"><code>private static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#int0-int-">int0</a></span>(int x)</code> </td> |
| </tr> |
| <tr id="i37" class="rowColor"> |
| <td class="colFirst"><code>private static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#int1-int-">int1</a></span>(int x)</code> </td> |
| </tr> |
| <tr id="i38" class="altColor"> |
| <td class="colFirst"><code>private static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#int2-int-">int2</a></span>(int x)</code> </td> |
| </tr> |
| <tr id="i39" class="rowColor"> |
| <td class="colFirst"><code>private static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#int3-int-">int3</a></span>(int x)</code> </td> |
| </tr> |
| <tr id="i40" class="altColor"> |
| <td class="colFirst"><code>private int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#internalRead-java.nio.channels.ReadableByteChannel-long-org.apache.hadoop.hbase.nio.ByteBuff.ChannelReader-">internalRead</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/ReadableByteChannel.html?is-external=true" title="class or interface in java.nio.channels">ReadableByteChannel</a> channel, |
| long offset, |
| <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.ChannelReader.html" title="interface in org.apache.hadoop.hbase.nio">ByteBuff.ChannelReader</a> reader)</code> </td> |
| </tr> |
| <tr id="i41" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#limit--">limit</a></span>()</code> |
| <div class="block">Returns the limit of this MBB</div> |
| </td> |
| </tr> |
| <tr id="i42" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#limit-int-">limit</a></span>(int limit)</code> |
| <div class="block">Marks the limit of this MBB.</div> |
| </td> |
| </tr> |
| <tr id="i43" class="rowColor"> |
| <td class="colFirst"><code>private static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#long0-long-">long0</a></span>(long x)</code> </td> |
| </tr> |
| <tr id="i44" class="altColor"> |
| <td class="colFirst"><code>private static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#long1-long-">long1</a></span>(long x)</code> </td> |
| </tr> |
| <tr id="i45" class="rowColor"> |
| <td class="colFirst"><code>private static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#long2-long-">long2</a></span>(long x)</code> </td> |
| </tr> |
| <tr id="i46" class="altColor"> |
| <td class="colFirst"><code>private static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#long3-long-">long3</a></span>(long x)</code> </td> |
| </tr> |
| <tr id="i47" class="rowColor"> |
| <td class="colFirst"><code>private static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#long4-long-">long4</a></span>(long x)</code> </td> |
| </tr> |
| <tr id="i48" class="altColor"> |
| <td class="colFirst"><code>private static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#long5-long-">long5</a></span>(long x)</code> </td> |
| </tr> |
| <tr id="i49" class="rowColor"> |
| <td class="colFirst"><code>private static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#long6-long-">long6</a></span>(long x)</code> </td> |
| </tr> |
| <tr id="i50" class="altColor"> |
| <td class="colFirst"><code>private static byte</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#long7-long-">long7</a></span>(long x)</code> </td> |
| </tr> |
| <tr id="i51" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#mark--">mark</a></span>()</code> |
| <div class="block">Marks the current position of the MBB</div> |
| </td> |
| </tr> |
| <tr id="i52" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#moveBack-int-">moveBack</a></span>(int length)</code> |
| <div class="block">Jumps back the current position of this MBB by specified length.</div> |
| </td> |
| </tr> |
| <tr id="i53" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#nioByteBuffers--">nioByteBuffers</a></span>()</code> </td> |
| </tr> |
| <tr id="i54" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#position--">position</a></span>()</code> |
| <div class="block">Returns this MBB's current position</div> |
| </td> |
| </tr> |
| <tr id="i55" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#position-int-">position</a></span>(int position)</code> |
| <div class="block">Sets this MBB's position to the given value.</div> |
| </td> |
| </tr> |
| <tr id="i56" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#put-byte-">put</a></span>(byte b)</code> |
| <div class="block">Writes a byte to this MBB at the current position and increments the position</div> |
| </td> |
| </tr> |
| <tr id="i57" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#put-byte:A-">put</a></span>(byte[] src)</code> |
| <div class="block">Copies from the given byte[] to this MBB</div> |
| </td> |
| </tr> |
| <tr id="i58" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#put-byte:A-int-int-">put</a></span>(byte[] src, |
| int offset, |
| int length)</code> |
| <div class="block">Copies from the given byte[] to this MBB.</div> |
| </td> |
| </tr> |
| <tr id="i59" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#put-int-byte-">put</a></span>(int index, |
| byte b)</code> |
| <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> |
| </td> |
| </tr> |
| <tr id="i60" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#put-int-org.apache.hadoop.hbase.nio.ByteBuff-int-int-">put</a></span>(int destOffset, |
| <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> src, |
| int srcOffset, |
| int length)</code> |
| <div class="block">Copies from a src BB to this MBB.</div> |
| </td> |
| </tr> |
| <tr id="i61" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#putInt-int-">putInt</a></span>(int val)</code> |
| <div class="block">Writes an int to this MBB at its current position.</div> |
| </td> |
| </tr> |
| <tr id="i62" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#putLong-long-">putLong</a></span>(long val)</code> |
| <div class="block">Writes a long to this MBB at its current position.</div> |
| </td> |
| </tr> |
| <tr id="i63" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#read-java.nio.channels.FileChannel-long-">read</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/FileChannel.html?is-external=true" title="class or interface in java.nio.channels">FileChannel</a> channel, |
| long offset)</code> |
| <div class="block">Reads bytes from FileChannel into this ByteBuff</div> |
| </td> |
| </tr> |
| <tr id="i64" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#read-java.nio.channels.ReadableByteChannel-">read</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/ReadableByteChannel.html?is-external=true" title="class or interface in java.nio.channels">ReadableByteChannel</a> channel)</code> |
| <div class="block">Reads bytes from the given channel into this ByteBuf.</div> |
| </td> |
| </tr> |
| <tr id="i65" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#remaining--">remaining</a></span>()</code> |
| <div class="block">Returns the number of elements between the current position and the limit.</div> |
| </td> |
| </tr> |
| <tr id="i66" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#reset--">reset</a></span>()</code> |
| <div class="block">Similar to <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio"><code>ByteBuffer</code></a>.reset(), ensures that this MBB is reset back to last marked |
| position.</div> |
| </td> |
| </tr> |
| <tr id="i67" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#retain--">retain</a></span>()</code> </td> |
| </tr> |
| <tr id="i68" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#rewind--">rewind</a></span>()</code> |
| <div class="block">Rewinds this MBB and the position is set to 0</div> |
| </td> |
| </tr> |
| <tr id="i69" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#skip-int-">skip</a></span>(int length)</code> |
| <div class="block">Jumps the current position of this MBB by specified length.</div> |
| </td> |
| </tr> |
| <tr id="i70" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#slice--">slice</a></span>()</code> |
| <div class="block">Returns an MBB which is a sliced version of this MBB.</div> |
| </td> |
| </tr> |
| <tr id="i71" class="rowColor"> |
| <td class="colFirst"><code>byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#toBytes-int-int-">toBytes</a></span>(int offset, |
| int length)</code> |
| <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> |
| </td> |
| </tr> |
| <tr id="i72" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#write-java.nio.channels.FileChannel-long-">write</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/FileChannel.html?is-external=true" title="class or interface in java.nio.channels">FileChannel</a> channel, |
| long offset)</code> |
| <div class="block">Write this ByteBuff's data into target file</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.hadoop.hbase.nio.ByteBuff"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.hadoop.hbase.nio.<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></h3> |
| <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#checkRefCount--">checkRefCount</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#compareTo-org.apache.hadoop.hbase.nio.ByteBuff-int-int-org.apache.hadoop.hbase.nio.ByteBuff-int-int-">compareTo</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getRefCnt--">getRefCnt</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#read-java.nio.channels.ReadableByteChannel-java.nio.ByteBuffer-long-org.apache.hadoop.hbase.nio.ByteBuff.ChannelReader-">read</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#readCompressedInt-org.apache.hadoop.hbase.nio.ByteBuff-">readCompressedInt</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#readLong-org.apache.hadoop.hbase.nio.ByteBuff-int-">readLong</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#refCnt--">refCnt</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#release--">release</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#toBytes--">toBytes</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#toString--">toString</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#touch--">touch</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#touch-java.lang.Object-">touch</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#wrap-java.nio.ByteBuffer-">wrap</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#wrap-java.nio.ByteBuffer:A-">wrap</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#wrap-java.nio.ByteBuffer:A-org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler-">wrap</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#wrap-java.nio.ByteBuffer:A-org.apache.hadoop.hbase.nio.RefCnt-">wrap</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#wrap-java.util.List-">wrap</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#wrap-java.util.List-org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler-">wrap</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.hadoop.hbase.nio.HBaseReferenceCounted"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.apache.hadoop.hbase.nio.<a href="../../../../../org/apache/hadoop/hbase/nio/HBaseReferenceCounted.html" title="interface in org.apache.hadoop.hbase.nio">HBaseReferenceCounted</a></h3> |
| <code><a href="../../../../../org/apache/hadoop/hbase/nio/HBaseReferenceCounted.html#release-int-">release</a>, <a href="../../../../../org/apache/hadoop/hbase/nio/HBaseReferenceCounted.html#retain-int-">retain</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="items"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>items</h4> |
| <pre>private final <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>[] <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.46">items</a></pre> |
| </li> |
| </ul> |
| <a name="curItem"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>curItem</h4> |
| <pre>private <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.48">curItem</a></pre> |
| </li> |
| </ul> |
| <a name="curItemIndex"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>curItemIndex</h4> |
| <pre>private int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.50">curItemIndex</a></pre> |
| </li> |
| </ul> |
| <a name="limit"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>limit</h4> |
| <pre>private int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.52">limit</a></pre> |
| </li> |
| </ul> |
| <a name="limitedItemIndex"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>limitedItemIndex</h4> |
| <pre>private int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.53">limitedItemIndex</a></pre> |
| </li> |
| </ul> |
| <a name="markedItemIndex"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>markedItemIndex</h4> |
| <pre>private int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.54">markedItemIndex</a></pre> |
| </li> |
| </ul> |
| <a name="itemBeginPos"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>itemBeginPos</h4> |
| <pre>private final int[] <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.55">itemBeginPos</a></pre> |
| </li> |
| </ul> |
| <a name="buffsIterator"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>buffsIterator</h4> |
| <pre>private <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.57">buffsIterator</a></pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="MultiByteBuff-java.nio.ByteBuffer...-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MultiByteBuff</h4> |
| <pre>public <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.74">MultiByteBuff</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>... items)</pre> |
| </li> |
| </ul> |
| <a name="MultiByteBuff-org.apache.hadoop.hbase.io.ByteBuffAllocator.Recycler-java.nio.ByteBuffer...-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MultiByteBuff</h4> |
| <pre>public <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.78">MultiByteBuff</a>(<a href="../../../../../org/apache/hadoop/hbase/io/ByteBuffAllocator.Recycler.html" title="interface in org.apache.hadoop.hbase.io">ByteBuffAllocator.Recycler</a> recycler, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>... items)</pre> |
| </li> |
| </ul> |
| <a name="MultiByteBuff-org.apache.hadoop.hbase.nio.RefCnt-java.nio.ByteBuffer...-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MultiByteBuff</h4> |
| <pre><a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.82">MultiByteBuff</a>(<a href="../../../../../org/apache/hadoop/hbase/nio/RefCnt.html" title="class in org.apache.hadoop.hbase.nio">RefCnt</a> refCnt, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>... items)</pre> |
| </li> |
| </ul> |
| <a name="MultiByteBuff-org.apache.hadoop.hbase.nio.RefCnt-java.nio.ByteBuffer:A-int:A-int-int-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>MultiByteBuff</h4> |
| <pre>private <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.106">MultiByteBuff</a>(<a href="../../../../../org/apache/hadoop/hbase/nio/RefCnt.html" title="class in org.apache.hadoop.hbase.nio">RefCnt</a> refCnt, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>[] items, |
| int[] itemBeginPos, |
| int limit, |
| int limitedIndex, |
| int curItemIndex, |
| int markedIndex)</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="array--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>array</h4> |
| <pre>public byte[] <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.122">array</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/nio/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> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#array--">array</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</a></code> - MBB does not support array based operations</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="arrayOffset--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>arrayOffset</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.130">arrayOffset</a>()</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/nio/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> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#arrayOffset--">arrayOffset</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</a></code> - MBB does not support array based operations</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hasArray--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasArray</h4> |
| <pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.136">hasArray</a>()</pre> |
| <div class="block">Returns false. MBB does not support array based operations</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#hasArray--">hasArray</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="capacity--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>capacity</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.142">capacity</a>()</pre> |
| <div class="block">Returns the total capacity of this MultiByteBuffer.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#capacity--">capacity</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="get-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre>public byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.156">get</a>(int index)</pre> |
| <div class="block">Fetches the byte at the given index. Does not change position of the underlying ByteBuffers</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-int-">get</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the byte at the given index</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getByteAfterPosition-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getByteAfterPosition</h4> |
| <pre>public byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.163">getByteAfterPosition</a>(int offset)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getByteAfterPosition-int-">ByteBuff</a></code></span></div> |
| <div class="block">Fetches the byte at the given offset from current position. Does not change position of the |
| underlying ByteBuffers.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getByteAfterPosition-int-">getByteAfterPosition</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the byte value at the given index.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getItemIndex-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getItemIndex</h4> |
| <pre>private int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.174">getItemIndex</a>(int elemIndex)</pre> |
| </li> |
| </ul> |
| <a name="getItemIndexFromCurItemIndex-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getItemIndexFromCurItemIndex</h4> |
| <pre>private int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.192">getItemIndexFromCurItemIndex</a>(int elemIndex)</pre> |
| </li> |
| </ul> |
| <a name="getInt-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getInt</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.208">getInt</a>(int index)</pre> |
| <div class="block">Fetches the int at the given index. Does not change position of the underlying ByteBuffers</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getInt-int-">getInt</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the int value at the given index</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getIntAfterPosition-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getIntAfterPosition</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.224">getIntAfterPosition</a>(int offset)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getIntAfterPosition-int-">ByteBuff</a></code></span></div> |
| <div class="block">Fetches the int value at the given offset from current position. Does not change position of |
| the underlying ByteBuffers.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getIntAfterPosition-int-">getIntAfterPosition</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getShort-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getShort</h4> |
| <pre>public short <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.242">getShort</a>(int index)</pre> |
| <div class="block">Fetches the short at the given index. Does not change position of the underlying ByteBuffers</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getShort-int-">getShort</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the short value at the given index</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getShortAfterPosition-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getShortAfterPosition</h4> |
| <pre>public short <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.273">getShortAfterPosition</a>(int offset)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getShortAfterPosition-int-">ByteBuff</a></code></span></div> |
| <div class="block">Fetches the short value at the given offset from current position. Does not change position of |
| the underlying ByteBuffers.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getShortAfterPosition-int-">getShortAfterPosition</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the short value at the given index.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getInt-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getInt</h4> |
| <pre>private int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.286">getInt</a>(int index, |
| int itemIndex)</pre> |
| </li> |
| </ul> |
| <a name="getShort-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getShort</h4> |
| <pre>private short <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.305">getShort</a>(int index, |
| int itemIndex)</pre> |
| </li> |
| </ul> |
| <a name="getLong-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLong</h4> |
| <pre>private long <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.330">getLong</a>(int index, |
| int itemIndex)</pre> |
| </li> |
| </ul> |
| <a name="getLong-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLong</h4> |
| <pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.354">getLong</a>(int index)</pre> |
| <div class="block">Fetches the long at the given index. Does not change position of the underlying ByteBuffers</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getLong-int-">getLong</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the long value at the given index</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLongAfterPosition-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLongAfterPosition</h4> |
| <pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.370">getLongAfterPosition</a>(int offset)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getLongAfterPosition-int-">ByteBuff</a></code></span></div> |
| <div class="block">Fetches the long value at the given offset from current position. Does not change position of |
| the underlying ByteBuffers.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getLongAfterPosition-int-">getLongAfterPosition</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the long value at the given index.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="position--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>position</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.385">position</a>()</pre> |
| <div class="block">Returns this MBB's current position</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#position--">position</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="position-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>position</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.395">position</a>(int position)</pre> |
| <div class="block">Sets this MBB's position to the given value.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#position-int-">position</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this object</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="rewind--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>rewind</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.425">rewind</a>()</pre> |
| <div class="block">Rewinds this MBB and the position is set to 0</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#rewind--">rewind</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this object</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="mark--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mark</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.441">mark</a>()</pre> |
| <div class="block">Marks the current position of the MBB</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#mark--">mark</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this object</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="reset--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.454">reset</a>()</pre> |
| <div class="block">Similar to <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio"><code>ByteBuffer</code></a>.reset(), ensures that this MBB is reset back to last marked |
| position.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#reset--">reset</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>This MBB</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="remaining--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>remaining</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.475">remaining</a>()</pre> |
| <div class="block">Returns the number of elements between the current position and the limit.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#remaining--">remaining</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the remaining elements in this MBB</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hasRemaining--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasRemaining</h4> |
| <pre>public final boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.489">hasRemaining</a>()</pre> |
| <div class="block">Returns true if there are elements between the current position and the limt</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#hasRemaining--">hasRemaining</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if there are elements, false otherwise</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="get--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre>public byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.501">get</a>()</pre> |
| <div class="block">A relative method that returns byte at the current position. Increments the current position by |
| the size of a byte.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get--">get</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the byte at the current position</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getShort--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getShort</h4> |
| <pre>public short <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.520">getShort</a>()</pre> |
| <div class="block">Returns the short value at the current position. Also advances the position by the size of |
| short</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getShort--">getShort</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the short value at the current position</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getInt--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getInt</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.538">getInt</a>()</pre> |
| <div class="block">Returns the int value at the current position. Also advances the position by the size of int</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getInt--">getInt</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the int value at the current position</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLong--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLong</h4> |
| <pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.557">getLong</a>()</pre> |
| <div class="block">Returns the long value at the current position. Also advances the position by the size of long</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#getLong--">getLong</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the long value at the current position</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="get-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.576">get</a>(byte[] dst)</pre> |
| <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> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-byte:A-">get</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>dst</code> - the byte[] to which the ByteBuff's content is to be copied</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="get-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.585">get</a>(byte[] dst, |
| int offset, |
| int length)</pre> |
| <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> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-byte:A-int-int-">get</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>dst</code> - the byte[] to which the ByteBuff's content is to be copied</dd> |
| <dd><code>offset</code> - within the current array</dd> |
| <dd><code>length</code> - upto which the bytes to be copied</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="get-int-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.601">get</a>(int sourceOffset, |
| byte[] dst, |
| int offset, |
| int length)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-int-byte:A-int-int-">ByteBuff</a></code></span></div> |
| <div class="block">Copies the specified number of bytes from this ByteBuff's given position to the byte[]'s |
| offset. The position of the ByteBuff remains in the current position only</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-int-byte:A-int-int-">get</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sourceOffset</code> - the offset in this ByteBuff from where the copy should happen</dd> |
| <dd><code>dst</code> - the byte[] to which the ByteBuff's content is to be copied</dd> |
| <dd><code>offset</code> - within the current array</dd> |
| <dd><code>length</code> - upto which the bytes to be copied</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="limit-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>limit</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.623">limit</a>(int limit)</pre> |
| <div class="block">Marks the limit of this MBB.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#limit-int-">limit</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>This MBB</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="limit--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>limit</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.652">limit</a>()</pre> |
| <div class="block">Returns the limit of this MBB</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#limit--">limit</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>limit of the MBB</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="slice--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>slice</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.663">slice</a>()</pre> |
| <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> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#slice--">slice</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a sliced MBB</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="duplicate--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>duplicate</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.680">duplicate</a>()</pre> |
| <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> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#duplicate--">duplicate</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a duplicated MBB</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="put-byte-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.695">put</a>(byte b)</pre> |
| <div class="block">Writes a byte to this MBB at the current position and increments the position</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-byte-">put</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this object</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="put-int-byte-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.716">put</a>(int index, |
| byte b)</pre> |
| <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> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-int-byte-">put</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this object</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - If <tt>index</tt> is negative or not smaller than the |
| <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html#limit"><code>limit</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="put-int-org.apache.hadoop.hbase.nio.ByteBuff-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.737">put</a>(int destOffset, |
| <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> src, |
| int srcOffset, |
| int length)</pre> |
| <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> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-int-org.apache.hadoop.hbase.nio.ByteBuff-int-int-">put</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>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><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/BufferUnderflowException.html?is-external=true" title="class or interface in java.nio">BufferUnderflowException</a></code> - If there are fewer than length bytes remaining in src |
| ByteBuff.</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/BufferOverflowException.html?is-external=true" title="class or interface in java.nio">BufferOverflowException</a></code> - If there is insufficient available space in this MBB for |
| length bytes.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getItemByteBuffer-org.apache.hadoop.hbase.nio.ByteBuff-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getItemByteBuffer</h4> |
| <pre>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.794">getItemByteBuffer</a>(<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> buf, |
| int byteBufferIndex)</pre> |
| </li> |
| </ul> |
| <a name="getItemIndexForByteBuff-org.apache.hadoop.hbase.nio.ByteBuff-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getItemIndexForByteBuff</h4> |
| <pre>private static int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.810">getItemIndexForByteBuff</a>(<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> byteBuff, |
| int offset, |
| int length)</pre> |
| </li> |
| </ul> |
| <a name="getRelativeOffsetForByteBuff-org.apache.hadoop.hbase.nio.ByteBuff-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRelativeOffsetForByteBuff</h4> |
| <pre>private static int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.822">getRelativeOffsetForByteBuff</a>(<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> byteBuff, |
| int globalOffset, |
| int itemIndex)</pre> |
| </li> |
| </ul> |
| <a name="getRelativeOffset-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRelativeOffset</h4> |
| <pre>private int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.833">getRelativeOffset</a>(int globalOffset, |
| int itemIndex)</pre> |
| </li> |
| </ul> |
| <a name="getItemByteBufferCount-org.apache.hadoop.hbase.nio.ByteBuff-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getItemByteBufferCount</h4> |
| <pre>private static int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.841">getItemByteBufferCount</a>(<a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a> buf)</pre> |
| </li> |
| </ul> |
| <a name="putInt-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putInt</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.851">putInt</a>(int val)</pre> |
| <div class="block">Writes an int to this MBB at its current position. Also advances the position by size of int</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#putInt-int-">putInt</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>val</code> - Int value to write</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this object</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="int3-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>int3</h4> |
| <pre>private static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.868">int3</a>(int x)</pre> |
| </li> |
| </ul> |
| <a name="int2-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>int2</h4> |
| <pre>private static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.872">int2</a>(int x)</pre> |
| </li> |
| </ul> |
| <a name="int1-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>int1</h4> |
| <pre>private static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.876">int1</a>(int x)</pre> |
| </li> |
| </ul> |
| <a name="int0-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>int0</h4> |
| <pre>private static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.880">int0</a>(int x)</pre> |
| </li> |
| </ul> |
| <a name="put-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public final <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.886">put</a>(byte[] src)</pre> |
| <div class="block">Copies from the given byte[] to this MBB</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-byte:A-">put</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>src</code> - source byte array</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this ByteBuff</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="put-byte:A-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.892">put</a>(byte[] src, |
| int offset, |
| int length)</pre> |
| <div class="block">Copies from the given byte[] to this MBB.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#put-byte:A-int-int-">put</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>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><span class="returnLabel">Returns:</span></dt> |
| <dd>this ByteBuff</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="putLong-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>putLong</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.911">putLong</a>(long val)</pre> |
| <div class="block">Writes a long to this MBB at its current position. Also advances the position by size of long</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#putLong-long-">putLong</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>val</code> - Long value to write</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>this object</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="long7-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>long7</h4> |
| <pre>private static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.932">long7</a>(long x)</pre> |
| </li> |
| </ul> |
| <a name="long6-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>long6</h4> |
| <pre>private static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.936">long6</a>(long x)</pre> |
| </li> |
| </ul> |
| <a name="long5-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>long5</h4> |
| <pre>private static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.940">long5</a>(long x)</pre> |
| </li> |
| </ul> |
| <a name="long4-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>long4</h4> |
| <pre>private static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.944">long4</a>(long x)</pre> |
| </li> |
| </ul> |
| <a name="long3-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>long3</h4> |
| <pre>private static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.948">long3</a>(long x)</pre> |
| </li> |
| </ul> |
| <a name="long2-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>long2</h4> |
| <pre>private static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.952">long2</a>(long x)</pre> |
| </li> |
| </ul> |
| <a name="long1-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>long1</h4> |
| <pre>private static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.956">long1</a>(long x)</pre> |
| </li> |
| </ul> |
| <a name="long0-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>long0</h4> |
| <pre>private static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.960">long0</a>(long x)</pre> |
| </li> |
| </ul> |
| <a name="skip-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>skip</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.968">skip</a>(int length)</pre> |
| <div class="block">Jumps the current position of this MBB by specified length.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#skip-int-">skip</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>length</code> - the length to be skipped</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="moveBack-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>moveBack</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.990">moveBack</a>(int length)</pre> |
| <div class="block">Jumps back the current position of this MBB by specified length.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#moveBack-int-">moveBack</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>length</code> - the length to move back</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asSubByteBuffer-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asSubByteBuffer</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.1017">asSubByteBuffer</a>(int length)</pre> |
| <div class="block">Returns bytes from current position till length specified, as a single ByteBuffer. When all |
| these bytes happen to be in a single ByteBuffer, which this object wraps, that ByteBuffer item |
| as such will be returned. So users are warned not to change the position or limit of this |
| returned ByteBuffer. The position of the returned byte buffer is at the begin of the required |
| bytes. When the required bytes happen to span across multiple ByteBuffers, this API will copy |
| the bytes to a newly created ByteBuffer of required size and return that.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#asSubByteBuffer-int-">asSubByteBuffer</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>length</code> - number of bytes required.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>bytes from current position till length specified, as a single ByteButter.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="asSubByteBuffer-int-int-org.apache.hadoop.hbase.util.ObjectIntPair-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>asSubByteBuffer</h4> |
| <pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.1053">asSubByteBuffer</a>(int offset, |
| int length, |
| <a href="../../../../../org/apache/hadoop/hbase/util/ObjectIntPair.html" title="class in org.apache.hadoop.hbase.util">ObjectIntPair</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>> pair)</pre> |
| <div class="block">Returns bytes from given offset till length specified, as a single ByteBuffer. When all these |
| bytes happen to be in a single ByteBuffer, which this object wraps, that ByteBuffer item as |
| such will be returned (with offset in this ByteBuffer where the bytes starts). So users are |
| warned not to change the position or limit of this returned ByteBuffer. When the required bytes |
| happen to span across multiple ByteBuffers, this API will copy the bytes to a newly created |
| ByteBuffer of required size and return that.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#asSubByteBuffer-int-int-org.apache.hadoop.hbase.util.ObjectIntPair-">asSubByteBuffer</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>offset</code> - the offset in this 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> |
| </li> |
| </ul> |
| <a name="get-java.nio.ByteBuffer-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>get</h4> |
| <pre>public void <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.1095">get</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, |
| int sourceOffset, |
| int length)</pre> |
| <div class="block">Copies the content from an this MBB to a ByteBuffer</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#get-java.nio.ByteBuffer-int-int-">get</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>out</code> - the ByteBuffer to which the copy has to happen, 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> |
| </li> |
| </ul> |
| <a name="toBytes-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toBytes</h4> |
| <pre>public byte[] <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.1119">toBytes</a>(int offset, |
| int length)</pre> |
| <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> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#toBytes-int-int-">toBytes</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>byte[] with the copied contents from this MBB.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="internalRead-java.nio.channels.ReadableByteChannel-long-org.apache.hadoop.hbase.nio.ByteBuff.ChannelReader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>internalRead</h4> |
| <pre>private int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.1126">internalRead</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/ReadableByteChannel.html?is-external=true" title="class or interface in java.nio.channels">ReadableByteChannel</a> channel, |
| long offset, |
| <a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.ChannelReader.html" title="interface in org.apache.hadoop.hbase.nio">ByteBuff.ChannelReader</a> reader) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="read-java.nio.channels.ReadableByteChannel-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>read</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.1148">read</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/ReadableByteChannel.html?is-external=true" title="class or interface in java.nio.channels">ReadableByteChannel</a> channel) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#read-java.nio.channels.ReadableByteChannel-">ByteBuff</a></code></span></div> |
| <div class="block">Reads bytes from the given channel into this ByteBuf.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#read-java.nio.channels.ReadableByteChannel-">read</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="read-java.nio.channels.FileChannel-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>read</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.1153">read</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/FileChannel.html?is-external=true" title="class or interface in java.nio.channels">FileChannel</a> channel, |
| long offset) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#read-java.nio.channels.FileChannel-long-">ByteBuff</a></code></span></div> |
| <div class="block">Reads bytes from FileChannel into this ByteBuff</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#read-java.nio.channels.FileChannel-long-">read</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="write-java.nio.channels.FileChannel-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>write</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.1158">write</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/nio/channels/FileChannel.html?is-external=true" title="class or interface in java.nio.channels">FileChannel</a> channel, |
| long offset) |
| throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#write-java.nio.channels.FileChannel-long-">ByteBuff</a></code></span></div> |
| <div class="block">Write this ByteBuff's data into target file</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#write-java.nio.channels.FileChannel-long-">write</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="nioByteBuffers--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>nioByteBuffers</h4> |
| <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a>[] <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.1173">nioByteBuffers</a>()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html#nioByteBuffers--">nioByteBuffers</a></code> in class <code><a href="../../../../../org/apache/hadoop/hbase/nio/ByteBuff.html" title="class in org.apache.hadoop.hbase.nio">ByteBuff</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="equals-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>equals</h4> |
| <pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.1179">equals</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hashCode--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hashCode</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.1194">hashCode</a>()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="retain--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>retain</h4> |
| <pre>public <a href="../../../../../org/apache/hadoop/hbase/nio/MultiByteBuff.html" title="class in org.apache.hadoop.hbase.nio">MultiByteBuff</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/nio/MultiByteBuff.html#line.1203">retain</a>()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/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">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/hadoop/hbase/nio/HBaseReferenceCounted.html" title="interface in org.apache.hadoop.hbase.nio"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/hadoop/hbase/nio/RefCnt.html" title="class in org.apache.hadoop.hbase.nio"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/hadoop/hbase/nio/MultiByteBuff.html" target="_top">Frames</a></li> |
| <li><a href="MultiByteBuff.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.classes.inherited.from.class.org.apache.hadoop.hbase.nio.ByteBuff">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="subNavList"> |
| <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> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2007–2020 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |