hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-13799 javadoc how Scan gets polluted when used; if you set attributes or ask for scan metrics
Date Fri, 29 May 2015 18:52:10 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 8907e8f90 -> 4273de58e


HBASE-13799 javadoc how Scan gets polluted when used; if you set attributes or ask for scan
metrics


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/4273de58
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4273de58
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4273de58

Branch: refs/heads/0.98
Commit: 4273de58ef24e63d6c39dbc1ac14f596afe3b085
Parents: 8907e8f
Author: stack <stack@apache.org>
Authored: Fri May 29 11:50:13 2015 -0700
Committer: stack <stack@apache.org>
Committed: Fri May 29 11:51:56 2015 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/client/Scan.java       | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/4273de58/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java
index 1ab3e92..f1fede5 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java
@@ -80,6 +80,10 @@ import org.apache.hadoop.hbase.util.Bytes;
  * <p>
  * Expert: To explicitly disable server-side block caching for this scan,
  * execute {@link #setCacheBlocks(boolean)}.
+ * <p><em>Note:</em> Usage alters Scan instances. Internally, attributes
are updated as the Scan
+ * runs and if enabled, metrics accumulate in the Scan instance. Be aware this is the case
when
+ * you go to clone a Scan instance or if you go to reuse a created Scan instance; safer is
create
+ * a Scan instance per usage.
  */
 @InterfaceAudience.Public
 @InterfaceStability.Stable


Mime
View raw message