blob: 72a21cadb1c41d7111a56535081e82d8f0a973c1 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TimeRange (Apache HBase 3.0.0-SNAPSHOT API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TimeRange (Apache HBase 3.0.0-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":10,"i5":9,"i6":10,"i7":10,"i8":10,"i9":10,"i10":9,"i11":10,"i12":9,"i13":10,"i14":42,"i15":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/TimeRange.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/hadoop/hbase/io/TagCompressionContext.html" title="class in org.apache.hadoop.hbase.io"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/hadoop/hbase/io/WALLink.html" title="class in org.apache.hadoop.hbase.io"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/hadoop/hbase/io/TimeRange.html" target="_top">Frames</a></li>
<li><a href="TimeRange.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.hadoop.hbase.io</div>
<h2 title="Class TimeRange" class="title">Class TimeRange</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.hadoop.hbase.io.TimeRange</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>@InterfaceAudience.Public
public class <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.38">TimeRange</a>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Represents an interval of version timestamps. Presumes timestamps between
<a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#INITIAL_MIN_TIMESTAMP"><code>INITIAL_MIN_TIMESTAMP</code></a> and <a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#INITIAL_MAX_TIMESTAMP"><code>INITIAL_MAX_TIMESTAMP</code></a> only. Gets freaked out if
passed a timestamp that is < <a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#INITIAL_MIN_TIMESTAMP"><code>INITIAL_MIN_TIMESTAMP</code></a>,
<p>
Evaluated according to minStamp &lt;= timestamp &lt; maxStamp or [minStamp,maxStamp) in interval
notation.
<p>
Can be returned and read by clients. Should not be directly created by clients. Thus, all
constructors are purposely @InterfaceAudience.Private.
<p>
Immutable. Thread-safe.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static <a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#ALL_TIME">ALL_TIME</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#allTime">allTime</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#INITIAL_MAX_TIMESTAMP">INITIAL_MAX_TIMESTAMP</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#INITIAL_MIN_TIMESTAMP">INITIAL_MIN_TIMESTAMP</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#maxStamp">maxStamp</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#minStamp">minStamp</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#TimeRange--">TimeRange</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above and may be
changed to private or removed in 3.0.</span></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-byte:A-">TimeRange</a></span>(byte[]&nbsp;minStamp)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above and may be
changed to private or removed in 3.0.</span></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-byte:A-byte:A-">TimeRange</a></span>(byte[]&nbsp;minStamp,
byte[]&nbsp;maxStamp)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above and may be
changed to private or removed in 3.0.</span></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-long-">TimeRange</a></span>(long&nbsp;minStamp)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above and may be
changed to private or removed in 3.0.</span></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-long-long-">TimeRange</a></span>(long&nbsp;minStamp,
long&nbsp;maxStamp)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above and may be
changed to private or removed in 3.0.</span></div>
</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#allTime--">allTime</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#at-long-">at</a></span>(long&nbsp;ts)</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#between-long-long-">between</a></span>(long&nbsp;minStamp,
long&nbsp;maxStamp)</code>
<div class="block">Represents the time interval [minStamp, maxStamp)</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>private static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#check-long-long-">check</a></span>(long&nbsp;minStamp,
long&nbsp;maxStamp)</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#compare-long-">compare</a></span>(long&nbsp;timestamp)</code>
<div class="block">Compare the timestamp to timerange.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#from-long-">from</a></span>(long&nbsp;minStamp)</code>
<div class="block">Represents the time interval [minStamp, Long.MAX_VALUE)</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#getMax--">getMax</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#getMin--">getMin</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#includesTimeRange-org.apache.hadoop.hbase.io.TimeRange-">includesTimeRange</a></span>(<a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a>&nbsp;tr)</code>
<div class="block">Check if the range has any overlap with TimeRange</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#isAllTime--">isAllTime</a></span>()</code>
<div class="block">Check if it is for all time</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>private static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#isAllTime-long-long-">isAllTime</a></span>(long&nbsp;minStamp,
long&nbsp;maxStamp)</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="https://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/io/TimeRange.html#toString--">toString</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#until-long-">until</a></span>(long&nbsp;maxStamp)</code>
<div class="block">Represents the time interval [0, maxStamp)</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#withinOrAfterTimeRange-long-">withinOrAfterTimeRange</a></span>(long&nbsp;timestamp)</code>
<div class="block">Check if the specified timestamp is within or after this TimeRange.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#withinTimeRange-byte:A-int-">withinTimeRange</a></span>(byte[]&nbsp;bytes,
int&nbsp;offset)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above and may be
changed to private or removed in 3.0. Use <a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#withinTimeRange-long-"><code>withinTimeRange(long)</code></a> instead</span></div>
</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#withinTimeRange-long-">withinTimeRange</a></span>(long&nbsp;timestamp)</code>
<div class="block">Check if the specified timestamp is within this TimeRange.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="INITIAL_MIN_TIMESTAMP">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>INITIAL_MIN_TIMESTAMP</h4>
<pre>public static final&nbsp;long <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.39">INITIAL_MIN_TIMESTAMP</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.hadoop.hbase.io.TimeRange.INITIAL_MIN_TIMESTAMP">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="INITIAL_MAX_TIMESTAMP">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>INITIAL_MAX_TIMESTAMP</h4>
<pre>public static final&nbsp;long <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.40">INITIAL_MAX_TIMESTAMP</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../constant-values.html#org.apache.hadoop.hbase.io.TimeRange.INITIAL_MAX_TIMESTAMP">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="ALL_TIME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ALL_TIME</h4>
<pre>private static final&nbsp;<a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.41">ALL_TIME</a></pre>
</li>
</ul>
<a name="minStamp">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minStamp</h4>
<pre>private final&nbsp;long <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.83">minStamp</a></pre>
</li>
</ul>
<a name="maxStamp">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>maxStamp</h4>
<pre>private final&nbsp;long <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.84">maxStamp</a></pre>
</li>
</ul>
<a name="allTime">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>allTime</h4>
<pre>private final&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.85">allTime</a></pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="TimeRange--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TimeRange</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
@InterfaceAudience.Private
public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.95">TimeRange</a>()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above and may be
changed to private or removed in 3.0.</span></div>
<div class="block">Default constructor.
Represents interval [0, Long.MAX_VALUE) (allTime)</div>
</li>
</ul>
<a name="TimeRange-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TimeRange</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
@InterfaceAudience.Private
public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.107">TimeRange</a>(long&nbsp;minStamp)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above and may be
changed to private or removed in 3.0.</span></div>
<div class="block">Represents interval [minStamp, Long.MAX_VALUE)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>minStamp</code> - the minimum timestamp value, inclusive</dd>
</dl>
</li>
</ul>
<a name="TimeRange-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TimeRange</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
@InterfaceAudience.Private
public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.119">TimeRange</a>(byte[]&nbsp;minStamp)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above and may be
changed to private or removed in 3.0.</span></div>
<div class="block">Represents interval [minStamp, Long.MAX_VALUE)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>minStamp</code> - the minimum timestamp value, inclusive</dd>
</dl>
</li>
</ul>
<a name="TimeRange-byte:A-byte:A-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TimeRange</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
@InterfaceAudience.Private
public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.132">TimeRange</a>(byte[]&nbsp;minStamp,
byte[]&nbsp;maxStamp)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above and may be
changed to private or removed in 3.0.</span></div>
<div class="block">Represents interval [minStamp, maxStamp)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>minStamp</code> - the minimum timestamp, inclusive</dd>
<dd><code>maxStamp</code> - the maximum timestamp, exclusive</dd>
</dl>
</li>
</ul>
<a name="TimeRange-long-long-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>TimeRange</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
@InterfaceAudience.Private
public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.146">TimeRange</a>(long&nbsp;minStamp,
long&nbsp;maxStamp)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above and may be
changed to private or removed in 3.0.</span></div>
<div class="block">Represents interval [minStamp, maxStamp)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>minStamp</code> - the minimum timestamp, inclusive</dd>
<dd><code>maxStamp</code> - the maximum timestamp, exclusive</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if either <0,</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="allTime--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allTime</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.44">allTime</a>()</pre>
</li>
</ul>
<a name="at-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>at</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.48">at</a>(long&nbsp;ts)</pre>
</li>
</ul>
<a name="from-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>from</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.59">from</a>(long&nbsp;minStamp)</pre>
<div class="block">Represents the time interval [minStamp, Long.MAX_VALUE)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>minStamp</code> - the minimum timestamp value, inclusive</dd>
</dl>
</li>
</ul>
<a name="until-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>until</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.68">until</a>(long&nbsp;maxStamp)</pre>
<div class="block">Represents the time interval [0, maxStamp)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>maxStamp</code> - the minimum timestamp value, exclusive</dd>
</dl>
</li>
</ul>
<a name="between-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>between</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.78">between</a>(long&nbsp;minStamp,
long&nbsp;maxStamp)</pre>
<div class="block">Represents the time interval [minStamp, maxStamp)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>minStamp</code> - the minimum timestamp, inclusive</dd>
<dd><code>maxStamp</code> - the maximum timestamp, exclusive</dd>
</dl>
</li>
</ul>
<a name="isAllTime-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAllTime</h4>
<pre>private static&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.153">isAllTime</a>(long&nbsp;minStamp,
long&nbsp;maxStamp)</pre>
</li>
</ul>
<a name="check-long-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>check</h4>
<pre>private static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.157">check</a>(long&nbsp;minStamp,
long&nbsp;maxStamp)</pre>
</li>
</ul>
<a name="getMin--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMin</h4>
<pre>public&nbsp;long&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.170">getMin</a>()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the smallest timestamp that should be considered</dd>
</dl>
</li>
</ul>
<a name="getMax--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMax</h4>
<pre>public&nbsp;long&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.177">getMax</a>()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the biggest timestamp that should be considered</dd>
</dl>
</li>
</ul>
<a name="isAllTime--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAllTime</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.185">isAllTime</a>()</pre>
<div class="block">Check if it is for all time</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if it is for all time</dd>
</dl>
</li>
</ul>
<a name="withinTimeRange-byte:A-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withinTimeRange</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.200">withinTimeRange</a>(byte[]&nbsp;bytes,
int&nbsp;offset)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above and may be
changed to private or removed in 3.0. Use <a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#withinTimeRange-long-"><code>withinTimeRange(long)</code></a> instead</span></div>
<div class="block">Check if the specified timestamp is within this TimeRange.
<p>
Returns true if within interval [minStamp, maxStamp), false if not.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bytes</code> - timestamp to check</dd>
<dd><code>offset</code> - offset into the bytes</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if within TimeRange, false if not</dd>
</dl>
</li>
</ul>
<a name="withinTimeRange-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withinTimeRange</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.215">withinTimeRange</a>(long&nbsp;timestamp)</pre>
<div class="block">Check if the specified timestamp is within this TimeRange.
<p>
Returns true if within interval [minStamp, maxStamp), false
if not.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>timestamp</code> - timestamp to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if within TimeRange, false if not</dd>
</dl>
</li>
</ul>
<a name="includesTimeRange-org.apache.hadoop.hbase.io.TimeRange-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>includesTimeRange</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.231">includesTimeRange</a>(<a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a>&nbsp;tr)</pre>
<div class="block">Check if the range has any overlap with TimeRange</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>tr</code> - TimeRange</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>True if there is overlap, false otherwise</dd>
</dl>
</li>
</ul>
<a name="withinOrAfterTimeRange-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withinOrAfterTimeRange</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.246">withinOrAfterTimeRange</a>(long&nbsp;timestamp)</pre>
<div class="block">Check if the specified timestamp is within or after this TimeRange.
<p>
Returns true if greater than minStamp, false if not.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>timestamp</code> - timestamp to check</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if within or after TimeRange, false if not</dd>
</dl>
</li>
</ul>
<a name="compare-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compare</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.261">compare</a>(long&nbsp;timestamp)</pre>
<div class="block">Compare the timestamp to timerange.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>-1 if timestamp is less than timerange,
0 if timestamp is within timerange,
1 if timestamp is greater than timerange</dd>
</dl>
</li>
</ul>
<a name="toString--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.273">toString</a>()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/TimeRange.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/hadoop/hbase/io/TagCompressionContext.html" title="class in org.apache.hadoop.hbase.io"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../org/apache/hadoop/hbase/io/WALLink.html" title="class in org.apache.hadoop.hbase.io"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/hadoop/hbase/io/TimeRange.html" target="_top">Frames</a></li>
<li><a href="TimeRange.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2007&#x2013;2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>