Published site at .
Project: http://git-wip-us.apache.org/repos/asf/hbase-site/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase-site/commit/fa05910a Tree: http://git-wip-us.apache.org/repos/asf/hbase-site/tree/fa05910a Diff: http://git-wip-us.apache.org/repos/asf/hbase-site/diff/fa05910a Branch: refs/heads/asf-site Commit: fa05910a4e8d6b1573bd9225c1081b5ac80f6c34 Parents: 1aced0d Author: jenkins <[email protected]> Authored: Sat Sep 2 15:12:53 2017 +0000 Committer: jenkins <[email protected]> Committed: Sat Sep 2 15:12:53 2017 +0000 ---------------------------------------------------------------------- acid-semantics.html | 4 +- apache_hbase_reference_guide.pdf | 4 +- apidocs/deprecated-list.html | 15 +- apidocs/index-all.html | 15 +- .../org/apache/hadoop/hbase/io/TimeRange.html | 76 +- .../org/apache/hadoop/hbase/io/TimeRange.html | 397 +- book.html | 2 +- bulk-loads.html | 4 +- checkstyle-aggregate.html | 10318 +++++++++-------- checkstyle.rss | 6 +- coc.html | 4 +- cygwin.html | 4 +- dependencies.html | 4 +- dependency-convergence.html | 4 +- dependency-info.html | 4 +- dependency-management.html | 4 +- devapidocs/constant-values.html | 48 +- devapidocs/deprecated-list.html | 15 +- devapidocs/index-all.html | 27 +- .../master/LogRollMasterProcedureManager.html | 136 +- .../hadoop/hbase/backup/package-tree.html | 2 +- .../class-use/InterfaceAudience.Private.html | 50 + .../hbase/classification/package-tree.html | 6 +- .../hadoop/hbase/client/package-tree.html | 28 +- .../hadoop/hbase/executor/package-tree.html | 2 +- .../hadoop/hbase/filter/package-tree.html | 12 +- .../org/apache/hadoop/hbase/io/TimeRange.html | 86 +- .../hadoop/hbase/io/hfile/package-tree.html | 6 +- .../hbase/master/balancer/package-tree.html | 2 +- .../hadoop/hbase/master/package-tree.html | 6 +- .../org/apache/hadoop/hbase/package-tree.html | 12 +- .../hadoop/hbase/procedure2/package-tree.html | 6 +- .../hadoop/hbase/quotas/package-tree.html | 6 +- .../hadoop/hbase/regionserver/package-tree.html | 12 +- .../hbase/regionserver/wal/package-tree.html | 2 +- .../hbase/security/access/package-tree.html | 2 +- .../hadoop/hbase/security/package-tree.html | 2 +- .../hadoop/hbase/thrift/package-tree.html | 2 +- .../apache/hadoop/hbase/util/package-tree.html | 8 +- .../apache/hadoop/hbase/wal/package-tree.html | 2 +- .../org/apache/hadoop/hbase/Version.html | 6 +- .../impl/BackupCommands.BackupSetCommand.html | 4 +- .../impl/BackupCommands.CancelCommand.html | 4 +- .../backup/impl/BackupCommands.Command.html | 4 +- .../impl/BackupCommands.CreateCommand.html | 4 +- .../impl/BackupCommands.DeleteCommand.html | 4 +- .../impl/BackupCommands.DescribeCommand.html | 4 +- .../backup/impl/BackupCommands.HelpCommand.html | 4 +- .../impl/BackupCommands.HistoryCommand.html | 4 +- .../impl/BackupCommands.MergeCommand.html | 4 +- .../impl/BackupCommands.ProgressCommand.html | 4 +- .../impl/BackupCommands.RepairCommand.html | 4 +- .../hbase/backup/impl/BackupCommands.html | 4 +- .../master/LogRollMasterProcedureManager.html | 266 +- .../org/apache/hadoop/hbase/io/TimeRange.html | 397 +- export_control.html | 4 +- hbase-build-configuration/dependencies.html | 4 +- .../dependency-convergence.html | 4 +- hbase-build-configuration/dependency-info.html | 4 +- .../dependency-management.html | 4 +- .../hbase-annotations/checkstyle.html | 4 +- .../hbase-annotations/dependencies.html | 4 +- .../dependency-convergence.html | 4 +- .../hbase-annotations/dependency-info.html | 4 +- .../dependency-management.html | 4 +- .../hbase-annotations/index.html | 4 +- .../hbase-annotations/integration.html | 4 +- .../hbase-annotations/issue-tracking.html | 4 +- .../hbase-annotations/license.html | 4 +- .../hbase-annotations/mail-lists.html | 4 +- .../hbase-annotations/plugin-management.html | 4 +- .../hbase-annotations/plugins.html | 4 +- .../hbase-annotations/project-info.html | 4 +- .../hbase-annotations/project-reports.html | 4 +- .../hbase-annotations/project-summary.html | 4 +- .../hbase-annotations/source-repository.html | 4 +- .../hbase-annotations/team-list.html | 4 +- .../hbase-archetypes/dependencies.html | 4 +- .../dependency-convergence.html | 4 +- .../hbase-archetypes/dependency-info.html | 4 +- .../hbase-archetypes/dependency-management.html | 4 +- .../hbase-archetype-builder/dependencies.html | 4 +- .../dependency-convergence.html | 4 +- .../dependency-info.html | 4 +- .../dependency-management.html | 4 +- .../hbase-archetype-builder/index.html | 4 +- .../hbase-archetype-builder/integration.html | 4 +- .../hbase-archetype-builder/issue-tracking.html | 4 +- .../hbase-archetype-builder/license.html | 4 +- .../hbase-archetype-builder/mail-lists.html | 4 +- .../plugin-management.html | 4 +- .../hbase-archetype-builder/plugins.html | 4 +- .../hbase-archetype-builder/project-info.html | 4 +- .../project-summary.html | 4 +- .../source-repository.html | 4 +- .../hbase-archetype-builder/team-list.html | 4 +- .../hbase-client-project/checkstyle.html | 4 +- .../hbase-client-project/dependencies.html | 4 +- .../dependency-convergence.html | 4 +- .../hbase-client-project/dependency-info.html | 4 +- .../dependency-management.html | 4 +- .../hbase-client-project/index.html | 4 +- .../hbase-client-project/integration.html | 4 +- .../hbase-client-project/issue-tracking.html | 4 +- .../hbase-client-project/license.html | 208 +- .../hbase-client-project/mail-lists.html | 4 +- .../hbase-client-project/plugin-management.html | 4 +- .../hbase-client-project/plugins.html | 4 +- .../hbase-client-project/project-info.html | 4 +- .../hbase-client-project/project-reports.html | 4 +- .../hbase-client-project/project-summary.html | 4 +- .../hbase-client-project/source-repository.html | 4 +- .../hbase-client-project/team-list.html | 4 +- .../hbase-shaded-client-project/checkstyle.html | 4 +- .../dependencies.html | 4 +- .../dependency-convergence.html | 4 +- .../dependency-info.html | 4 +- .../dependency-management.html | 4 +- .../hbase-shaded-client-project/index.html | 4 +- .../integration.html | 4 +- .../issue-tracking.html | 4 +- .../hbase-shaded-client-project/license.html | 4 +- .../hbase-shaded-client-project/mail-lists.html | 4 +- .../plugin-management.html | 4 +- .../hbase-shaded-client-project/plugins.html | 4 +- .../project-info.html | 4 +- .../project-reports.html | 4 +- .../project-summary.html | 4 +- .../source-repository.html | 4 +- .../hbase-shaded-client-project/team-list.html | 4 +- .../hbase-archetypes/index.html | 4 +- .../hbase-archetypes/integration.html | 4 +- .../hbase-archetypes/issue-tracking.html | 4 +- .../hbase-archetypes/license.html | 208 +- .../hbase-archetypes/mail-lists.html | 4 +- .../hbase-archetypes/plugin-management.html | 4 +- .../hbase-archetypes/plugins.html | 4 +- .../hbase-archetypes/project-info.html | 4 +- .../hbase-archetypes/project-summary.html | 4 +- .../hbase-archetypes/source-repository.html | 4 +- .../hbase-archetypes/team-list.html | 4 +- .../hbase-spark/checkstyle.html | 4 +- .../hbase-spark/dependencies.html | 4 +- .../hbase-spark/dependency-convergence.html | 4 +- .../hbase-spark/dependency-info.html | 4 +- .../hbase-spark/dependency-management.html | 4 +- .../hbase-spark/index.html | 4 +- .../hbase-spark/integration.html | 4 +- .../hbase-spark/issue-tracking.html | 4 +- .../hbase-spark/license.html | 4 +- .../hbase-spark/mail-lists.html | 4 +- .../hbase-spark/plugin-management.html | 4 +- .../hbase-spark/plugins.html | 4 +- .../hbase-spark/project-info.html | 4 +- .../hbase-spark/project-reports.html | 4 +- .../hbase-spark/project-summary.html | 4 +- .../hbase-spark/source-repository.html | 4 +- .../hbase-spark/team-list.html | 4 +- hbase-build-configuration/index.html | 4 +- hbase-build-configuration/integration.html | 4 +- hbase-build-configuration/issue-tracking.html | 4 +- hbase-build-configuration/license.html | 4 +- hbase-build-configuration/mail-lists.html | 4 +- .../plugin-management.html | 4 +- hbase-build-configuration/plugins.html | 4 +- hbase-build-configuration/project-info.html | 4 +- hbase-build-configuration/project-summary.html | 4 +- .../source-repository.html | 4 +- hbase-build-configuration/team-list.html | 4 +- hbase-shaded-check-invariants/checkstyle.html | 4 +- hbase-shaded-check-invariants/dependencies.html | 4 +- .../dependency-convergence.html | 4 +- .../dependency-info.html | 4 +- .../dependency-management.html | 4 +- hbase-shaded-check-invariants/index.html | 4 +- hbase-shaded-check-invariants/integration.html | 4 +- .../issue-tracking.html | 4 +- hbase-shaded-check-invariants/license.html | 4 +- hbase-shaded-check-invariants/mail-lists.html | 4 +- .../plugin-management.html | 4 +- hbase-shaded-check-invariants/plugins.html | 4 +- hbase-shaded-check-invariants/project-info.html | 4 +- .../project-reports.html | 4 +- .../project-summary.html | 4 +- .../source-repository.html | 4 +- hbase-shaded-check-invariants/team-list.html | 4 +- index.html | 4 +- integration.html | 4 +- issue-tracking.html | 4 +- license.html | 4 +- mail-lists.html | 4 +- metrics.html | 4 +- old_news.html | 4 +- plugin-management.html | 4 +- plugins.html | 4 +- poweredbyhbase.html | 4 +- project-info.html | 4 +- project-reports.html | 4 +- project-summary.html | 4 +- pseudo-distributed.html | 4 +- replication.html | 4 +- resources.html | 4 +- source-repository.html | 4 +- sponsors.html | 4 +- supportingprojects.html | 4 +- team-list.html | 4 +- 206 files changed, 6912 insertions(+), 6162 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fa05910a/acid-semantics.html ---------------------------------------------------------------------- diff --git a/acid-semantics.html b/acid-semantics.html index 8c93181..4665047 100644 --- a/acid-semantics.html +++ b/acid-semantics.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20170901" /> + <meta name="Date-Revision-yyyymmdd" content="20170902" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Apache HBase (TM) ACID Properties @@ -606,7 +606,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2017-09-01</li> + <li id="publishDate" class="pull-right">Last Published: 2017-09-02</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fa05910a/apache_hbase_reference_guide.pdf ---------------------------------------------------------------------- diff --git a/apache_hbase_reference_guide.pdf b/apache_hbase_reference_guide.pdf index cbf2ad9..179cfbb 100644 --- a/apache_hbase_reference_guide.pdf +++ b/apache_hbase_reference_guide.pdf @@ -5,8 +5,8 @@ /Author (Apache HBase Team) /Creator (Asciidoctor PDF 1.5.0.alpha.15, based on Prawn 2.2.2) /Producer (Apache HBase Team) -/ModDate (D:20170901144704+00'00') -/CreationDate (D:20170901144704+00'00') +/ModDate (D:20170902144630+00'00') +/CreationDate (D:20170902144630+00'00') >> endobj 2 0 obj http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fa05910a/apidocs/deprecated-list.html ---------------------------------------------------------------------- diff --git a/apidocs/deprecated-list.html b/apidocs/deprecated-list.html index eb81570..2294bad 100644 --- a/apidocs/deprecated-list.html +++ b/apidocs/deprecated-list.html @@ -1043,27 +1043,32 @@ </tr> <tr class="altColor"> <td class="colOne"><a href="org/apache/hadoop/hbase/io/TimeRange.html#TimeRange--">org.apache.hadoop.hbase.io.TimeRange()</a> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-byte:A-">org.apache.hadoop.hbase.io.TimeRange(byte[])</a> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-byte:A-byte:A-">org.apache.hadoop.hbase.io.TimeRange(byte[], byte[])</a> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> </td> </tr> <tr class="rowColor"> <td class="colOne"><a href="org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-long-">org.apache.hadoop.hbase.io.TimeRange(long)</a> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> </td> </tr> <tr class="altColor"> <td class="colOne"><a href="org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-long-long-">org.apache.hadoop.hbase.io.TimeRange(long, long)</a> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> </td> </tr> </tbody> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fa05910a/apidocs/index-all.html ---------------------------------------------------------------------- diff --git a/apidocs/index-all.html b/apidocs/index-all.html index a6ca789..73c20a5 100644 --- a/apidocs/index-all.html +++ b/apidocs/index-all.html @@ -16653,31 +16653,36 @@ Input/OutputFormats, a table indexing MapReduce job, and utility methods.</div> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/io/TimeRange.html#TimeRange--">TimeRange()</a></span> - Constructor for class org.apache.hadoop.hbase.io.<a href="org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a></dt> <dd> <div class="block"><span class="deprecatedLabel">Deprecated.</span> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-long-">TimeRange(long)</a></span> - Constructor for class org.apache.hadoop.hbase.io.<a href="org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a></dt> <dd> <div class="block"><span class="deprecatedLabel">Deprecated.</span> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-byte:A-">TimeRange(byte[])</a></span> - Constructor for class org.apache.hadoop.hbase.io.<a href="org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a></dt> <dd> <div class="block"><span class="deprecatedLabel">Deprecated.</span> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-byte:A-byte:A-">TimeRange(byte[], byte[])</a></span> - Constructor for class org.apache.hadoop.hbase.io.<a href="org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a></dt> <dd> <div class="block"><span class="deprecatedLabel">Deprecated.</span> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-long-long-">TimeRange(long, long)</a></span> - Constructor for class org.apache.hadoop.hbase.io.<a href="org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a></dt> <dd> <div class="block"><span class="deprecatedLabel">Deprecated.</span> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> </dd> <dt><span class="memberNameLink"><a href="org/apache/hadoop/hbase/mapreduce/ImportTsv.html#TIMESTAMP_CONF_KEY">TIMESTAMP_CONF_KEY</a></span> - Static variable in class org.apache.hadoop.hbase.mapreduce.<a href="org/apache/hadoop/hbase/mapreduce/ImportTsv.html" title="class in org.apache.hadoop.hbase.mapreduce">ImportTsv</a></dt> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fa05910a/apidocs/org/apache/hadoop/hbase/io/TimeRange.html ---------------------------------------------------------------------- diff --git a/apidocs/org/apache/hadoop/hbase/io/TimeRange.html b/apidocs/org/apache/hadoop/hbase/io/TimeRange.html index 36802b3..70d68c2 100644 --- a/apidocs/org/apache/hadoop/hbase/io/TimeRange.html +++ b/apidocs/org/apache/hadoop/hbase/io/TimeRange.html @@ -110,7 +110,7 @@ var activeTableTab = "activeTableTab"; <hr> <br> <pre>@InterfaceAudience.Public -public class <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.36">TimeRange</a> +public class <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.37">TimeRange</a> extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> <div class="block">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 @@ -119,7 +119,8 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? Evaluated according to minStamp <= timestamp < maxStamp or [minStamp,maxStamp) in interval notation. <p> - Only used internally; should not be accessed directly by clients. + 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> @@ -164,14 +165,16 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <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> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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[] minStamp)</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> @@ -179,14 +182,16 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <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[] minStamp, byte[] maxStamp)</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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 minStamp)</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> @@ -194,7 +199,8 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html#TimeRange-long-long-">TimeRange</a></span>(long minStamp, long maxStamp)</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> -<div class="block"><span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> +<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> @@ -290,7 +296,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockList"> <li class="blockList"> <h4>INITIAL_MIN_TIMESTAMP</h4> -<pre>public static final long <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.37">INITIAL_MIN_TIMESTAMP</a></pre> +<pre>public static final long <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.38">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> @@ -303,7 +309,7 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <ul class="blockListLast"> <li class="blockList"> <h4>INITIAL_MAX_TIMESTAMP</h4> -<pre>public static final long <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.38">INITIAL_MAX_TIMESTAMP</a></pre> +<pre>public static final long <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.39">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> @@ -325,8 +331,10 @@ extends <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html? <li class="blockList"> <h4>TimeRange</h4> <pre><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> -public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.49">TimeRange</a>()</pre> -<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> + @InterfaceAudience.Private +public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.52">TimeRange</a>()</pre> +<div class="block"><span class="deprecatedLabel">Deprecated.</span> <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> @@ -338,8 +346,10 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <li class="blockList"> <h4>TimeRange</h4> <pre><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> -public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.59">TimeRange</a>(long minStamp)</pre> -<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> + @InterfaceAudience.Private +public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.64">TimeRange</a>(long minStamp)</pre> +<div class="block"><span class="deprecatedLabel">Deprecated.</span> <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> @@ -354,8 +364,10 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <li class="blockList"> <h4>TimeRange</h4> <pre><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> -public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.69">TimeRange</a>(byte[] minStamp)</pre> -<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> + @InterfaceAudience.Private +public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.76">TimeRange</a>(byte[] minStamp)</pre> +<div class="block"><span class="deprecatedLabel">Deprecated.</span> <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> @@ -370,9 +382,11 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <li class="blockList"> <h4>TimeRange</h4> <pre><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> -public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.80">TimeRange</a>(byte[] minStamp, - byte[] maxStamp)</pre> -<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> + @InterfaceAudience.Private +public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.89">TimeRange</a>(byte[] minStamp, + byte[] maxStamp)</pre> +<div class="block"><span class="deprecatedLabel">Deprecated.</span> <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> @@ -388,9 +402,11 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <li class="blockList"> <h4>TimeRange</h4> <pre><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> -public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.92">TimeRange</a>(long minStamp, - long maxStamp)</pre> -<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">This is made @InterfaceAudience.Private in the 2.0 line and above</span></div> + @InterfaceAudience.Private +public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.103">TimeRange</a>(long minStamp, + long maxStamp)</pre> +<div class="block"><span class="deprecatedLabel">Deprecated.</span> <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> @@ -415,7 +431,7 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <ul class="blockList"> <li class="blockList"> <h4>getMin</h4> -<pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.116">getMin</a>()</pre> +<pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.127">getMin</a>()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the smallest timestamp that should be considered</dd> @@ -428,7 +444,7 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <ul class="blockList"> <li class="blockList"> <h4>getMax</h4> -<pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.123">getMax</a>()</pre> +<pre>public long <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.134">getMax</a>()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the biggest timestamp that should be considered</dd> @@ -441,7 +457,7 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <ul class="blockList"> <li class="blockList"> <h4>isAllTime</h4> -<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.131">isAllTime</a>()</pre> +<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.142">isAllTime</a>()</pre> <div class="block">Check if it is for all time</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -455,7 +471,7 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <ul class="blockList"> <li class="blockList"> <h4>withinTimeRange</h4> -<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.143">withinTimeRange</a>(byte[] bytes, +<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.154">withinTimeRange</a>(byte[] bytes, int offset)</pre> <div class="block">Check if the specified timestamp is within this TimeRange. <p> @@ -475,7 +491,7 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <ul class="blockList"> <li class="blockList"> <h4>withinTimeRange</h4> -<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.158">withinTimeRange</a>(long timestamp)</pre> +<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.169">withinTimeRange</a>(long timestamp)</pre> <div class="block">Check if the specified timestamp is within this TimeRange. <p> Returns true if within interval [minStamp, maxStamp), false @@ -494,7 +510,7 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <ul class="blockList"> <li class="blockList"> <h4>includesTimeRange</h4> -<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.174">includesTimeRange</a>(<a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a> tr)</pre> +<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.185">includesTimeRange</a>(<a href="../../../../../org/apache/hadoop/hbase/io/TimeRange.html" title="class in org.apache.hadoop.hbase.io">TimeRange</a> tr)</pre> <div class="block">Check if the range has any overlap with TimeRange</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> @@ -510,7 +526,7 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <ul class="blockList"> <li class="blockList"> <h4>withinOrAfterTimeRange</h4> -<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.189">withinOrAfterTimeRange</a>(long timestamp)</pre> +<pre>public boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.200">withinOrAfterTimeRange</a>(long 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> @@ -528,7 +544,7 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <ul class="blockList"> <li class="blockList"> <h4>compare</h4> -<pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.204">compare</a>(long timestamp)</pre> +<pre>public int <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.215">compare</a>(long timestamp)</pre> <div class="block">Compare the timestamp to timerange.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -544,7 +560,7 @@ public <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRang <ul class="blockListLast"> <li class="blockList"> <h4>toString</h4> -<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.216">toString</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/io/TimeRange.html#line.227">toString</a>()</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="http://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> in class <code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fa05910a/apidocs/src-html/org/apache/hadoop/hbase/io/TimeRange.html ---------------------------------------------------------------------- diff --git a/apidocs/src-html/org/apache/hadoop/hbase/io/TimeRange.html b/apidocs/src-html/org/apache/hadoop/hbase/io/TimeRange.html index 0a6094a..469b2a0 100644 --- a/apidocs/src-html/org/apache/hadoop/hbase/io/TimeRange.html +++ b/apidocs/src-html/org/apache/hadoop/hbase/io/TimeRange.html @@ -37,199 +37,210 @@ <span class="sourceLineNo">029</span> * Evaluated according to minStamp &lt;= timestamp &lt; maxStamp<a name="line.29"></a> <span class="sourceLineNo">030</span> * or [minStamp,maxStamp) in interval notation.<a name="line.30"></a> <span class="sourceLineNo">031</span> * <p><a name="line.31"></a> -<span class="sourceLineNo">032</span> * Only used internally; should not be accessed directly by clients.<a name="line.32"></a> -<span class="sourceLineNo">033</span> *<p>Immutable. Thread-safe.<a name="line.33"></a> -<span class="sourceLineNo">034</span> */<a name="line.34"></a> -<span class="sourceLineNo">035</span>@InterfaceAudience.Public<a name="line.35"></a> -<span class="sourceLineNo">036</span>public class TimeRange {<a name="line.36"></a> -<span class="sourceLineNo">037</span> public static final long INITIAL_MIN_TIMESTAMP = 0L;<a name="line.37"></a> -<span class="sourceLineNo">038</span> public static final long INITIAL_MAX_TIMESTAMP = Long.MAX_VALUE;<a name="line.38"></a> -<span class="sourceLineNo">039</span> private final long minStamp;<a name="line.39"></a> -<span class="sourceLineNo">040</span> private final long maxStamp;<a name="line.40"></a> -<span class="sourceLineNo">041</span> private final boolean allTime;<a name="line.41"></a> -<span class="sourceLineNo">042</span><a name="line.42"></a> -<span class="sourceLineNo">043</span> /**<a name="line.43"></a> -<span class="sourceLineNo">044</span> * Default constructor.<a name="line.44"></a> -<span class="sourceLineNo">045</span> * Represents interval [0, Long.MAX_VALUE) (allTime)<a name="line.45"></a> -<span class="sourceLineNo">046</span> * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above<a name="line.46"></a> -<span class="sourceLineNo">047</span> */<a name="line.47"></a> -<span class="sourceLineNo">048</span> @Deprecated<a name="line.48"></a> -<span class="sourceLineNo">049</span> public TimeRange() {<a name="line.49"></a> -<span class="sourceLineNo">050</span> this(INITIAL_MIN_TIMESTAMP, INITIAL_MAX_TIMESTAMP);<a name="line.50"></a> -<span class="sourceLineNo">051</span> }<a name="line.51"></a> -<span class="sourceLineNo">052</span><a name="line.52"></a> -<span class="sourceLineNo">053</span> /**<a name="line.53"></a> -<span class="sourceLineNo">054</span> * Represents interval [minStamp, Long.MAX_VALUE)<a name="line.54"></a> -<span class="sourceLineNo">055</span> * @param minStamp the minimum timestamp value, inclusive<a name="line.55"></a> -<span class="sourceLineNo">056</span> * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above<a name="line.56"></a> -<span class="sourceLineNo">057</span> */<a name="line.57"></a> -<span class="sourceLineNo">058</span> @Deprecated<a name="line.58"></a> -<span class="sourceLineNo">059</span> public TimeRange(long minStamp) {<a name="line.59"></a> -<span class="sourceLineNo">060</span> this(minStamp, INITIAL_MAX_TIMESTAMP);<a name="line.60"></a> -<span class="sourceLineNo">061</span> }<a name="line.61"></a> -<span class="sourceLineNo">062</span><a name="line.62"></a> -<span class="sourceLineNo">063</span> /**<a name="line.63"></a> -<span class="sourceLineNo">064</span> * Represents interval [minStamp, Long.MAX_VALUE)<a name="line.64"></a> -<span class="sourceLineNo">065</span> * @param minStamp the minimum timestamp value, inclusive<a name="line.65"></a> -<span class="sourceLineNo">066</span> * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above<a name="line.66"></a> -<span class="sourceLineNo">067</span> */<a name="line.67"></a> -<span class="sourceLineNo">068</span> @Deprecated<a name="line.68"></a> -<span class="sourceLineNo">069</span> public TimeRange(byte [] minStamp) {<a name="line.69"></a> -<span class="sourceLineNo">070</span> this(Bytes.toLong(minStamp));<a name="line.70"></a> -<span class="sourceLineNo">071</span> }<a name="line.71"></a> -<span class="sourceLineNo">072</span><a name="line.72"></a> -<span class="sourceLineNo">073</span> /**<a name="line.73"></a> -<span class="sourceLineNo">074</span> * Represents interval [minStamp, maxStamp)<a name="line.74"></a> -<span class="sourceLineNo">075</span> * @param minStamp the minimum timestamp, inclusive<a name="line.75"></a> -<span class="sourceLineNo">076</span> * @param maxStamp the maximum timestamp, exclusive<a name="line.76"></a> -<span class="sourceLineNo">077</span> * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above<a name="line.77"></a> -<span class="sourceLineNo">078</span> */<a name="line.78"></a> -<span class="sourceLineNo">079</span> @Deprecated<a name="line.79"></a> -<span class="sourceLineNo">080</span> public TimeRange(byte [] minStamp, byte [] maxStamp) {<a name="line.80"></a> -<span class="sourceLineNo">081</span> this(Bytes.toLong(minStamp), Bytes.toLong(maxStamp));<a name="line.81"></a> -<span class="sourceLineNo">082</span> }<a name="line.82"></a> -<span class="sourceLineNo">083</span><a name="line.83"></a> -<span class="sourceLineNo">084</span> /**<a name="line.84"></a> -<span class="sourceLineNo">085</span> * Represents interval [minStamp, maxStamp)<a name="line.85"></a> -<span class="sourceLineNo">086</span> * @param minStamp the minimum timestamp, inclusive<a name="line.86"></a> -<span class="sourceLineNo">087</span> * @param maxStamp the maximum timestamp, exclusive<a name="line.87"></a> -<span class="sourceLineNo">088</span> * @throws IllegalArgumentException if either <0,<a name="line.88"></a> -<span class="sourceLineNo">089</span> * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above<a name="line.89"></a> -<span class="sourceLineNo">090</span> */<a name="line.90"></a> -<span class="sourceLineNo">091</span> @Deprecated<a name="line.91"></a> -<span class="sourceLineNo">092</span> public TimeRange(long minStamp, long maxStamp) {<a name="line.92"></a> -<span class="sourceLineNo">093</span> check(minStamp, maxStamp);<a name="line.93"></a> -<span class="sourceLineNo">094</span> this.minStamp = minStamp;<a name="line.94"></a> -<span class="sourceLineNo">095</span> this.maxStamp = maxStamp;<a name="line.95"></a> -<span class="sourceLineNo">096</span> this.allTime = isAllTime(minStamp, maxStamp);<a name="line.96"></a> -<span class="sourceLineNo">097</span> }<a name="line.97"></a> -<span class="sourceLineNo">098</span><a name="line.98"></a> -<span class="sourceLineNo">099</span> private static boolean isAllTime(long minStamp, long maxStamp) {<a name="line.99"></a> -<span class="sourceLineNo">100</span> return minStamp == INITIAL_MIN_TIMESTAMP && maxStamp == INITIAL_MAX_TIMESTAMP;<a name="line.100"></a> -<span class="sourceLineNo">101</span> }<a name="line.101"></a> -<span class="sourceLineNo">102</span><a name="line.102"></a> -<span class="sourceLineNo">103</span> private static void check(long minStamp, long maxStamp) {<a name="line.103"></a> -<span class="sourceLineNo">104</span> if (minStamp < 0 || maxStamp < 0) {<a name="line.104"></a> -<span class="sourceLineNo">105</span> throw new IllegalArgumentException("Timestamp cannot be negative. minStamp:" + minStamp<a name="line.105"></a> -<span class="sourceLineNo">106</span> + ", maxStamp:" + maxStamp);<a name="line.106"></a> -<span class="sourceLineNo">107</span> }<a name="line.107"></a> -<span class="sourceLineNo">108</span> if (maxStamp < minStamp) {<a name="line.108"></a> -<span class="sourceLineNo">109</span> throw new IllegalArgumentException("maxStamp is smaller than minStamp");<a name="line.109"></a> -<span class="sourceLineNo">110</span> }<a name="line.110"></a> -<span class="sourceLineNo">111</span> }<a name="line.111"></a> -<span class="sourceLineNo">112</span><a name="line.112"></a> -<span class="sourceLineNo">113</span> /**<a name="line.113"></a> -<span class="sourceLineNo">114</span> * @return the smallest timestamp that should be considered<a name="line.114"></a> -<span class="sourceLineNo">115</span> */<a name="line.115"></a> -<span class="sourceLineNo">116</span> public long getMin() {<a name="line.116"></a> -<span class="sourceLineNo">117</span> return minStamp;<a name="line.117"></a> -<span class="sourceLineNo">118</span> }<a name="line.118"></a> -<span class="sourceLineNo">119</span><a name="line.119"></a> -<span class="sourceLineNo">120</span> /**<a name="line.120"></a> -<span class="sourceLineNo">121</span> * @return the biggest timestamp that should be considered<a name="line.121"></a> -<span class="sourceLineNo">122</span> */<a name="line.122"></a> -<span class="sourceLineNo">123</span> public long getMax() {<a name="line.123"></a> -<span class="sourceLineNo">124</span> return maxStamp;<a name="line.124"></a> -<span class="sourceLineNo">125</span> }<a name="line.125"></a> -<span class="sourceLineNo">126</span><a name="line.126"></a> -<span class="sourceLineNo">127</span> /**<a name="line.127"></a> -<span class="sourceLineNo">128</span> * Check if it is for all time<a name="line.128"></a> -<span class="sourceLineNo">129</span> * @return true if it is for all time<a name="line.129"></a> -<span class="sourceLineNo">130</span> */<a name="line.130"></a> -<span class="sourceLineNo">131</span> public boolean isAllTime() {<a name="line.131"></a> -<span class="sourceLineNo">132</span> return allTime;<a name="line.132"></a> -<span class="sourceLineNo">133</span> }<a name="line.133"></a> -<span class="sourceLineNo">134</span><a name="line.134"></a> -<span class="sourceLineNo">135</span> /**<a name="line.135"></a> -<span class="sourceLineNo">136</span> * Check if the specified timestamp is within this TimeRange.<a name="line.136"></a> -<span class="sourceLineNo">137</span> * <p><a name="line.137"></a> -<span class="sourceLineNo">138</span> * Returns true if within interval [minStamp, maxStamp), false if not.<a name="line.138"></a> -<span class="sourceLineNo">139</span> * @param bytes timestamp to check<a name="line.139"></a> -<span class="sourceLineNo">140</span> * @param offset offset into the bytes<a name="line.140"></a> -<span class="sourceLineNo">141</span> * @return true if within TimeRange, false if not<a name="line.141"></a> -<span class="sourceLineNo">142</span> */<a name="line.142"></a> -<span class="sourceLineNo">143</span> public boolean withinTimeRange(byte [] bytes, int offset) {<a name="line.143"></a> -<span class="sourceLineNo">144</span> if (allTime) {<a name="line.144"></a> -<span class="sourceLineNo">145</span> return true;<a name="line.145"></a> -<span class="sourceLineNo">146</span> }<a name="line.146"></a> -<span class="sourceLineNo">147</span> return withinTimeRange(Bytes.toLong(bytes, offset));<a name="line.147"></a> -<span class="sourceLineNo">148</span> }<a name="line.148"></a> -<span class="sourceLineNo">149</span><a name="line.149"></a> -<span class="sourceLineNo">150</span> /**<a name="line.150"></a> -<span class="sourceLineNo">151</span> * Check if the specified timestamp is within this TimeRange.<a name="line.151"></a> -<span class="sourceLineNo">152</span> * <p><a name="line.152"></a> -<span class="sourceLineNo">153</span> * Returns true if within interval [minStamp, maxStamp), false<a name="line.153"></a> -<span class="sourceLineNo">154</span> * if not.<a name="line.154"></a> -<span class="sourceLineNo">155</span> * @param timestamp timestamp to check<a name="line.155"></a> -<span class="sourceLineNo">156</span> * @return true if within TimeRange, false if not<a name="line.156"></a> -<span class="sourceLineNo">157</span> */<a name="line.157"></a> -<span class="sourceLineNo">158</span> public boolean withinTimeRange(long timestamp) {<a name="line.158"></a> -<span class="sourceLineNo">159</span> assert timestamp >= 0;<a name="line.159"></a> -<span class="sourceLineNo">160</span> if (this.allTime) {<a name="line.160"></a> -<span class="sourceLineNo">161</span> return true;<a name="line.161"></a> -<span class="sourceLineNo">162</span> }<a name="line.162"></a> -<span class="sourceLineNo">163</span> // check if >= minStamp<a name="line.163"></a> -<span class="sourceLineNo">164</span> return (minStamp <= timestamp && timestamp < maxStamp);<a name="line.164"></a> -<span class="sourceLineNo">165</span> }<a name="line.165"></a> -<span class="sourceLineNo">166</span><a name="line.166"></a> -<span class="sourceLineNo">167</span> /**<a name="line.167"></a> -<span class="sourceLineNo">168</span> * Check if the range has any overlap with TimeRange<a name="line.168"></a> -<span class="sourceLineNo">169</span> * @param tr TimeRange<a name="line.169"></a> -<span class="sourceLineNo">170</span> * @return True if there is overlap, false otherwise<a name="line.170"></a> -<span class="sourceLineNo">171</span> */<a name="line.171"></a> -<span class="sourceLineNo">172</span> // This method came from TimeRangeTracker. We used to go there for this function but better<a name="line.172"></a> -<span class="sourceLineNo">173</span> // to come here to the immutable, unsynchronized datastructure at read time.<a name="line.173"></a> -<span class="sourceLineNo">174</span> public boolean includesTimeRange(final TimeRange tr) {<a name="line.174"></a> -<span class="sourceLineNo">175</span> if (this.allTime) {<a name="line.175"></a> -<span class="sourceLineNo">176</span> return true;<a name="line.176"></a> -<span class="sourceLineNo">177</span> }<a name="line.177"></a> -<span class="sourceLineNo">178</span> assert tr.getMin() >= 0;<a name="line.178"></a> -<span class="sourceLineNo">179</span> return getMin() < tr.getMax() && getMax() >= tr.getMin();<a name="line.179"></a> -<span class="sourceLineNo">180</span> }<a name="line.180"></a> -<span class="sourceLineNo">181</span><a name="line.181"></a> -<span class="sourceLineNo">182</span> /**<a name="line.182"></a> -<span class="sourceLineNo">183</span> * Check if the specified timestamp is within or after this TimeRange.<a name="line.183"></a> -<span class="sourceLineNo">184</span> * <p><a name="line.184"></a> -<span class="sourceLineNo">185</span> * Returns true if greater than minStamp, false if not.<a name="line.185"></a> -<span class="sourceLineNo">186</span> * @param timestamp timestamp to check<a name="line.186"></a> -<span class="sourceLineNo">187</span> * @return true if within or after TimeRange, false if not<a name="line.187"></a> -<span class="sourceLineNo">188</span> */<a name="line.188"></a> -<span class="sourceLineNo">189</span> public boolean withinOrAfterTimeRange(long timestamp) {<a name="line.189"></a> -<span class="sourceLineNo">190</span> assert timestamp >= 0;<a name="line.190"></a> -<span class="sourceLineNo">191</span> if (allTime) {<a name="line.191"></a> -<span class="sourceLineNo">192</span> return true;<a name="line.192"></a> -<span class="sourceLineNo">193</span> }<a name="line.193"></a> -<span class="sourceLineNo">194</span> // check if >= minStamp<a name="line.194"></a> -<span class="sourceLineNo">195</span> return timestamp >= minStamp;<a name="line.195"></a> -<span class="sourceLineNo">196</span> }<a name="line.196"></a> -<span class="sourceLineNo">197</span><a name="line.197"></a> -<span class="sourceLineNo">198</span> /**<a name="line.198"></a> -<span class="sourceLineNo">199</span> * Compare the timestamp to timerange.<a name="line.199"></a> -<span class="sourceLineNo">200</span> * @return -1 if timestamp is less than timerange,<a name="line.200"></a> -<span class="sourceLineNo">201</span> * 0 if timestamp is within timerange,<a name="line.201"></a> -<span class="sourceLineNo">202</span> * 1 if timestamp is greater than timerange<a name="line.202"></a> -<span class="sourceLineNo">203</span> */<a name="line.203"></a> -<span class="sourceLineNo">204</span> public int compare(long timestamp) {<a name="line.204"></a> -<span class="sourceLineNo">205</span> assert timestamp >= 0;<a name="line.205"></a> -<span class="sourceLineNo">206</span> if (this.allTime) {<a name="line.206"></a> -<span class="sourceLineNo">207</span> return 0;<a name="line.207"></a> -<span class="sourceLineNo">208</span> }<a name="line.208"></a> -<span class="sourceLineNo">209</span> if (timestamp < minStamp) {<a name="line.209"></a> -<span class="sourceLineNo">210</span> return -1;<a name="line.210"></a> -<span class="sourceLineNo">211</span> }<a name="line.211"></a> -<span class="sourceLineNo">212</span> return timestamp >= maxStamp? 1: 0;<a name="line.212"></a> -<span class="sourceLineNo">213</span> }<a name="line.213"></a> -<span class="sourceLineNo">214</span><a name="line.214"></a> -<span class="sourceLineNo">215</span> @Override<a name="line.215"></a> -<span class="sourceLineNo">216</span> public String toString() {<a name="line.216"></a> -<span class="sourceLineNo">217</span> StringBuilder sb = new StringBuilder();<a name="line.217"></a> -<span class="sourceLineNo">218</span> sb.append("maxStamp=");<a name="line.218"></a> -<span class="sourceLineNo">219</span> sb.append(this.maxStamp);<a name="line.219"></a> -<span class="sourceLineNo">220</span> sb.append(", minStamp=");<a name="line.220"></a> -<span class="sourceLineNo">221</span> sb.append(this.minStamp);<a name="line.221"></a> -<span class="sourceLineNo">222</span> return sb.toString();<a name="line.222"></a> -<span class="sourceLineNo">223</span> }<a name="line.223"></a> -<span class="sourceLineNo">224</span>}<a name="line.224"></a> +<span class="sourceLineNo">032</span> * Can be returned and read by clients. Should not be directly created by clients.<a name="line.32"></a> +<span class="sourceLineNo">033</span> * Thus, all constructors are purposely @InterfaceAudience.Private.<a name="line.33"></a> +<span class="sourceLineNo">034</span> *<p>Immutable. Thread-safe.<a name="line.34"></a> +<span class="sourceLineNo">035</span> */<a name="line.35"></a> +<span class="sourceLineNo">036</span>@InterfaceAudience.Public<a name="line.36"></a> +<span class="sourceLineNo">037</span>public class TimeRange {<a name="line.37"></a> +<span class="sourceLineNo">038</span> public static final long INITIAL_MIN_TIMESTAMP = 0L;<a name="line.38"></a> +<span class="sourceLineNo">039</span> public static final long INITIAL_MAX_TIMESTAMP = Long.MAX_VALUE;<a name="line.39"></a> +<span class="sourceLineNo">040</span> private final long minStamp;<a name="line.40"></a> +<span class="sourceLineNo">041</span> private final long maxStamp;<a name="line.41"></a> +<span class="sourceLineNo">042</span> private final boolean allTime;<a name="line.42"></a> +<span class="sourceLineNo">043</span><a name="line.43"></a> +<span class="sourceLineNo">044</span> /**<a name="line.44"></a> +<span class="sourceLineNo">045</span> * Default constructor.<a name="line.45"></a> +<span class="sourceLineNo">046</span> * Represents interval [0, Long.MAX_VALUE) (allTime)<a name="line.46"></a> +<span class="sourceLineNo">047</span> * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be<a name="line.47"></a> +<span class="sourceLineNo">048</span> * changed to private or removed in 3.0.<a name="line.48"></a> +<span class="sourceLineNo">049</span> */<a name="line.49"></a> +<span class="sourceLineNo">050</span> @Deprecated<a name="line.50"></a> +<span class="sourceLineNo">051</span> @InterfaceAudience.Private<a name="line.51"></a> +<span class="sourceLineNo">052</span> public TimeRange() {<a name="line.52"></a> +<span class="sourceLineNo">053</span> this(INITIAL_MIN_TIMESTAMP, INITIAL_MAX_TIMESTAMP);<a name="line.53"></a> +<span class="sourceLineNo">054</span> }<a name="line.54"></a> +<span class="sourceLineNo">055</span><a name="line.55"></a> +<span class="sourceLineNo">056</span> /**<a name="line.56"></a> +<span class="sourceLineNo">057</span> * Represents interval [minStamp, Long.MAX_VALUE)<a name="line.57"></a> +<span class="sourceLineNo">058</span> * @param minStamp the minimum timestamp value, inclusive<a name="line.58"></a> +<span class="sourceLineNo">059</span> * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be<a name="line.59"></a> +<span class="sourceLineNo">060</span> * changed to private or removed in 3.0.<a name="line.60"></a> +<span class="sourceLineNo">061</span> */<a name="line.61"></a> +<span class="sourceLineNo">062</span> @Deprecated<a name="line.62"></a> +<span class="sourceLineNo">063</span> @InterfaceAudience.Private<a name="line.63"></a> +<span class="sourceLineNo">064</span> public TimeRange(long minStamp) {<a name="line.64"></a> +<span class="sourceLineNo">065</span> this(minStamp, INITIAL_MAX_TIMESTAMP);<a name="line.65"></a> +<span class="sourceLineNo">066</span> }<a name="line.66"></a> +<span class="sourceLineNo">067</span><a name="line.67"></a> +<span class="sourceLineNo">068</span> /**<a name="line.68"></a> +<span class="sourceLineNo">069</span> * Represents interval [minStamp, Long.MAX_VALUE)<a name="line.69"></a> +<span class="sourceLineNo">070</span> * @param minStamp the minimum timestamp value, inclusive<a name="line.70"></a> +<span class="sourceLineNo">071</span> * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be<a name="line.71"></a> +<span class="sourceLineNo">072</span> * changed to private or removed in 3.0.<a name="line.72"></a> +<span class="sourceLineNo">073</span> */<a name="line.73"></a> +<span class="sourceLineNo">074</span> @Deprecated<a name="line.74"></a> +<span class="sourceLineNo">075</span> @InterfaceAudience.Private<a name="line.75"></a> +<span class="sourceLineNo">076</span> public TimeRange(byte [] minStamp) {<a name="line.76"></a> +<span class="sourceLineNo">077</span> this(Bytes.toLong(minStamp));<a name="line.77"></a> +<span class="sourceLineNo">078</span> }<a name="line.78"></a> +<span class="sourceLineNo">079</span><a name="line.79"></a> +<span class="sourceLineNo">080</span> /**<a name="line.80"></a> +<span class="sourceLineNo">081</span> * Represents interval [minStamp, maxStamp)<a name="line.81"></a> +<span class="sourceLineNo">082</span> * @param minStamp the minimum timestamp, inclusive<a name="line.82"></a> +<span class="sourceLineNo">083</span> * @param maxStamp the maximum timestamp, exclusive<a name="line.83"></a> +<span class="sourceLineNo">084</span> * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be<a name="line.84"></a> +<span class="sourceLineNo">085</span> * changed to private or removed in 3.0.<a name="line.85"></a> +<span class="sourceLineNo">086</span> */<a name="line.86"></a> +<span class="sourceLineNo">087</span> @Deprecated<a name="line.87"></a> +<span class="sourceLineNo">088</span> @InterfaceAudience.Private<a name="line.88"></a> +<span class="sourceLineNo">089</span> public TimeRange(byte [] minStamp, byte [] maxStamp) {<a name="line.89"></a> +<span class="sourceLineNo">090</span> this(Bytes.toLong(minStamp), Bytes.toLong(maxStamp));<a name="line.90"></a> +<span class="sourceLineNo">091</span> }<a name="line.91"></a> +<span class="sourceLineNo">092</span><a name="line.92"></a> +<span class="sourceLineNo">093</span> /**<a name="line.93"></a> +<span class="sourceLineNo">094</span> * Represents interval [minStamp, maxStamp)<a name="line.94"></a> +<span class="sourceLineNo">095</span> * @param minStamp the minimum timestamp, inclusive<a name="line.95"></a> +<span class="sourceLineNo">096</span> * @param maxStamp the maximum timestamp, exclusive<a name="line.96"></a> +<span class="sourceLineNo">097</span> * @throws IllegalArgumentException if either <0,<a name="line.97"></a> +<span class="sourceLineNo">098</span> * @deprecated This is made @InterfaceAudience.Private in the 2.0 line and above and may be<a name="line.98"></a> +<span class="sourceLineNo">099</span> * changed to private or removed in 3.0.<a name="line.99"></a> +<span class="sourceLineNo">100</span> */<a name="line.100"></a> +<span class="sourceLineNo">101</span> @Deprecated<a name="line.101"></a> +<span class="sourceLineNo">102</span> @InterfaceAudience.Private<a name="line.102"></a> +<span class="sourceLineNo">103</span> public TimeRange(long minStamp, long maxStamp) {<a name="line.103"></a> +<span class="sourceLineNo">104</span> check(minStamp, maxStamp);<a name="line.104"></a> +<span class="sourceLineNo">105</span> this.minStamp = minStamp;<a name="line.105"></a> +<span class="sourceLineNo">106</span> this.maxStamp = maxStamp;<a name="line.106"></a> +<span class="sourceLineNo">107</span> this.allTime = isAllTime(minStamp, maxStamp);<a name="line.107"></a> +<span class="sourceLineNo">108</span> }<a name="line.108"></a> +<span class="sourceLineNo">109</span><a name="line.109"></a> +<span class="sourceLineNo">110</span> private static boolean isAllTime(long minStamp, long maxStamp) {<a name="line.110"></a> +<span class="sourceLineNo">111</span> return minStamp == INITIAL_MIN_TIMESTAMP && maxStamp == INITIAL_MAX_TIMESTAMP;<a name="line.111"></a> +<span class="sourceLineNo">112</span> }<a name="line.112"></a> +<span class="sourceLineNo">113</span><a name="line.113"></a> +<span class="sourceLineNo">114</span> private static void check(long minStamp, long maxStamp) {<a name="line.114"></a> +<span class="sourceLineNo">115</span> if (minStamp < 0 || maxStamp < 0) {<a name="line.115"></a> +<span class="sourceLineNo">116</span> throw new IllegalArgumentException("Timestamp cannot be negative. minStamp:" + minStamp<a name="line.116"></a> +<span class="sourceLineNo">117</span> + ", maxStamp:" + maxStamp);<a name="line.117"></a> +<span class="sourceLineNo">118</span> }<a name="line.118"></a> +<span class="sourceLineNo">119</span> if (maxStamp < minStamp) {<a name="line.119"></a> +<span class="sourceLineNo">120</span> throw new IllegalArgumentException("maxStamp is smaller than minStamp");<a name="line.120"></a> +<span class="sourceLineNo">121</span> }<a name="line.121"></a> +<span class="sourceLineNo">122</span> }<a name="line.122"></a> +<span class="sourceLineNo">123</span><a name="line.123"></a> +<span class="sourceLineNo">124</span> /**<a name="line.124"></a> +<span class="sourceLineNo">125</span> * @return the smallest timestamp that should be considered<a name="line.125"></a> +<span class="sourceLineNo">126</span> */<a name="line.126"></a> +<span class="sourceLineNo">127</span> public long getMin() {<a name="line.127"></a> +<span class="sourceLineNo">128</span> return minStamp;<a name="line.128"></a> +<span class="sourceLineNo">129</span> }<a name="line.129"></a> +<span class="sourceLineNo">130</span><a name="line.130"></a> +<span class="sourceLineNo">131</span> /**<a name="line.131"></a> +<span class="sourceLineNo">132</span> * @return the biggest timestamp that should be considered<a name="line.132"></a> +<span class="sourceLineNo">133</span> */<a name="line.133"></a> +<span class="sourceLineNo">134</span> public long getMax() {<a name="line.134"></a> +<span class="sourceLineNo">135</span> return maxStamp;<a name="line.135"></a> +<span class="sourceLineNo">136</span> }<a name="line.136"></a> +<span class="sourceLineNo">137</span><a name="line.137"></a> +<span class="sourceLineNo">138</span> /**<a name="line.138"></a> +<span class="sourceLineNo">139</span> * Check if it is for all time<a name="line.139"></a> +<span class="sourceLineNo">140</span> * @return true if it is for all time<a name="line.140"></a> +<span class="sourceLineNo">141</span> */<a name="line.141"></a> +<span class="sourceLineNo">142</span> public boolean isAllTime() {<a name="line.142"></a> +<span class="sourceLineNo">143</span> return allTime;<a name="line.143"></a> +<span class="sourceLineNo">144</span> }<a name="line.144"></a> +<span class="sourceLineNo">145</span><a name="line.145"></a> +<span class="sourceLineNo">146</span> /**<a name="line.146"></a> +<span class="sourceLineNo">147</span> * Check if the specified timestamp is within this TimeRange.<a name="line.147"></a> +<span class="sourceLineNo">148</span> * <p><a name="line.148"></a> +<span class="sourceLineNo">149</span> * Returns true if within interval [minStamp, maxStamp), false if not.<a name="line.149"></a> +<span class="sourceLineNo">150</span> * @param bytes timestamp to check<a name="line.150"></a> +<span class="sourceLineNo">151</span> * @param offset offset into the bytes<a name="line.151"></a> +<span class="sourceLineNo">152</span> * @return true if within TimeRange, false if not<a name="line.152"></a> +<span class="sourceLineNo">153</span> */<a name="line.153"></a> +<span class="sourceLineNo">154</span> public boolean withinTimeRange(byte [] bytes, int offset) {<a name="line.154"></a> +<span class="sourceLineNo">155</span> if (allTime) {<a name="line.155"></a> +<span class="sourceLineNo">156</span> return true;<a name="line.156"></a> +<span class="sourceLineNo">157</span> }<a name="line.157"></a> +<span class="sourceLineNo">158</span> return withinTimeRange(Bytes.toLong(bytes, offset));<a name="line.158"></a> +<span class="sourceLineNo">159</span> }<a name="line.159"></a> +<span class="sourceLineNo">160</span><a name="line.160"></a> +<span class="sourceLineNo">161</span> /**<a name="line.161"></a> +<span class="sourceLineNo">162</span> * Check if the specified timestamp is within this TimeRange.<a name="line.162"></a> +<span class="sourceLineNo">163</span> * <p><a name="line.163"></a> +<span class="sourceLineNo">164</span> * Returns true if within interval [minStamp, maxStamp), false<a name="line.164"></a> +<span class="sourceLineNo">165</span> * if not.<a name="line.165"></a> +<span class="sourceLineNo">166</span> * @param timestamp timestamp to check<a name="line.166"></a> +<span class="sourceLineNo">167</span> * @return true if within TimeRange, false if not<a name="line.167"></a> +<span class="sourceLineNo">168</span> */<a name="line.168"></a> +<span class="sourceLineNo">169</span> public boolean withinTimeRange(long timestamp) {<a name="line.169"></a> +<span class="sourceLineNo">170</span> assert timestamp >= 0;<a name="line.170"></a> +<span class="sourceLineNo">171</span> if (this.allTime) {<a name="line.171"></a> +<span class="sourceLineNo">172</span> return true;<a name="line.172"></a> +<span class="sourceLineNo">173</span> }<a name="line.173"></a> +<span class="sourceLineNo">174</span> // check if >= minStamp<a name="line.174"></a> +<span class="sourceLineNo">175</span> return (minStamp <= timestamp && timestamp < maxStamp);<a name="line.175"></a> +<span class="sourceLineNo">176</span> }<a name="line.176"></a> +<span class="sourceLineNo">177</span><a name="line.177"></a> +<span class="sourceLineNo">178</span> /**<a name="line.178"></a> +<span class="sourceLineNo">179</span> * Check if the range has any overlap with TimeRange<a name="line.179"></a> +<span class="sourceLineNo">180</span> * @param tr TimeRange<a name="line.180"></a> +<span class="sourceLineNo">181</span> * @return True if there is overlap, false otherwise<a name="line.181"></a> +<span class="sourceLineNo">182</span> */<a name="line.182"></a> +<span class="sourceLineNo">183</span> // This method came from TimeRangeTracker. We used to go there for this function but better<a name="line.183"></a> +<span class="sourceLineNo">184</span> // to come here to the immutable, unsynchronized datastructure at read time.<a name="line.184"></a> +<span class="sourceLineNo">185</span> public boolean includesTimeRange(final TimeRange tr) {<a name="line.185"></a> +<span class="sourceLineNo">186</span> if (this.allTime) {<a name="line.186"></a> +<span class="sourceLineNo">187</span> return true;<a name="line.187"></a> +<span class="sourceLineNo">188</span> }<a name="line.188"></a> +<span class="sourceLineNo">189</span> assert tr.getMin() >= 0;<a name="line.189"></a> +<span class="sourceLineNo">190</span> return getMin() < tr.getMax() && getMax() >= tr.getMin();<a name="line.190"></a> +<span class="sourceLineNo">191</span> }<a name="line.191"></a> +<span class="sourceLineNo">192</span><a name="line.192"></a> +<span class="sourceLineNo">193</span> /**<a name="line.193"></a> +<span class="sourceLineNo">194</span> * Check if the specified timestamp is within or after this TimeRange.<a name="line.194"></a> +<span class="sourceLineNo">195</span> * <p><a name="line.195"></a> +<span class="sourceLineNo">196</span> * Returns true if greater than minStamp, false if not.<a name="line.196"></a> +<span class="sourceLineNo">197</span> * @param timestamp timestamp to check<a name="line.197"></a> +<span class="sourceLineNo">198</span> * @return true if within or after TimeRange, false if not<a name="line.198"></a> +<span class="sourceLineNo">199</span> */<a name="line.199"></a> +<span class="sourceLineNo">200</span> public boolean withinOrAfterTimeRange(long timestamp) {<a name="line.200"></a> +<span class="sourceLineNo">201</span> assert timestamp >= 0;<a name="line.201"></a> +<span class="sourceLineNo">202</span> if (allTime) {<a name="line.202"></a> +<span class="sourceLineNo">203</span> return true;<a name="line.203"></a> +<span class="sourceLineNo">204</span> }<a name="line.204"></a> +<span class="sourceLineNo">205</span> // check if >= minStamp<a name="line.205"></a> +<span class="sourceLineNo">206</span> return timestamp >= minStamp;<a name="line.206"></a> +<span class="sourceLineNo">207</span> }<a name="line.207"></a> +<span class="sourceLineNo">208</span><a name="line.208"></a> +<span class="sourceLineNo">209</span> /**<a name="line.209"></a> +<span class="sourceLineNo">210</span> * Compare the timestamp to timerange.<a name="line.210"></a> +<span class="sourceLineNo">211</span> * @return -1 if timestamp is less than timerange,<a name="line.211"></a> +<span class="sourceLineNo">212</span> * 0 if timestamp is within timerange,<a name="line.212"></a> +<span class="sourceLineNo">213</span> * 1 if timestamp is greater than timerange<a name="line.213"></a> +<span class="sourceLineNo">214</span> */<a name="line.214"></a> +<span class="sourceLineNo">215</span> public int compare(long timestamp) {<a name="line.215"></a> +<span class="sourceLineNo">216</span> assert timestamp >= 0;<a name="line.216"></a> +<span class="sourceLineNo">217</span> if (this.allTime) {<a name="line.217"></a> +<span class="sourceLineNo">218</span> return 0;<a name="line.218"></a> +<span class="sourceLineNo">219</span> }<a name="line.219"></a> +<span class="sourceLineNo">220</span> if (timestamp < minStamp) {<a name="line.220"></a> +<span class="sourceLineNo">221</span> return -1;<a name="line.221"></a> +<span class="sourceLineNo">222</span> }<a name="line.222"></a> +<span class="sourceLineNo">223</span> return timestamp >= maxStamp? 1: 0;<a name="line.223"></a> +<span class="sourceLineNo">224</span> }<a name="line.224"></a> +<span class="sourceLineNo">225</span><a name="line.225"></a> +<span class="sourceLineNo">226</span> @Override<a name="line.226"></a> +<span class="sourceLineNo">227</span> public String toString() {<a name="line.227"></a> +<span class="sourceLineNo">228</span> StringBuilder sb = new StringBuilder();<a name="line.228"></a> +<span class="sourceLineNo">229</span> sb.append("maxStamp=");<a name="line.229"></a> +<span class="sourceLineNo">230</span> sb.append(this.maxStamp);<a name="line.230"></a> +<span class="sourceLineNo">231</span> sb.append(", minStamp=");<a name="line.231"></a> +<span class="sourceLineNo">232</span> sb.append(this.minStamp);<a name="line.232"></a> +<span class="sourceLineNo">233</span> return sb.toString();<a name="line.233"></a> +<span class="sourceLineNo">234</span> }<a name="line.234"></a> +<span class="sourceLineNo">235</span>}<a name="line.235"></a> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fa05910a/book.html ---------------------------------------------------------------------- diff --git a/book.html b/book.html index 25ac0ca..a03ef62 100644 --- a/book.html +++ b/book.html @@ -35086,7 +35086,7 @@ The server will return cellblocks compressed using this same compressor as long <div id="footer"> <div id="footer-text"> Version 3.0.0-SNAPSHOT<br> -Last updated 2017-09-01 14:29:53 UTC +Last updated 2017-09-02 14:29:35 UTC </div> </div> </body> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/fa05910a/bulk-loads.html ---------------------------------------------------------------------- diff --git a/bulk-loads.html b/bulk-loads.html index 0042555..3001dfd 100644 --- a/bulk-loads.html +++ b/bulk-loads.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20170901" /> + <meta name="Date-Revision-yyyymmdd" content="20170902" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Bulk Loads in Apache HBase (TM) @@ -311,7 +311,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2017-09-01</li> + <li id="publishDate" class="pull-right">Last Published: 2017-09-02</li> </p> </div>
