| <!DOCTYPE HTML> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (17) --> |
| <title>SimplePositionedByteRange (Apache HBase 4.0.0-alpha-1-SNAPSHOT API)</title> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <meta name="description" content="declaration: package: org.apache.hadoop.hbase.util, class: SimplePositionedByteRange"> |
| <meta name="generator" content="javadoc/ClassWriterImpl"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.min.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../script-dir/jquery-3.6.1.min.js"></script> |
| <script type="text/javascript" src="../../../../../script-dir/jquery-ui.min.js"></script> |
| </head> |
| <body class="class-declaration-page"> |
| <script type="text/javascript">var evenRowColor = "even-row-color"; |
| var oddRowColor = "odd-row-color"; |
| var tableTab = "table-tab"; |
| var activeTableTab = "active-table-tab"; |
| var pathtoroot = "../../../../../"; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <div class="flex-box"> |
| <header role="banner" class="flex-header"> |
| <nav role="navigation"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="top-nav" id="navbar-top"> |
| <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> |
| <ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> |
| <li><a href="../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="nav-bar-cell1-rev">Class</li> |
| <li><a href="class-use/SimplePositionedByteRange.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html#class">Help</a></li> |
| </ul> |
| </div> |
| <div class="sub-nav"> |
| <div> |
| <ul class="sub-nav-list"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field-summary">Field</a> | </li> |
| <li><a href="#constructor-summary">Constr</a> | </li> |
| <li><a href="#method-summary">Method</a></li> |
| </ul> |
| <ul class="sub-nav-list"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor-detail">Constr</a> | </li> |
| <li><a href="#method-detail">Method</a></li> |
| </ul> |
| </div> |
| <div class="nav-list-search"><label for="search-input">SEARCH:</label> |
| <input type="text" id="search-input" value="search" disabled="disabled"> |
| <input type="reset" id="reset-button" value="reset" disabled="disabled"> |
| </div> |
| </div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <span class="skip-nav" id="skip-navbar-top"></span></nav> |
| </header> |
| <div class="flex-content"> |
| <main role="main"> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="sub-title"><span class="package-label-in-type">Package</span> <a href="package-summary.html">org.apache.hadoop.hbase.util</a></div> |
| <h1 title="Class SimplePositionedByteRange" class="title">Class SimplePositionedByteRange</h1> |
| </div> |
| <div class="inheritance" title="Inheritance Tree"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">java.lang.Object</a> |
| <div class="inheritance"><a href="AbstractByteRange.html" title="class in org.apache.hadoop.hbase.util">org.apache.hadoop.hbase.util.AbstractByteRange</a> |
| <div class="inheritance"><a href="AbstractPositionedByteRange.html" title="class in org.apache.hadoop.hbase.util">org.apache.hadoop.hbase.util.AbstractPositionedByteRange</a> |
| <div class="inheritance">org.apache.hadoop.hbase.util.SimplePositionedByteRange</div> |
| </div> |
| </div> |
| </div> |
| <section class="class-description" id="class-description"> |
| <dl class="notes"> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Comparable.html" title="class or interface in java.lang" class="external-link">Comparable</a><<a href="ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a>></code>, <code><a href="ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code>, <code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></dd> |
| </dl> |
| <hr> |
| <div class="type-signature"><span class="annotations">@Public |
| </span><span class="modifiers">public class </span><span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-28">SimplePositionedByteRange</a></span> |
| <span class="extends-implements">extends <a href="AbstractPositionedByteRange.html" title="class in org.apache.hadoop.hbase.util">AbstractPositionedByteRange</a></span></div> |
| <div class="block">Extends the basic <a href="SimpleMutableByteRange.html" title="class in org.apache.hadoop.hbase.util"><code>SimpleMutableByteRange</code></a> implementation with position support and it is a |
| readonly version. <code>position</code> is considered transient, not fundamental to the definition of |
| the range, and does not participate in <a href="AbstractByteRange.html#compareTo(org.apache.hadoop.hbase.util.ByteRange)"><code>AbstractByteRange.compareTo(ByteRange)</code></a>, <a href="AbstractByteRange.html#hashCode()"><code>AbstractByteRange.hashCode()</code></a>, or |
| <a href="AbstractByteRange.html#equals(java.lang.Object)"><code>AbstractByteRange.equals(Object)</code></a>. <code>Position</code> is retained by copy operations.</div> |
| </section> |
| <section class="summary"> |
| <ul class="summary-list"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <li> |
| <section class="field-summary" id="field-summary"> |
| <h2>Field Summary</h2> |
| <div class="inherited-list"> |
| <h3 id="fields-inherited-from-class-org.apache.hadoop.hbase.util.AbstractPositionedByteRange">Fields inherited from class org.apache.hadoop.hbase.util.<a href="AbstractPositionedByteRange.html" title="class in org.apache.hadoop.hbase.util">AbstractPositionedByteRange</a></h3> |
| <code><a href="AbstractPositionedByteRange.html#limit">limit</a>, <a href="AbstractPositionedByteRange.html#position">position</a></code></div> |
| <div class="inherited-list"> |
| <h3 id="fields-inherited-from-class-org.apache.hadoop.hbase.util.AbstractByteRange">Fields inherited from class org.apache.hadoop.hbase.util.<a href="AbstractByteRange.html" title="class in org.apache.hadoop.hbase.util">AbstractByteRange</a></h3> |
| <code><a href="AbstractByteRange.html#bytes">bytes</a>, <a href="AbstractByteRange.html#hash">hash</a>, <a href="AbstractByteRange.html#length">length</a>, <a href="AbstractByteRange.html#offset">offset</a>, <a href="AbstractByteRange.html#UNSET_HASH_VALUE">UNSET_HASH_VALUE</a></code></div> |
| </section> |
| </li> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <li> |
| <section class="constructor-summary" id="constructor-summary"> |
| <h2>Constructor Summary</h2> |
| <div class="caption"><span>Constructors</span></div> |
| <div class="summary-table two-column-summary"> |
| <div class="table-header col-first">Constructor</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E()" class="member-name-link">SimplePositionedByteRange</a>()</code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">Create a new <code>PositionedByteRange</code> lacking a backing array and with an undefined |
| viewport.</div> |
| </div> |
| <div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(byte%5B%5D)" class="member-name-link">SimplePositionedByteRange</a><wbr>(byte[] bytes)</code></div> |
| <div class="col-last odd-row-color"> |
| <div class="block">Create a new <code>PositionedByteRange</code> over the provided <code>bytes</code>.</div> |
| </div> |
| <div class="col-constructor-name even-row-color"><code><a href="#%3Cinit%3E(byte%5B%5D,int,int)" class="member-name-link">SimplePositionedByteRange</a><wbr>(byte[] bytes, |
| int offset, |
| int length)</code></div> |
| <div class="col-last even-row-color"> |
| <div class="block">Create a new <code>PositionedByteRange</code> over the provided <code>bytes</code>.</div> |
| </div> |
| <div class="col-constructor-name odd-row-color"><code><a href="#%3Cinit%3E(int)" class="member-name-link">SimplePositionedByteRange</a><wbr>(int capacity)</code></div> |
| <div class="col-last odd-row-color"> |
| <div class="block">Create a new <code>PositionedByteRange</code> over a new backing array of size <code>capacity</code>.</div> |
| </div> |
| </div> |
| </section> |
| </li> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <li> |
| <section class="method-summary" id="method-summary"> |
| <h2>Method Summary</h2> |
| <div id="method-summary-table"> |
| <div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab4" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab4', 3)" class="table-tab">Concrete Methods</button></div> |
| <div id="method-summary-table.tabpanel" role="tabpanel"> |
| <div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0"> |
| <div class="table-header col-first">Modifier and Type</div> |
| <div class="table-header col-second">Method</div> |
| <div class="table-header col-last">Description</div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#deepCopy()" class="member-name-link">deepCopy</a>()</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Create a new <code>ByteRange</code> with new backing byte[] containing a copy of the content from |
| <code>this</code> range's window.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#get(int,byte%5B%5D)" class="member-name-link">get</a><wbr>(int index, |
| byte[] dst)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Fill <code>dst</code> with bytes from the range, starting from <code>index</code>.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#get(int,byte%5B%5D,int,int)" class="member-name-link">get</a><wbr>(int index, |
| byte[] dst, |
| int offset, |
| int length)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Fill <code>dst</code> with bytes from the range, starting from <code>index</code>.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#put(byte)" class="member-name-link">put</a><wbr>(byte val)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store <code>val</code> at the next position in this range.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#put(byte%5B%5D)" class="member-name-link">put</a><wbr>(byte[] val)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store the content of <code>val</code> in this range, starting at the next position.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#put(byte%5B%5D,int,int)" class="member-name-link">put</a><wbr>(byte[] val, |
| int offset, |
| int length)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store <code>length</code> bytes from <code>val</code> into this range.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#put(int,byte)" class="member-name-link">put</a><wbr>(int index, |
| byte val)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store <code>val</code> at <code>index</code>.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#put(int,byte%5B%5D)" class="member-name-link">put</a><wbr>(int index, |
| byte[] val)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store <code>val</code> at <code>index</code>.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#put(int,byte%5B%5D,int,int)" class="member-name-link">put</a><wbr>(int index, |
| byte[] val, |
| int offset, |
| int length)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store <code>length</code> bytes from <code>val</code> into this range, starting at <code>index</code>.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#putInt(int)" class="member-name-link">putInt</a><wbr>(int val)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store int <code>val</code> at the next position in this range.</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#putInt(int,int)" class="member-name-link">putInt</a><wbr>(int index, |
| int val)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store the int value at <code>index</code></div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#putLong(int,long)" class="member-name-link">putLong</a><wbr>(int index, |
| long val)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store the long value at <code>index</code></div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#putLong(long)" class="member-name-link">putLong</a><wbr>(long val)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store long <code>val</code> at the next position in this range.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#putShort(int,short)" class="member-name-link">putShort</a><wbr>(int index, |
| short val)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store the short value at <code>index</code></div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#putShort(short)" class="member-name-link">putShort</a><wbr>(short val)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store short <code>val</code> at the next position in this range.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#putVLong(int,long)" class="member-name-link">putVLong</a><wbr>(int index, |
| long val)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store the long value at <code>index</code> as a VLong</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>int</code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#putVLong(long)" class="member-name-link">putVLong</a><wbr>(long val)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Store the long <code>val</code> at the next position as a VLong</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#set(byte%5B%5D)" class="member-name-link">set</a><wbr>(byte[] bytes)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Reuse this <code>ByteRange</code> over a new byte[].</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#set(byte%5B%5D,int,int)" class="member-name-link">set</a><wbr>(byte[] bytes, |
| int offset, |
| int length)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Reuse this <code>ByteRange</code> over a new byte[].</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#set(int)" class="member-name-link">set</a><wbr>(int capacity)</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Reuse this <code>ByteRange</code> over a new byte[].</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#setLimit(int)" class="member-name-link">setLimit</a><wbr>(int limit)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Limits the byte range upto a specified value.</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#shallowCopy()" class="member-name-link">shallowCopy</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Create a new <code>ByteRange</code> that points at this range's byte[].</div> |
| </div> |
| <div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#shallowCopySubRange(int,int)" class="member-name-link">shallowCopySubRange</a><wbr>(int innerOffset, |
| int copyLength)</code></div> |
| <div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Create a new <code>ByteRange</code> that points at this range's byte[].</div> |
| </div> |
| <div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></div> |
| <div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#unset()" class="member-name-link">unset</a>()</code></div> |
| <div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"> |
| <div class="block">Nullifies this ByteRange.</div> |
| </div> |
| </div> |
| </div> |
| </div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-org.apache.hadoop.hbase.util.AbstractPositionedByteRange">Methods inherited from class org.apache.hadoop.hbase.util.<a href="AbstractPositionedByteRange.html" title="class in org.apache.hadoop.hbase.util">AbstractPositionedByteRange</a></h3> |
| <code><a href="AbstractPositionedByteRange.html#get()">get</a>, <a href="AbstractPositionedByteRange.html#get(byte%5B%5D)">get</a>, <a href="AbstractPositionedByteRange.html#get(byte%5B%5D,int,int)">get</a>, <a href="AbstractPositionedByteRange.html#getInt()">getInt</a>, <a href="AbstractPositionedByteRange.html#getLimit()">getLimit</a>, <a href="AbstractPositionedByteRange.html#getLong()">getLong</a>, <a href="AbstractPositionedByteRange.html#getPosition()">getPosition</a>, <a href="AbstractPositionedByteRange.html#getRemaining()">getRemaining</a>, <a href="AbstractPositionedByteRange.html#getShort()">getShort</a>, <a href="AbstractPositionedByteRange.html#getVLong()">getVLong</a>, <a href="AbstractPositionedByteRange.html#peek()">peek</a>, <a href="AbstractPositionedByteRange.html#setLength(int)">setLength</a>, <a href="AbstractPositionedByteRange.html#setOffset(int)">setOffset</a>, <a href="AbstractPositionedByteRange.html#setPosition(int)">setPosition</a></code></div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-org.apache.hadoop.hbase.util.AbstractByteRange">Methods inherited from class org.apache.hadoop.hbase.util.<a href="AbstractByteRange.html" title="class in org.apache.hadoop.hbase.util">AbstractByteRange</a></h3> |
| <code><a href="AbstractByteRange.html#clearHashCache()">clearHashCache</a>, <a href="AbstractByteRange.html#compareTo(org.apache.hadoop.hbase.util.ByteRange)">compareTo</a>, <a href="AbstractByteRange.html#deepCopySubRangeTo(int,int,byte%5B%5D,int)">deepCopySubRangeTo</a>, <a href="AbstractByteRange.html#deepCopyTo(byte%5B%5D,int)">deepCopyTo</a>, <a href="AbstractByteRange.html#deepCopyToNewArray()">deepCopyToNewArray</a>, <a href="AbstractByteRange.html#equals(java.lang.Object)">equals</a>, <a href="AbstractByteRange.html#get(int)">get</a>, <a href="AbstractByteRange.html#getBytes()">getBytes</a>, <a href="AbstractByteRange.html#getInt(int)">getInt</a>, <a href="AbstractByteRange.html#getLength()">getLength</a>, <a href="AbstractByteRange.html#getLong(int)">getLong</a>, <a href="AbstractByteRange.html#getOffset()">getOffset</a>, <a href="AbstractByteRange.html#getShort(int)">getShort</a>, <a href="AbstractByteRange.html#getVLong(int)">getVLong</a>, <a href="AbstractByteRange.html#getVLongSize(long)">getVLongSize</a>, <a href="AbstractByteRange.html#hashCode()">hashCode</a>, <a href="AbstractByteRange.html#isEmpty()">isEmpty</a>, <a href="AbstractByteRange.html#isEmpty(org.apache.hadoop.hbase.util.ByteRange)">isEmpty</a>, <a href="AbstractByteRange.html#isHashCached()">isHashCached</a>, <a href="AbstractByteRange.html#toString()">toString</a></code></div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></h3> |
| <code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()" title="class or interface in java.lang" class="external-link">clone</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()" title="class or interface in java.lang" class="external-link">finalize</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()" title="class or interface in java.lang" class="external-link">getClass</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()" title="class or interface in java.lang" class="external-link">notify</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()" title="class or interface in java.lang" class="external-link">notifyAll</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)" title="class or interface in java.lang" class="external-link">wait</a>, <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)" title="class or interface in java.lang" class="external-link">wait</a></code></div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-org.apache.hadoop.hbase.util.ByteRange">Methods inherited from interface org.apache.hadoop.hbase.util.<a href="ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></h3> |
| <code><a href="ByteRange.html#deepCopySubRangeTo(int,int,byte%5B%5D,int)">deepCopySubRangeTo</a>, <a href="ByteRange.html#deepCopyTo(byte%5B%5D,int)">deepCopyTo</a>, <a href="ByteRange.html#deepCopyToNewArray()">deepCopyToNewArray</a>, <a href="ByteRange.html#get(int)">get</a>, <a href="ByteRange.html#getBytes()">getBytes</a>, <a href="ByteRange.html#getInt(int)">getInt</a>, <a href="ByteRange.html#getLength()">getLength</a>, <a href="ByteRange.html#getLong(int)">getLong</a>, <a href="ByteRange.html#getOffset()">getOffset</a>, <a href="ByteRange.html#getShort(int)">getShort</a>, <a href="ByteRange.html#getVLong(int)">getVLong</a>, <a href="ByteRange.html#isEmpty()">isEmpty</a></code></div> |
| <div class="inherited-list"> |
| <h3 id="methods-inherited-from-class-java.lang.Comparable">Methods inherited from interface java.lang.<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Comparable.html" title="class or interface in java.lang" class="external-link">Comparable</a></h3> |
| <code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Comparable.html#compareTo(T)" title="class or interface in java.lang" class="external-link">compareTo</a></code></div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <section class="details"> |
| <ul class="details-list"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <li> |
| <section class="constructor-details" id="constructor-detail"> |
| <h2>Constructor Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="<init>()"> |
| <h3>SimplePositionedByteRange</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-36">SimplePositionedByteRange</a></span>()</div> |
| <div class="block">Create a new <code>PositionedByteRange</code> lacking a backing array and with an undefined |
| viewport.</div> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="<init>(int)"> |
| <h3>SimplePositionedByteRange</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-45">SimplePositionedByteRange</a></span><wbr><span class="parameters">(int capacity)</span></div> |
| <div class="block">Create a new <code>PositionedByteRange</code> over a new backing array of size <code>capacity</code>. The |
| range's offset and length are 0 and <code>capacity</code>, respectively.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>capacity</code> - the size of the backing array.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="<init>(byte[])"> |
| <h3>SimplePositionedByteRange</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-53">SimplePositionedByteRange</a></span><wbr><span class="parameters">(byte[] bytes)</span></div> |
| <div class="block">Create a new <code>PositionedByteRange</code> over the provided <code>bytes</code>.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>bytes</code> - The array to wrap.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="<init>(byte[],int,int)"> |
| <h3>SimplePositionedByteRange</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-63">SimplePositionedByteRange</a></span><wbr><span class="parameters">(byte[] bytes, |
| int offset, |
| int length)</span></div> |
| <div class="block">Create a new <code>PositionedByteRange</code> over the provided <code>bytes</code>.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>bytes</code> - The array to wrap.</dd> |
| <dd><code>offset</code> - The offset into <code>bytes</code> considered the beginning of this range.</dd> |
| <dd><code>length</code> - The length of this range.</dd> |
| </dl> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| <!-- ============ METHOD DETAIL ========== --> |
| <li> |
| <section class="method-details" id="method-detail"> |
| <h2>Method Details</h2> |
| <ul class="member-list"> |
| <li> |
| <section class="detail" id="set(int)"> |
| <h3>set</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-67">set</a></span><wbr><span class="parameters">(int capacity)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#set(int)">ByteRange</a></code></span></div> |
| <div class="block">Reuse this <code>ByteRange</code> over a new byte[]. <code>offset</code> is set to 0 and <code>length</code> |
| is set to <code>capacity</code>.</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteRange.html#set(int)">set</a></code> in interface <code><a href="ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd> |
| <dt>Specified by:</dt> |
| <dd><code><a href="PositionedByteRange.html#set(int)">set</a></code> in interface <code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></dd> |
| <dt>Overrides:</dt> |
| <dd><code><a href="AbstractPositionedByteRange.html#set(int)">set</a></code> in class <code><a href="AbstractPositionedByteRange.html" title="class in org.apache.hadoop.hbase.util">AbstractPositionedByteRange</a></code></dd> |
| <dt>Parameters:</dt> |
| <dd><code>capacity</code> - the size of a new byte[].</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="set(byte[])"> |
| <h3>set</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-75">set</a></span><wbr><span class="parameters">(byte[] bytes)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#set(byte%5B%5D)">ByteRange</a></code></span></div> |
| <div class="block">Reuse this <code>ByteRange</code> over a new byte[]. <code>offset</code> is set to 0 and <code>length</code> |
| is set to <code>bytes.length</code>. A null <code>bytes</code> IS supported, in which case this method |
| will behave equivalently to <a href="ByteRange.html#unset()"><code>ByteRange.unset()</code></a>.</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteRange.html#set(byte%5B%5D)">set</a></code> in interface <code><a href="ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd> |
| <dt>Specified by:</dt> |
| <dd><code><a href="PositionedByteRange.html#set(byte%5B%5D)">set</a></code> in interface <code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></dd> |
| <dt>Overrides:</dt> |
| <dd><code><a href="AbstractPositionedByteRange.html#set(byte%5B%5D)">set</a></code> in class <code><a href="AbstractPositionedByteRange.html" title="class in org.apache.hadoop.hbase.util">AbstractPositionedByteRange</a></code></dd> |
| <dt>Parameters:</dt> |
| <dd><code>bytes</code> - the array to wrap.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="set(byte[],int,int)"> |
| <h3>set</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-83">set</a></span><wbr><span class="parameters">(byte[] bytes, |
| int offset, |
| int length)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#set(byte%5B%5D,int,int)">ByteRange</a></code></span></div> |
| <div class="block">Reuse this <code>ByteRange</code> over a new byte[]. A null <code>bytes</code> IS supported, in which |
| case this method will behave equivalently to <a href="ByteRange.html#unset()"><code>ByteRange.unset()</code></a>, regardless of the values of |
| <code>offset</code> and <code>length</code>.</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteRange.html#set(byte%5B%5D,int,int)">set</a></code> in interface <code><a href="ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd> |
| <dt>Specified by:</dt> |
| <dd><code><a href="PositionedByteRange.html#set(byte%5B%5D,int,int)">set</a></code> in interface <code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></dd> |
| <dt>Overrides:</dt> |
| <dd><code><a href="AbstractPositionedByteRange.html#set(byte%5B%5D,int,int)">set</a></code> in class <code><a href="AbstractPositionedByteRange.html" title="class in org.apache.hadoop.hbase.util">AbstractPositionedByteRange</a></code></dd> |
| <dt>Parameters:</dt> |
| <dd><code>bytes</code> - The array to wrap.</dd> |
| <dd><code>offset</code> - The offset into <code>bytes</code> considered the beginning of this range.</dd> |
| <dd><code>length</code> - The length of this range.</dd> |
| <dt>Returns:</dt> |
| <dd>this.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="put(byte)"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-91">put</a></span><wbr><span class="parameters">(byte val)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="PositionedByteRange.html#put(byte)">PositionedByteRange</a></code></span></div> |
| <div class="block">Store <code>val</code> at the next position in this range.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>val</code> - the new value.</dd> |
| <dt>Returns:</dt> |
| <dd>this.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="putShort(short)"> |
| <h3>putShort</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-96">putShort</a></span><wbr><span class="parameters">(short val)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="PositionedByteRange.html#putShort(short)">PositionedByteRange</a></code></span></div> |
| <div class="block">Store short <code>val</code> at the next position in this range.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>val</code> - the new value.</dd> |
| <dt>Returns:</dt> |
| <dd>this.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="putInt(int)"> |
| <h3>putInt</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-101">putInt</a></span><wbr><span class="parameters">(int val)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="PositionedByteRange.html#putInt(int)">PositionedByteRange</a></code></span></div> |
| <div class="block">Store int <code>val</code> at the next position in this range.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>val</code> - the new value.</dd> |
| <dt>Returns:</dt> |
| <dd>this.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="putLong(long)"> |
| <h3>putLong</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-106">putLong</a></span><wbr><span class="parameters">(long val)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="PositionedByteRange.html#putLong(long)">PositionedByteRange</a></code></span></div> |
| <div class="block">Store long <code>val</code> at the next position in this range.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>val</code> - the new value.</dd> |
| <dt>Returns:</dt> |
| <dd>this.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="putVLong(long)"> |
| <h3>putVLong</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-111">putVLong</a></span><wbr><span class="parameters">(long val)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="PositionedByteRange.html#putVLong(long)">PositionedByteRange</a></code></span></div> |
| <div class="block">Store the long <code>val</code> at the next position as a VLong</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>val</code> - the value to store</dd> |
| <dt>Returns:</dt> |
| <dd>number of bytes written</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="put(byte[])"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-116">put</a></span><wbr><span class="parameters">(byte[] val)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="PositionedByteRange.html#put(byte%5B%5D)">PositionedByteRange</a></code></span></div> |
| <div class="block">Store the content of <code>val</code> in this range, starting at the next position.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>val</code> - the new value.</dd> |
| <dt>Returns:</dt> |
| <dd>this.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="put(byte[],int,int)"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-121">put</a></span><wbr><span class="parameters">(byte[] val, |
| int offset, |
| int length)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="PositionedByteRange.html#put(byte%5B%5D,int,int)">PositionedByteRange</a></code></span></div> |
| <div class="block">Store <code>length</code> bytes from <code>val</code> into this range. Bytes from <code>val</code> are copied |
| starting at <code>offset</code> into the range, starting at the current position.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>val</code> - the new value.</dd> |
| <dd><code>offset</code> - the offset in <code>val</code> from which to start copying.</dd> |
| <dd><code>length</code> - the number of bytes to copy from <code>val</code>.</dd> |
| <dt>Returns:</dt> |
| <dd>this.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="get(int,byte[])"> |
| <h3>get</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-126">get</a></span><wbr><span class="parameters">(int index, |
| byte[] dst)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#get(int,byte%5B%5D)">ByteRange</a></code></span></div> |
| <div class="block">Fill <code>dst</code> with bytes from the range, starting from <code>index</code>.</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteRange.html#get(int,byte%5B%5D)">get</a></code> in interface <code><a href="ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd> |
| <dt>Specified by:</dt> |
| <dd><code><a href="PositionedByteRange.html#get(int,byte%5B%5D)">get</a></code> in interface <code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></dd> |
| <dt>Overrides:</dt> |
| <dd><code><a href="AbstractPositionedByteRange.html#get(int,byte%5B%5D)">get</a></code> in class <code><a href="AbstractPositionedByteRange.html" title="class in org.apache.hadoop.hbase.util">AbstractPositionedByteRange</a></code></dd> |
| <dt>Parameters:</dt> |
| <dd><code>index</code> - zero-based index into this range.</dd> |
| <dd><code>dst</code> - the destination of the copy.</dd> |
| <dt>Returns:</dt> |
| <dd>this.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="get(int,byte[],int,int)"> |
| <h3>get</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-132">get</a></span><wbr><span class="parameters">(int index, |
| byte[] dst, |
| int offset, |
| int length)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#get(int,byte%5B%5D,int,int)">ByteRange</a></code></span></div> |
| <div class="block">Fill <code>dst</code> with bytes from the range, starting from <code>index</code>. <code>length</code> bytes |
| are copied into <code>dst</code>, starting at <code>offset</code>.</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="ByteRange.html#get(int,byte%5B%5D,int,int)">get</a></code> in interface <code><a href="ByteRange.html" title="interface in org.apache.hadoop.hbase.util">ByteRange</a></code></dd> |
| <dt>Specified by:</dt> |
| <dd><code><a href="PositionedByteRange.html#get(int,byte%5B%5D,int,int)">get</a></code> in interface <code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></dd> |
| <dt>Overrides:</dt> |
| <dd><code><a href="AbstractPositionedByteRange.html#get(int,byte%5B%5D,int,int)">get</a></code> in class <code><a href="AbstractPositionedByteRange.html" title="class in org.apache.hadoop.hbase.util">AbstractPositionedByteRange</a></code></dd> |
| <dt>Parameters:</dt> |
| <dd><code>index</code> - zero-based index into this range.</dd> |
| <dd><code>dst</code> - the destination of the copy.</dd> |
| <dd><code>offset</code> - the offset into <code>dst</code> to start the copy.</dd> |
| <dd><code>length</code> - the number of bytes to copy into <code>dst</code>.</dd> |
| <dt>Returns:</dt> |
| <dd>this.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="put(int,byte)"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-138">put</a></span><wbr><span class="parameters">(int index, |
| byte val)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#put(int,byte)">ByteRange</a></code></span></div> |
| <div class="block">Store <code>val</code> at <code>index</code>.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>index</code> - the index in the range where <code>val</code> is stored.</dd> |
| <dd><code>val</code> - the value to store.</dd> |
| <dt>Returns:</dt> |
| <dd>this.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="putShort(int,short)"> |
| <h3>putShort</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-143">putShort</a></span><wbr><span class="parameters">(int index, |
| short val)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#putShort(int,short)">ByteRange</a></code></span></div> |
| <div class="block">Store the short value at <code>index</code></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>index</code> - the index in the range where <code>val</code> is stored</dd> |
| <dd><code>val</code> - the value to store</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="putInt(int,int)"> |
| <h3>putInt</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-148">putInt</a></span><wbr><span class="parameters">(int index, |
| int val)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#putInt(int,int)">ByteRange</a></code></span></div> |
| <div class="block">Store the int value at <code>index</code></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>index</code> - the index in the range where <code>val</code> is stored</dd> |
| <dd><code>val</code> - the value to store</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="putVLong(int,long)"> |
| <h3>putVLong</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type">int</span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-153">putVLong</a></span><wbr><span class="parameters">(int index, |
| long val)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#putVLong(int,long)">ByteRange</a></code></span></div> |
| <div class="block">Store the long value at <code>index</code> as a VLong</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>index</code> - the index in the range where <code>val</code> is stored</dd> |
| <dd><code>val</code> - the value to store</dd> |
| <dt>Returns:</dt> |
| <dd>number of bytes written</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="putLong(int,long)"> |
| <h3>putLong</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-158">putLong</a></span><wbr><span class="parameters">(int index, |
| long val)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#putLong(int,long)">ByteRange</a></code></span></div> |
| <div class="block">Store the long value at <code>index</code></div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>index</code> - the index in the range where <code>val</code> is stored</dd> |
| <dd><code>val</code> - the value to store</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="put(int,byte[])"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-163">put</a></span><wbr><span class="parameters">(int index, |
| byte[] val)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#put(int,byte%5B%5D)">ByteRange</a></code></span></div> |
| <div class="block">Store <code>val</code> at <code>index</code>.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>index</code> - the index in the range where <code>val</code> is stored.</dd> |
| <dd><code>val</code> - the value to store.</dd> |
| <dt>Returns:</dt> |
| <dd>this.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="put(int,byte[],int,int)"> |
| <h3>put</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-168">put</a></span><wbr><span class="parameters">(int index, |
| byte[] val, |
| int offset, |
| int length)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#put(int,byte%5B%5D,int,int)">ByteRange</a></code></span></div> |
| <div class="block">Store <code>length</code> bytes from <code>val</code> into this range, starting at <code>index</code>. Bytes |
| from <code>val</code> are copied starting at <code>offset</code> into the range.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>index</code> - position in this range to start the copy.</dd> |
| <dd><code>val</code> - the value to store.</dd> |
| <dd><code>offset</code> - the offset in <code>val</code> from which to start copying.</dd> |
| <dd><code>length</code> - the number of bytes to copy from <code>val</code>.</dd> |
| <dt>Returns:</dt> |
| <dd>this.</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="deepCopy()"> |
| <h3>deepCopy</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-173">deepCopy</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#deepCopy()">ByteRange</a></code></span></div> |
| <div class="block">Create a new <code>ByteRange</code> with new backing byte[] containing a copy of the content from |
| <code>this</code> range's window.</div> |
| <dl class="notes"> |
| <dt>Returns:</dt> |
| <dd>Deep copy</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="shallowCopy()"> |
| <h3>shallowCopy</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-180">shallowCopy</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#shallowCopy()">ByteRange</a></code></span></div> |
| <div class="block">Create a new <code>ByteRange</code> that points at this range's byte[]. Modifying the shallowCopy |
| will modify the bytes in this range's array. Pass over the hash code if it is already cached.</div> |
| <dl class="notes"> |
| <dt>Returns:</dt> |
| <dd>new <code>ByteRange</code> object referencing this range's byte[].</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="shallowCopySubRange(int,int)"> |
| <h3>shallowCopySubRange</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-187">shallowCopySubRange</a></span><wbr><span class="parameters">(int innerOffset, |
| int copyLength)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#shallowCopySubRange(int,int)">ByteRange</a></code></span></div> |
| <div class="block">Create a new <code>ByteRange</code> that points at this range's byte[]. The new range can have |
| different values for offset and length, but modifying the shallowCopy will modify the bytes in |
| this range's array. Pass over the hash code if it is already cached.</div> |
| <dl class="notes"> |
| <dt>Parameters:</dt> |
| <dd><code>innerOffset</code> - First byte of clone will be this.offset + copyOffset.</dd> |
| <dd><code>copyLength</code> - Number of bytes in the clone.</dd> |
| <dt>Returns:</dt> |
| <dd>new <code>ByteRange</code> object referencing this range's byte[].</dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="setLimit(int)"> |
| <h3>setLimit</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-195">setLimit</a></span><wbr><span class="parameters">(int limit)</span></div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="PositionedByteRange.html#setLimit(int)">PositionedByteRange</a></code></span></div> |
| <div class="block">Limits the byte range upto a specified value. Limit cannot be greater than capacity</div> |
| <dl class="notes"> |
| <dt>Specified by:</dt> |
| <dd><code><a href="PositionedByteRange.html#setLimit(int)">setLimit</a></code> in interface <code><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></code></dd> |
| <dt>Overrides:</dt> |
| <dd><code><a href="AbstractPositionedByteRange.html#setLimit(int)">setLimit</a></code> in class <code><a href="AbstractPositionedByteRange.html" title="class in org.apache.hadoop.hbase.util">AbstractPositionedByteRange</a></code></dd> |
| </dl> |
| </section> |
| </li> |
| <li> |
| <section class="detail" id="unset()"> |
| <h3>unset</h3> |
| <div class="member-signature"><span class="modifiers">public</span> <span class="return-type"><a href="PositionedByteRange.html" title="interface in org.apache.hadoop.hbase.util">PositionedByteRange</a></span> <span class="element-name"><a href="../../../../../src-html/org/apache/hadoop/hbase/util/SimplePositionedByteRange.html#line-200">unset</a></span>()</div> |
| <div class="block"><span class="descfrm-type-label">Description copied from interface: <code><a href="ByteRange.html#unset()">ByteRange</a></code></span></div> |
| <div class="block">Nullifies this ByteRange. That is, it becomes a husk, being a range over no byte[] whatsoever.</div> |
| </section> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </section> |
| <!-- ========= END OF CLASS DATA ========= --> |
| </main> |
| <footer role="contentinfo"> |
| <hr> |
| <p class="legal-copy"><small>Copyright © 2007–2020 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </div> |
| </div> |
| </body> |
| </html> |