org.apache.hadoop.hbase.client
Class ResultStatsUtil

java.lang.Object
  extended by org.apache.hadoop.hbase.client.ResultStatsUtil

@InterfaceAudience.Private
public final class ResultStatsUtil
extends Object

A Result with some statistics about the server/region status


Method Summary
static
<T> T
updateStats(T r, ServerStatisticTracker stats, HRegionLocation regionLocation)
           
static
<T> T
updateStats(T r, ServerStatisticTracker serverStats, ServerName server, byte[] regionName)
          Update the stats for the specified region if the result is an instance of ResultStatsUtil
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

updateStats

public static <T> T updateStats(T r,
                                ServerStatisticTracker serverStats,
                                ServerName server,
                                byte[] regionName)
Update the stats for the specified region if the result is an instance of ResultStatsUtil

Parameters:
r - object that contains the result and possibly the statistics about the region
serverStats - stats tracker to update from the result
server - server from which the result was obtained
regionName - full region name for the stats.
Returns:
the underlying Result if the passed result is an ResultStatsUtil or just returns the result;

updateStats

public static <T> T updateStats(T r,
                                ServerStatisticTracker stats,
                                HRegionLocation regionLocation)


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.