You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by mb...@apache.org on 2015/04/09 22:59:31 UTC
[26/50] [abbrv] hbase git commit: HBASE-13270 Setter for
Result#getStats is #addResults; confusing!
HBASE-13270 Setter for Result#getStats is #addResults; confusing!
Signed-off-by: stack <st...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/1deadb60
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/1deadb60
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/1deadb60
Branch: refs/heads/hbase-12439
Commit: 1deadb60d1a684cbc1a45cfeb6eee176ad93958f
Parents: 6eeb5b3
Author: Mikhail Antonov <ol...@gmail.com>
Authored: Thu Apr 9 01:02:15 2015 -0700
Committer: stack <st...@apache.org>
Committed: Thu Apr 9 10:44:30 2015 -0700
----------------------------------------------------------------------
.../main/java/org/apache/hadoop/hbase/client/Result.java | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/1deadb60/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
index b6600a9..5a9aff3 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java
@@ -907,15 +907,25 @@ public class Result implements CellScannable, CellScanner {
/**
* Add load information about the region to the information about the result
* @param loadStats statistics about the current region from which this was returned
+ * @deprecated use {@link #setStatistics(ClientProtos.RegionLoadStats)} instead
* @throws UnsupportedOperationException if invoked on instance of EMPTY_RESULT
* (which is supposed to be immutable).
*/
+ @Deprecated
public void addResults(ClientProtos.RegionLoadStats loadStats) {
checkReadonly();
this.stats = loadStats;
}
/**
+ * Set load information about the region to the information about the result
+ * @param loadStats statistics about the current region from which this was returned
+ */
+ public void setStatistics(ClientProtos.RegionLoadStats loadStats) {
+ this.stats = loadStats;
+ }
+
+ /**
* @return the associated statistics about the region from which this was returned. Can be
* <tt>null</tt> if stats are disabled.
*/