http://git-wip-us.apache.org/repos/asf/hbase-site/blob/387c1112/apidocs/org/apache/hadoop/hbase/util/ByteBufferUtils.html ---------------------------------------------------------------------- diff --git a/apidocs/org/apache/hadoop/hbase/util/ByteBufferUtils.html b/apidocs/org/apache/hadoop/hbase/util/ByteBufferUtils.html index b501cfb..8392a08 100644 --- a/apidocs/org/apache/hadoop/hbase/util/ByteBufferUtils.html +++ b/apidocs/org/apache/hadoop/hbase/util/ByteBufferUtils.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9}; +var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -110,7 +110,7 @@ var activeTableTab = "activeTableTab"; <hr> <br> <pre>@InterfaceAudience.Public -public final class <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.45">ByteBufferUtils</a> +public final class <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.46">ByteBufferUtils</a> extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> <div class="block">Utility functions for working with byte buffers, such as reading/writing variable-length long numbers.</div> @@ -198,7 +198,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>static void</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#copyBufferToStream-java.io.OutputStream-java.nio.ByteBuffer-int-int-">copyBufferToStream</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#copyBufferToStream-java.io.DataOutput-java.nio.ByteBuffer-int-int-">copyBufferToStream</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</a> out, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, int offset, int length)</code> @@ -207,6 +207,15 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>static void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#copyBufferToStream-java.io.OutputStream-java.nio.ByteBuffer-int-int-">copyBufferToStream</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, + <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, + int offset, + int length)</code> +<div class="block">Copy data from a buffer to an output stream.</div> +</td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#copyFromArrayToBuffer-java.nio.ByteBuffer-byte:A-int-int-">copyFromArrayToBuffer</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, byte[] in, int inOffset, @@ -214,7 +223,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <div class="block">Copies the bytes from given array's offset to length part into the given buffer.</div> </td> </tr> -<tr id="i6" class="altColor"> +<tr id="i7" class="rowColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#copyFromArrayToBuffer-java.nio.ByteBuffer-int-byte:A-int-int-">copyFromArrayToBuffer</a></span>(<a href="http://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 outOffset, @@ -224,7 +233,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <div class="block">Copies bytes from given array's offset to length part into the given buffer.</div> </td> </tr> -<tr id="i7" class="rowColor"> +<tr id="i8" class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#copyFromBufferToArray-byte:A-java.nio.ByteBuffer-int-int-int-">copyFromBufferToArray</a></span>(byte[] out, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, @@ -235,14 +244,14 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? the array.</div> </td> </tr> -<tr id="i8" class="altColor"> +<tr id="i9" class="rowColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#copyFromBufferToBuffer-java.nio.ByteBuffer-java.nio.ByteBuffer-">copyFromBufferToBuffer</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out)</code> <div class="block">Copy one buffer's whole data to another.</div> </td> </tr> -<tr id="i9" class="rowColor"> +<tr id="i10" class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#copyFromBufferToBuffer-java.nio.ByteBuffer-java.nio.ByteBuffer-int-int-">copyFromBufferToBuffer</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, @@ -251,7 +260,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <div class="block">Copy from one buffer to another from given offset.</div> </td> </tr> -<tr id="i10" class="altColor"> +<tr id="i11" class="rowColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#copyFromBufferToBuffer-java.nio.ByteBuffer-java.nio.ByteBuffer-int-int-int-">copyFromBufferToBuffer</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, @@ -261,7 +270,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <div class="block">Copy from one buffer to another from given offset.</div> </td> </tr> -<tr id="i11" class="rowColor"> +<tr id="i12" class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#copyFromStreamToBuffer-java.nio.ByteBuffer-java.io.DataInputStream-int-">copyFromStreamToBuffer</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, <a href="http://docs.oracle.com/javase/8/docs/api/java/io/DataInputStream.html?is-external=true" title="class or interface in java.io">DataInputStream</a> in, @@ -270,7 +279,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? current position of the given buffer, updating the position in the buffer.</div> </td> </tr> -<tr id="i12" class="altColor"> +<tr id="i13" class="rowColor"> <td class="colFirst"><code>static byte[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#copyOfRange-java.nio.ByteBuffer-int-int-">copyOfRange</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> original, int from, @@ -278,13 +287,13 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <div class="block">Similar to <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Arrays.html?is-external=true#copyOfRange-byte:A-int-int-" title="class or interface in java.util"><code>Arrays.copyOfRange(byte[], int, int)</code></a></div> </td> </tr> -<tr id="i13" class="rowColor"> +<tr id="i14" class="altColor"> <td class="colFirst"><code>static <a href="http://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/util/ByteBufferUtils.html#drainInputStreamToBuffer-java.io.InputStream-">drainInputStreamToBuffer</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> is)</code> <div class="block">Copy from the InputStream to a new heap ByteBuffer until the InputStream is exhausted.</div> </td> </tr> -<tr id="i14" class="altColor"> +<tr id="i15" class="rowColor"> <td class="colFirst"><code>static boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#equals-java.nio.ByteBuffer-int-int-byte:A-int-int-">equals</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf1, int o1, @@ -293,7 +302,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? int o2, int l2)</code> </td> </tr> -<tr id="i15" class="rowColor"> +<tr id="i16" class="altColor"> <td class="colFirst"><code>static boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#equals-java.nio.ByteBuffer-int-int-java.nio.ByteBuffer-int-int-">equals</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf1, int o1, @@ -302,12 +311,12 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? int o2, int l2)</code> </td> </tr> -<tr id="i16" class="altColor"> +<tr id="i17" class="rowColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#extendLimit-java.nio.ByteBuffer-int-">extendLimit</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int numBytes)</code> </td> </tr> -<tr id="i17" class="rowColor"> +<tr id="i18" class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#findCommonPrefix-byte:A-int-int-byte:A-int-int-">findCommonPrefix</a></span>(byte[] left, int leftOffset, @@ -318,7 +327,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <div class="block">Find length of common prefix in two arrays.</div> </td> </tr> -<tr id="i18" class="altColor"> +<tr id="i19" class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#findCommonPrefix-java.nio.ByteBuffer-int-int-java.nio.ByteBuffer-int-int-">findCommonPrefix</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> left, int leftOffset, @@ -329,7 +338,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <div class="block">Find length of common prefix in two arrays.</div> </td> </tr> -<tr id="i19" class="rowColor"> +<tr id="i20" class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#findCommonPrefix-java.nio.ByteBuffer-int-int-int-">findCommonPrefix</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offsetLeft, @@ -338,25 +347,25 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <div class="block">Find length of common prefix of two parts in the buffer</div> </td> </tr> -<tr id="i20" class="altColor"> +<tr id="i21" class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#hashCode-java.nio.ByteBuffer-int-int-">hashCode</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf, int offset, int length)</code> </td> </tr> -<tr id="i21" class="rowColor"> +<tr id="i22" class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#intFitsIn-int-">intFitsIn</a></span>(int value)</code> <div class="block">Check how many bytes is required to store value.</div> </td> </tr> -<tr id="i22" class="altColor"> +<tr id="i23" class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#longFitsIn-long-">longFitsIn</a></span>(long value)</code> <div class="block">Check how many bytes are required to store value.</div> </td> </tr> -<tr id="i23" class="rowColor"> +<tr id="i24" class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#moveBufferToStream-java.io.OutputStream-java.nio.ByteBuffer-int-">moveBufferToStream</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, @@ -364,78 +373,78 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <div class="block">Copy the data to the output stream and update position in buffer.</div> </td> </tr> -<tr id="i24" class="altColor"> +<tr id="i25" class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#putAsShort-java.nio.ByteBuffer-int-int-">putAsShort</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf, int index, int val)</code> </td> </tr> -<tr id="i25" class="rowColor"> +<tr id="i26" class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#putByte-java.nio.ByteBuffer-int-byte-">putByte</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset, byte b)</code> </td> </tr> -<tr id="i26" class="altColor"> +<tr id="i27" class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#putCompressedInt-java.io.OutputStream-int-">putCompressedInt</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, int value)</code> <div class="block">Put in buffer integer using 7 bit encoding.</div> </td> </tr> -<tr id="i27" class="rowColor"> +<tr id="i28" class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#putInt-java.nio.ByteBuffer-int-">putInt</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int val)</code> <div class="block">Put an int value out to the given ByteBuffer's current position in big-endian format.</div> </td> </tr> -<tr id="i28" class="altColor"> +<tr id="i29" class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#putInt-java.nio.ByteBuffer-int-int-">putInt</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int index, int val)</code> </td> </tr> -<tr id="i29" class="rowColor"> +<tr id="i30" class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#putInt-java.io.OutputStream-int-">putInt</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, int value)</code> <div class="block">Put in output stream 32 bit integer (Big Endian byte order).</div> </td> </tr> -<tr id="i30" class="altColor"> +<tr id="i31" class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#putLong-java.nio.ByteBuffer-int-long-">putLong</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int index, long val)</code> </td> </tr> -<tr id="i31" class="rowColor"> +<tr id="i32" class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#putLong-java.nio.ByteBuffer-long-">putLong</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, long val)</code> <div class="block">Put a long value out to the given ByteBuffer's current position in big-endian format.</div> </td> </tr> -<tr id="i32" class="altColor"> +<tr id="i33" class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#putLong-java.io.OutputStream-long-int-">putLong</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, long value, int fitInBytes)</code> </td> </tr> -<tr id="i33" class="rowColor"> +<tr id="i34" class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#putShort-java.nio.ByteBuffer-int-short-">putShort</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int index, short val)</code> </td> </tr> -<tr id="i34" class="altColor"> +<tr id="i35" class="rowColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#putShort-java.nio.ByteBuffer-short-">putShort</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, short val)</code> <div class="block">Put a short value out to the given ByteBuffer's current position in big-endian format.</div> </td> </tr> -<tr id="i35" class="rowColor"> +<tr id="i36" class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#readAsInt-java.nio.ByteBuffer-int-int-">readAsInt</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf, int offset, @@ -443,47 +452,47 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <div class="block">Converts a ByteBuffer to an int value</div> </td> </tr> -<tr id="i36" class="altColor"> +<tr id="i37" class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#readCompressedInt-java.nio.ByteBuffer-">readCompressedInt</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer)</code> <div class="block">Read integer from buffer coded in 7 bits and increment position.</div> </td> </tr> -<tr id="i37" class="rowColor"> +<tr id="i38" class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#readCompressedInt-java.io.InputStream-">readCompressedInt</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> input)</code> <div class="block">Read integer from stream coded in 7 bits and increment position.</div> </td> </tr> -<tr id="i38" class="altColor"> +<tr id="i39" class="rowColor"> <td class="colFirst"><code>static long</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#readLong-java.nio.ByteBuffer-int-">readLong</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, int fitInBytes)</code> <div class="block">Read long which was written to fitInBytes bytes and increment position.</div> </td> </tr> -<tr id="i39" class="rowColor"> +<tr id="i40" class="altColor"> <td class="colFirst"><code>static long</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#readLong-java.io.InputStream-int-">readLong</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in, int fitInBytes)</code> <div class="block">Read long which was written to fitInBytes bytes and increment position.</div> </td> </tr> -<tr id="i40" class="altColor"> +<tr id="i41" class="rowColor"> <td class="colFirst"><code>static long</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#readVLong-java.nio.ByteBuffer-">readVLong</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in)</code> <div class="block">Similar to <code>WritableUtils.readVLong(DataInput)</code> but reads from a <a href="http://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>.</div> </td> </tr> -<tr id="i41" class="rowColor"> +<tr id="i42" class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#skip-java.nio.ByteBuffer-int-">skip</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int length)</code> <div class="block">Increment position in buffer.</div> </td> </tr> -<tr id="i42" class="altColor"> +<tr id="i43" class="rowColor"> <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#toBigDecimal-java.nio.ByteBuffer-int-int-">toBigDecimal</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset, @@ -491,12 +500,12 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <div class="block">Reads a BigDecimal value at the given buffer's offset.</div> </td> </tr> -<tr id="i43" class="rowColor"> +<tr id="i44" class="altColor"> <td class="colFirst"><code>static byte</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#toByte-java.nio.ByteBuffer-int-">toByte</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset)</code> </td> </tr> -<tr id="i44" class="altColor"> +<tr id="i45" class="rowColor"> <td class="colFirst"><code>static byte[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#toBytes-java.nio.ByteBuffer-int-">toBytes</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int startPosition)</code> @@ -504,7 +513,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? position and limit back to their original values (though not thread safe).</div> </td> </tr> -<tr id="i45" class="rowColor"> +<tr id="i46" class="altColor"> <td class="colFirst"><code>static byte[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#toBytes-java.nio.ByteBuffer-int-int-">toBytes</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset, @@ -512,51 +521,51 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <div class="block">Copy the given number of bytes from specified offset into a new byte[]</div> </td> </tr> -<tr id="i46" class="altColor"> +<tr id="i47" class="rowColor"> <td class="colFirst"><code>static double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#toDouble-java.nio.ByteBuffer-int-">toDouble</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset)</code> <div class="block">Reads a double value at the given buffer's offset.</div> </td> </tr> -<tr id="i47" class="rowColor"> +<tr id="i48" class="altColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#toInt-java.nio.ByteBuffer-">toInt</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer)</code> <div class="block">Reads an int value at the given buffer's current position.</div> </td> </tr> -<tr id="i48" class="altColor"> +<tr id="i49" class="rowColor"> <td class="colFirst"><code>static int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#toInt-java.nio.ByteBuffer-int-">toInt</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset)</code> <div class="block">Reads an int value at the given buffer's offset.</div> </td> </tr> -<tr id="i49" class="rowColor"> +<tr id="i50" class="altColor"> <td class="colFirst"><code>static long</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#toLong-java.nio.ByteBuffer-int-">toLong</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset)</code> <div class="block">Reads a long value at the given buffer's offset.</div> </td> </tr> -<tr id="i50" class="altColor"> +<tr id="i51" class="rowColor"> <td class="colFirst"><code>static short</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#toShort-java.nio.ByteBuffer-int-">toShort</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset)</code> <div class="block">Reads a short value at the given buffer's offset.</div> </td> </tr> -<tr id="i51" class="rowColor"> +<tr id="i52" class="altColor"> <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#toStringBinary-java.nio.ByteBuffer-">toStringBinary</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> b)</code> </td> </tr> -<tr id="i52" class="altColor"> +<tr id="i53" class="rowColor"> <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#toStringBinary-java.nio.ByteBuffer-int-int-">toStringBinary</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> b, int off, int len)</code> </td> </tr> -<tr id="i53" class="rowColor"> +<tr id="i54" class="altColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/util/ByteBufferUtils.html#writeVLong-java.nio.ByteBuffer-long-">writeVLong</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, long i)</code> @@ -592,7 +601,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>VALUE_MASK</h4> -<pre>public static final int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.47">VALUE_MASK</a></pre> +<pre>public static final int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.48">VALUE_MASK</a></pre> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../../../constant-values.html#org.apache.hadoop.hbase.util.ByteBufferUtils.VALUE_MASK">Constant Field Values</a></dd> @@ -605,7 +614,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>NEXT_BIT_SHIFT</h4> -<pre>public static final int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.48">NEXT_BIT_SHIFT</a></pre> +<pre>public static final int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.49">NEXT_BIT_SHIFT</a></pre> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../../../constant-values.html#org.apache.hadoop.hbase.util.ByteBufferUtils.NEXT_BIT_SHIFT">Constant Field Values</a></dd> @@ -618,7 +627,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockListLast"> <li class="blockList"> <h4>NEXT_BIT_MASK</h4> -<pre>public static final int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.49">NEXT_BIT_MASK</a></pre> +<pre>public static final int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.50">NEXT_BIT_MASK</a></pre> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../../../constant-values.html#org.apache.hadoop.hbase.util.ByteBufferUtils.NEXT_BIT_MASK">Constant Field Values</a></dd> @@ -639,7 +648,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>writeVLong</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.62">writeVLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.63">writeVLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, long i)</pre> <div class="block">Similar to <code>WritableUtils.writeVLong(java.io.DataOutput, long)</code>, but writes to a <a href="http://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>.</div> @@ -651,7 +660,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>readVLong</h4> -<pre>public static long <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.95">readVLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in)</pre> +<pre>public static long <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.96">readVLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in)</pre> <div class="block">Similar to <code>WritableUtils.readVLong(DataInput)</code> but reads from a <a href="http://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>.</div> </li> @@ -662,7 +671,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>putCompressedInt</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.120">putCompressedInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.121">putCompressedInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, int value) throws <a href="http://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">Put in buffer integer using 7 bit encoding. For each written byte: @@ -685,7 +694,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>putInt</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.142">putInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.143">putInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, int value) throws <a href="http://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">Put in output stream 32 bit integer (Big Endian byte order).</div> @@ -704,7 +713,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>toByte</h4> -<pre>public static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.154">toByte</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static byte <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.155">toByte</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset)</pre> </li> </ul> @@ -714,7 +723,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>moveBufferToStream</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.168">moveBufferToStream</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.169">moveBufferToStream</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, int length) throws <a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> @@ -735,7 +744,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>copyBufferToStream</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.183">copyBufferToStream</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.184">copyBufferToStream</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, int offset, int length) @@ -754,13 +763,38 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? </dl> </li> </ul> +<a name="copyBufferToStream-java.io.DataOutput-java.nio.ByteBuffer-int-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>copyBufferToStream</h4> +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.206">copyBufferToStream</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/DataOutput.html?is-external=true" title="class or interface in java.io">DataOutput</a> out, + <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, + int offset, + int length) + throws <a href="http://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">Copy data from a buffer to an output stream. Does not update the position + in the buffer.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>out</code> - the output stream to write bytes to</dd> +<dd><code>in</code> - the buffer to read bytes from</dd> +<dd><code>offset</code> - the offset in the buffer (from the buffer's array offset) + to start copying bytes from</dd> +<dd><code>length</code> - the number of bytes to copy</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="http://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="putLong-java.io.OutputStream-long-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>putLong</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.196">putLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.219">putLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, long value, int fitInBytes) throws <a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> @@ -776,7 +810,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>putByte</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.206">putByte</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.229">putByte</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset, byte b)</pre> </li> @@ -787,7 +821,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>longFitsIn</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.220">longFitsIn</a>(long value)</pre> +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.243">longFitsIn</a>(long value)</pre> <div class="block">Check how many bytes are required to store value.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -803,7 +837,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>intFitsIn</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.256">intFitsIn</a>(int value)</pre> +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.279">intFitsIn</a>(int value)</pre> <div class="block">Check how many bytes is required to store value.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -819,7 +853,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>readCompressedInt</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.278">readCompressedInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> input) +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.301">readCompressedInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> input) throws <a href="http://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">Read integer from stream coded in 7 bits and increment position.</div> <dl> @@ -836,7 +870,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>readCompressedInt</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.299">readCompressedInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer)</pre> +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.322">readCompressedInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer)</pre> <div class="block">Read integer from buffer coded in 7 bits and increment position.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -850,7 +884,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>readLong</h4> -<pre>public static long <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.313">readLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in, +<pre>public static long <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.336">readLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in, int fitInBytes) throws <a href="http://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">Read long which was written to fitInBytes bytes and increment position.</div> @@ -870,7 +904,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>readLong</h4> -<pre>public static long <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.327">readLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, +<pre>public static long <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.350">readLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, int fitInBytes)</pre> <div class="block">Read long which was written to fitInBytes bytes and increment position.</div> <dl> @@ -887,7 +921,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>copyFromStreamToBuffer</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.342">copyFromStreamToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.365">copyFromStreamToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, <a href="http://docs.oracle.com/javase/8/docs/api/java/io/DataInputStream.html?is-external=true" title="class or interface in java.io">DataInputStream</a> in, int length) throws <a href="http://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> @@ -909,7 +943,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>drainInputStreamToBuffer</h4> -<pre>public static <a href="http://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/util/ByteBufferUtils.html#line.358">drainInputStreamToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> is) +<pre>public static <a href="http://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/util/ByteBufferUtils.html#line.381">drainInputStreamToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> is) throws <a href="http://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">Copy from the InputStream to a new heap ByteBuffer until the InputStream is exhausted.</div> <dl> @@ -924,7 +958,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>copyFromBufferToBuffer</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.373">copyFromBufferToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.396">copyFromBufferToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out)</pre> <div class="block">Copy one buffer's whole data to another. Write starts at the current position of 'out' buffer. Note : This will advance the position marker of <code>out</code> and also change the position maker @@ -942,7 +976,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>copyFromBufferToBuffer</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.398">copyFromBufferToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.421">copyFromBufferToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, <a href="http://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 destinationOffset, @@ -965,7 +999,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>copyFromBufferToBuffer</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.425">copyFromBufferToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.448">copyFromBufferToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, <a href="http://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> @@ -988,7 +1022,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>findCommonPrefix</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.449">findCommonPrefix</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.472">findCommonPrefix</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offsetLeft, int offsetRight, int limit)</pre> @@ -1010,7 +1044,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>findCommonPrefix</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.471">findCommonPrefix</a>(byte[] left, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.494">findCommonPrefix</a>(byte[] left, int leftOffset, int leftLength, byte[] right, @@ -1034,7 +1068,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>findCommonPrefix</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.494">findCommonPrefix</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> left, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.517">findCommonPrefix</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> left, int leftOffset, int leftLength, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> right, @@ -1058,7 +1092,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>arePartsEqual</h4> -<pre>public static boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.516">arePartsEqual</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.539">arePartsEqual</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offsetLeft, int lengthLeft, int offsetRight, @@ -1082,7 +1116,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>skip</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.542">skip</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.565">skip</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int length)</pre> <div class="block">Increment position in buffer.</div> <dl> @@ -1098,7 +1132,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>extendLimit</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.546">extendLimit</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.569">extendLimit</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int numBytes)</pre> </li> </ul> @@ -1108,7 +1142,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>toBytes</h4> -<pre>public static byte[] <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.557">toBytes</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static byte[] <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.580">toBytes</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int startPosition)</pre> <div class="block">Copy the bytes from position to limit into a new byte[] of the exact length and sets the position and limit back to their original values (though not thread safe).</div> @@ -1127,7 +1161,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>toBytes</h4> -<pre>public static byte[] <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.573">toBytes</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static byte[] <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.596">toBytes</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset, int length)</pre> <div class="block">Copy the given number of bytes from specified offset into a new byte[]</div> @@ -1147,7 +1181,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>equals</h4> -<pre>public static boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.581">equals</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf1, +<pre>public static boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.604">equals</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf1, int o1, int l1, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf2, @@ -1161,7 +1195,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>hashCode</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.601">hashCode</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.624">hashCode</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf, int offset, int length)</pre> <dl> @@ -1178,7 +1212,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>compareTo</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.609">compareTo</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf1, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.632">compareTo</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf1, int o1, int l1, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf2, @@ -1192,7 +1226,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>equals</h4> -<pre>public static boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.639">equals</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf1, +<pre>public static boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.662">equals</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf1, int o1, int l1, byte[] buf2, @@ -1206,7 +1240,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>compareTo</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.651">compareTo</a>(byte[] buf1, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.674">compareTo</a>(byte[] buf1, int o1, int l1, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf2, @@ -1220,7 +1254,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>compareTo</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.678">compareTo</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf1, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.701">compareTo</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf1, int o1, int l1, byte[] buf2, @@ -1234,7 +1268,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>toShort</h4> -<pre>public static short <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.752">toShort</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static short <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.775">toShort</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset)</pre> <div class="block">Reads a short value at the given buffer's offset.</div> <dl> @@ -1252,7 +1286,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>toInt</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.763">toInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer)</pre> +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.786">toInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer)</pre> <div class="block">Reads an int value at the given buffer's current position. Also advances the buffer's position</div> </li> </ul> @@ -1262,7 +1296,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>toInt</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.779">toInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.802">toInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset)</pre> <div class="block">Reads an int value at the given buffer's offset.</div> <dl> @@ -1280,7 +1314,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>readAsInt</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.797">readAsInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.820">readAsInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf, int offset, int length)</pre> <div class="block">Converts a ByteBuffer to an int value</div> @@ -1302,7 +1336,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>toLong</h4> -<pre>public static long <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.816">toLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static long <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.839">toLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset)</pre> <div class="block">Reads a long value at the given buffer's offset.</div> <dl> @@ -1320,7 +1354,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>putInt</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.830">putInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.853">putInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int val)</pre> <div class="block">Put an int value out to the given ByteBuffer's current position in big-endian format. This also advances the position in buffer by int size.</div> @@ -1337,7 +1371,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>putInt</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.839">putInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.862">putInt</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int index, int val)</pre> </li> @@ -1348,7 +1382,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>toDouble</h4> -<pre>public static double <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.853">toDouble</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static double <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.876">toDouble</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset)</pre> <div class="block">Reads a double value at the given buffer's offset.</div> <dl> @@ -1366,7 +1400,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>toBigDecimal</h4> -<pre>public static <a href="http://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.863">toBigDecimal</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static <a href="http://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.886">toBigDecimal</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int offset, int length)</pre> <div class="block">Reads a BigDecimal value at the given buffer's offset.</div> @@ -1385,7 +1419,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>putShort</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.881">putShort</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.904">putShort</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, short val)</pre> <div class="block">Put a short value out to the given ByteBuffer's current position in big-endian format. This also advances the position in buffer by short size.</div> @@ -1402,7 +1436,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>putShort</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.890">putShort</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.913">putShort</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int index, short val)</pre> </li> @@ -1413,7 +1447,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>putAsShort</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.898">putAsShort</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.921">putAsShort</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buf, int index, int val)</pre> </li> @@ -1424,7 +1458,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>putLong</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.911">putLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.934">putLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, long val)</pre> <div class="block">Put a long value out to the given ByteBuffer's current position in big-endian format. This also advances the position in buffer by long size.</div> @@ -1441,7 +1475,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>putLong</h4> -<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.920">putLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, +<pre>public static int <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.943">putLong</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> buffer, int index, long val)</pre> </li> @@ -1452,7 +1486,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>copyFromArrayToBuffer</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.936">copyFromArrayToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.959">copyFromArrayToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, byte[] in, int inOffset, int length)</pre> @@ -1473,7 +1507,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>copyFromArrayToBuffer</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.958">copyFromArrayToBuffer</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> out, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.981">copyFromArrayToBuffer</a>(<a href="http://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 outOffset, byte[] in, int inOffset, @@ -1495,7 +1529,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>copyFromBufferToArray</h4> -<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.980">copyFromBufferToArray</a>(byte[] out, +<pre>public static void <a href="../../../../../src-html/org/apache/hadoop/hbase/util/ByteBufferUtils.html#line.1003">copyFromBufferToArray</a>(byte[] out, <a href="http://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="class or interface in java.nio">ByteBuffer</a> in, int sourceOffset, int destinationOffset, @@ -1518,7 +1552,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.
<TRUNCATED>
