diff --git hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java index 2cc38bf..f413bc4 100644 --- hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java +++ hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java @@ -891,12 +891,22 @@ 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 #addStats(ClientProtos.RegionLoadStats)} instead */ + @Deprecated public void addResults(ClientProtos.RegionLoadStats loadStats) { this.stats = loadStats; } /** + * Add 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 addStats(ClientProtos.RegionLoadStats loadStats) { + this.stats = loadStats; + } + + /** * @return the associated statistics about the region from which this was returned. Can be * null if stats are disabled. */