HBASE-13270 Setter for Result#getStats is #addResults; confusing!
Signed-off-by: stack <stack@apache.org>
This commit is contained in:
parent
6eeb5b38e1
commit
1deadb60d1
|
@ -907,14 +907,24 @@ public class Result implements CellScannable, CellScanner {
|
||||||
/**
|
/**
|
||||||
* Add load information about the region to the information about the result
|
* Add load information about the region to the information about the result
|
||||||
* @param loadStats statistics about the current region from which this was returned
|
* @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
|
* @throws UnsupportedOperationException if invoked on instance of EMPTY_RESULT
|
||||||
* (which is supposed to be immutable).
|
* (which is supposed to be immutable).
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void addResults(ClientProtos.RegionLoadStats loadStats) {
|
public void addResults(ClientProtos.RegionLoadStats loadStats) {
|
||||||
checkReadonly();
|
checkReadonly();
|
||||||
this.stats = loadStats;
|
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
|
* @return the associated statistics about the region from which this was returned. Can be
|
||||||
* <tt>null</tt> if stats are disabled.
|
* <tt>null</tt> if stats are disabled.
|
||||||
|
|
Loading…
Reference in New Issue