http://git-wip-us.apache.org/repos/asf/hbase-site/blob/7bcc960d/testdevapidocs/src-html/org/apache/hadoop/hbase/PerformanceEvaluation.BufferedMutatorTest.html
----------------------------------------------------------------------
diff --git 
a/testdevapidocs/src-html/org/apache/hadoop/hbase/PerformanceEvaluation.BufferedMutatorTest.html
 
b/testdevapidocs/src-html/org/apache/hadoop/hbase/PerformanceEvaluation.BufferedMutatorTest.html
index 3f8844b..cdb9398 100644
--- 
a/testdevapidocs/src-html/org/apache/hadoop/hbase/PerformanceEvaluation.BufferedMutatorTest.html
+++ 
b/testdevapidocs/src-html/org/apache/hadoop/hbase/PerformanceEvaluation.BufferedMutatorTest.html
@@ -140,2712 +140,2713 @@
 <span class="sourceLineNo">132</span>public class PerformanceEvaluation 
extends Configured implements Tool {<a name="line.132"></a>
 <span class="sourceLineNo">133</span>  static final String RANDOM_SEEK_SCAN = 
"randomSeekScan";<a name="line.133"></a>
 <span class="sourceLineNo">134</span>  static final String RANDOM_READ = 
"randomRead";<a name="line.134"></a>
-<span class="sourceLineNo">135</span>  private static final Logger LOG = 
LoggerFactory.getLogger(PerformanceEvaluation.class.getName());<a 
name="line.135"></a>
-<span class="sourceLineNo">136</span>  private static final ObjectMapper 
MAPPER = new ObjectMapper();<a name="line.136"></a>
-<span class="sourceLineNo">137</span>  static {<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    
MAPPER.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);<a 
name="line.138"></a>
-<span class="sourceLineNo">139</span>  }<a name="line.139"></a>
-<span class="sourceLineNo">140</span><a name="line.140"></a>
-<span class="sourceLineNo">141</span>  public static final String TABLE_NAME = 
"TestTable";<a name="line.141"></a>
-<span class="sourceLineNo">142</span>  public static final String 
FAMILY_NAME_BASE = "info";<a name="line.142"></a>
-<span class="sourceLineNo">143</span>  public static final byte[] FAMILY_ZERO 
= Bytes.toBytes("info0");<a name="line.143"></a>
-<span class="sourceLineNo">144</span>  public static final byte[] COLUMN_ZERO 
= Bytes.toBytes("" + 0);<a name="line.144"></a>
-<span class="sourceLineNo">145</span>  public static final int 
DEFAULT_VALUE_LENGTH = 1000;<a name="line.145"></a>
-<span class="sourceLineNo">146</span>  public static final int ROW_LENGTH = 
26;<a name="line.146"></a>
-<span class="sourceLineNo">147</span><a name="line.147"></a>
-<span class="sourceLineNo">148</span>  private static final int ONE_GB = 1024 
* 1024 * 1000;<a name="line.148"></a>
-<span class="sourceLineNo">149</span>  private static final int 
DEFAULT_ROWS_PER_GB = ONE_GB / DEFAULT_VALUE_LENGTH;<a name="line.149"></a>
-<span class="sourceLineNo">150</span>  // TODO : should we make this 
configurable<a name="line.150"></a>
-<span class="sourceLineNo">151</span>  private static final int TAG_LENGTH = 
256;<a name="line.151"></a>
-<span class="sourceLineNo">152</span>  private static final DecimalFormat FMT 
= new DecimalFormat("0.##");<a name="line.152"></a>
-<span class="sourceLineNo">153</span>  private static final MathContext CXT = 
MathContext.DECIMAL64;<a name="line.153"></a>
-<span class="sourceLineNo">154</span>  private static final BigDecimal 
MS_PER_SEC = BigDecimal.valueOf(1000);<a name="line.154"></a>
-<span class="sourceLineNo">155</span>  private static final BigDecimal 
BYTES_PER_MB = BigDecimal.valueOf(1024 * 1024);<a name="line.155"></a>
-<span class="sourceLineNo">156</span>  private static final TestOptions 
DEFAULT_OPTS = new TestOptions();<a name="line.156"></a>
-<span class="sourceLineNo">157</span><a name="line.157"></a>
-<span class="sourceLineNo">158</span>  private static Map&lt;String, 
CmdDescriptor&gt; COMMANDS = new TreeMap&lt;&gt;();<a name="line.158"></a>
-<span class="sourceLineNo">159</span>  private static final Path PERF_EVAL_DIR 
= new Path("performance_evaluation");<a name="line.159"></a>
-<span class="sourceLineNo">160</span><a name="line.160"></a>
-<span class="sourceLineNo">161</span>  static {<a name="line.161"></a>
-<span class="sourceLineNo">162</span>    
addCommandDescriptor(AsyncRandomReadTest.class, "asyncRandomRead",<a 
name="line.162"></a>
-<span class="sourceLineNo">163</span>        "Run async random read test");<a 
name="line.163"></a>
-<span class="sourceLineNo">164</span>    
addCommandDescriptor(AsyncRandomWriteTest.class, "asyncRandomWrite",<a 
name="line.164"></a>
-<span class="sourceLineNo">165</span>        "Run async random write test");<a 
name="line.165"></a>
-<span class="sourceLineNo">166</span>    
addCommandDescriptor(AsyncSequentialReadTest.class, "asyncSequentialRead",<a 
name="line.166"></a>
-<span class="sourceLineNo">167</span>        "Run async sequential read 
test");<a name="line.167"></a>
-<span class="sourceLineNo">168</span>    
addCommandDescriptor(AsyncSequentialWriteTest.class, "asyncSequentialWrite",<a 
name="line.168"></a>
-<span class="sourceLineNo">169</span>        "Run async sequential write 
test");<a name="line.169"></a>
-<span class="sourceLineNo">170</span>    
addCommandDescriptor(AsyncScanTest.class, "asyncScan",<a name="line.170"></a>
-<span class="sourceLineNo">171</span>        "Run async scan test (read every 
row)");<a name="line.171"></a>
-<span class="sourceLineNo">172</span>    
addCommandDescriptor(RandomReadTest.class, RANDOM_READ,<a name="line.172"></a>
-<span class="sourceLineNo">173</span>      "Run random read test");<a 
name="line.173"></a>
-<span class="sourceLineNo">174</span>    
addCommandDescriptor(RandomSeekScanTest.class, RANDOM_SEEK_SCAN,<a 
name="line.174"></a>
-<span class="sourceLineNo">175</span>      "Run random seek and scan 100 
test");<a name="line.175"></a>
-<span class="sourceLineNo">176</span>    
addCommandDescriptor(RandomScanWithRange10Test.class, "scanRange10",<a 
name="line.176"></a>
-<span class="sourceLineNo">177</span>      "Run random seek scan with both 
start and stop row (max 10 rows)");<a name="line.177"></a>
-<span class="sourceLineNo">178</span>    
addCommandDescriptor(RandomScanWithRange100Test.class, "scanRange100",<a 
name="line.178"></a>
-<span class="sourceLineNo">179</span>      "Run random seek scan with both 
start and stop row (max 100 rows)");<a name="line.179"></a>
-<span class="sourceLineNo">180</span>    
addCommandDescriptor(RandomScanWithRange1000Test.class, "scanRange1000",<a 
name="line.180"></a>
-<span class="sourceLineNo">181</span>      "Run random seek scan with both 
start and stop row (max 1000 rows)");<a name="line.181"></a>
-<span class="sourceLineNo">182</span>    
addCommandDescriptor(RandomScanWithRange10000Test.class, "scanRange10000",<a 
name="line.182"></a>
-<span class="sourceLineNo">183</span>      "Run random seek scan with both 
start and stop row (max 10000 rows)");<a name="line.183"></a>
-<span class="sourceLineNo">184</span>    
addCommandDescriptor(RandomWriteTest.class, "randomWrite",<a 
name="line.184"></a>
-<span class="sourceLineNo">185</span>      "Run random write test");<a 
name="line.185"></a>
-<span class="sourceLineNo">186</span>    
addCommandDescriptor(SequentialReadTest.class, "sequentialRead",<a 
name="line.186"></a>
-<span class="sourceLineNo">187</span>      "Run sequential read test");<a 
name="line.187"></a>
-<span class="sourceLineNo">188</span>    
addCommandDescriptor(SequentialWriteTest.class, "sequentialWrite",<a 
name="line.188"></a>
-<span class="sourceLineNo">189</span>      "Run sequential write test");<a 
name="line.189"></a>
-<span class="sourceLineNo">190</span>    addCommandDescriptor(ScanTest.class, 
"scan",<a name="line.190"></a>
-<span class="sourceLineNo">191</span>      "Run scan test (read every 
row)");<a name="line.191"></a>
-<span class="sourceLineNo">192</span>    
addCommandDescriptor(FilteredScanTest.class, "filterScan",<a 
name="line.192"></a>
-<span class="sourceLineNo">193</span>      "Run scan test using a filter to 
find a specific row based on it's value " +<a name="line.193"></a>
-<span class="sourceLineNo">194</span>      "(make sure to use --rows=20)");<a 
name="line.194"></a>
-<span class="sourceLineNo">195</span>    
addCommandDescriptor(IncrementTest.class, "increment",<a name="line.195"></a>
-<span class="sourceLineNo">196</span>      "Increment on each row; clients 
overlap on keyspace so some concurrent operations");<a name="line.196"></a>
-<span class="sourceLineNo">197</span>    
addCommandDescriptor(AppendTest.class, "append",<a name="line.197"></a>
-<span class="sourceLineNo">198</span>      "Append on each row; clients 
overlap on keyspace so some concurrent operations");<a name="line.198"></a>
-<span class="sourceLineNo">199</span>    
addCommandDescriptor(CheckAndMutateTest.class, "checkAndMutate",<a 
name="line.199"></a>
-<span class="sourceLineNo">200</span>      "CheckAndMutate on each row; 
clients overlap on keyspace so some concurrent operations");<a 
name="line.200"></a>
-<span class="sourceLineNo">201</span>    
addCommandDescriptor(CheckAndPutTest.class, "checkAndPut",<a 
name="line.201"></a>
-<span class="sourceLineNo">202</span>      "CheckAndPut on each row; clients 
overlap on keyspace so some concurrent operations");<a name="line.202"></a>
-<span class="sourceLineNo">203</span>    
addCommandDescriptor(CheckAndDeleteTest.class, "checkAndDelete",<a 
name="line.203"></a>
-<span class="sourceLineNo">204</span>      "CheckAndDelete on each row; 
clients overlap on keyspace so some concurrent operations");<a 
name="line.204"></a>
-<span class="sourceLineNo">205</span>  }<a name="line.205"></a>
-<span class="sourceLineNo">206</span><a name="line.206"></a>
-<span class="sourceLineNo">207</span>  /**<a name="line.207"></a>
-<span class="sourceLineNo">208</span>   * Enum for map metrics.  Keep it out 
here rather than inside in the Map<a name="line.208"></a>
-<span class="sourceLineNo">209</span>   * inner-class so we can find 
associated properties.<a name="line.209"></a>
-<span class="sourceLineNo">210</span>   */<a name="line.210"></a>
-<span class="sourceLineNo">211</span>  protected static enum Counter {<a 
name="line.211"></a>
-<span class="sourceLineNo">212</span>    /** elapsed time */<a 
name="line.212"></a>
-<span class="sourceLineNo">213</span>    ELAPSED_TIME,<a name="line.213"></a>
-<span class="sourceLineNo">214</span>    /** number of rows */<a 
name="line.214"></a>
-<span class="sourceLineNo">215</span>    ROWS<a name="line.215"></a>
-<span class="sourceLineNo">216</span>  }<a name="line.216"></a>
-<span class="sourceLineNo">217</span><a name="line.217"></a>
-<span class="sourceLineNo">218</span>  protected static class RunResult 
implements Comparable&lt;RunResult&gt; {<a name="line.218"></a>
-<span class="sourceLineNo">219</span>    public RunResult(long duration, 
Histogram hist) {<a name="line.219"></a>
-<span class="sourceLineNo">220</span>      this.duration = duration;<a 
name="line.220"></a>
-<span class="sourceLineNo">221</span>      this.hist = hist;<a 
name="line.221"></a>
-<span class="sourceLineNo">222</span>    }<a name="line.222"></a>
-<span class="sourceLineNo">223</span><a name="line.223"></a>
-<span class="sourceLineNo">224</span>    public final long duration;<a 
name="line.224"></a>
-<span class="sourceLineNo">225</span>    public final Histogram hist;<a 
name="line.225"></a>
-<span class="sourceLineNo">226</span><a name="line.226"></a>
-<span class="sourceLineNo">227</span>    @Override<a name="line.227"></a>
-<span class="sourceLineNo">228</span>    public String toString() {<a 
name="line.228"></a>
-<span class="sourceLineNo">229</span>      return Long.toString(duration);<a 
name="line.229"></a>
-<span class="sourceLineNo">230</span>    }<a name="line.230"></a>
-<span class="sourceLineNo">231</span><a name="line.231"></a>
-<span class="sourceLineNo">232</span>    @Override public int 
compareTo(RunResult o) {<a name="line.232"></a>
-<span class="sourceLineNo">233</span>      return Long.compare(this.duration, 
o.duration);<a name="line.233"></a>
-<span class="sourceLineNo">234</span>    }<a name="line.234"></a>
-<span class="sourceLineNo">235</span>  }<a name="line.235"></a>
-<span class="sourceLineNo">236</span><a name="line.236"></a>
-<span class="sourceLineNo">237</span>  /**<a name="line.237"></a>
-<span class="sourceLineNo">238</span>   * Constructor<a name="line.238"></a>
-<span class="sourceLineNo">239</span>   * @param conf Configuration object<a 
name="line.239"></a>
-<span class="sourceLineNo">240</span>   */<a name="line.240"></a>
-<span class="sourceLineNo">241</span>  public PerformanceEvaluation(final 
Configuration conf) {<a name="line.241"></a>
-<span class="sourceLineNo">242</span>    super(conf);<a name="line.242"></a>
-<span class="sourceLineNo">243</span>  }<a name="line.243"></a>
-<span class="sourceLineNo">244</span><a name="line.244"></a>
-<span class="sourceLineNo">245</span>  protected static void 
addCommandDescriptor(Class&lt;? extends TestBase&gt; cmdClass,<a 
name="line.245"></a>
-<span class="sourceLineNo">246</span>      String name, String description) 
{<a name="line.246"></a>
-<span class="sourceLineNo">247</span>    CmdDescriptor cmdDescriptor = new 
CmdDescriptor(cmdClass, name, description);<a name="line.247"></a>
-<span class="sourceLineNo">248</span>    COMMANDS.put(name, cmdDescriptor);<a 
name="line.248"></a>
-<span class="sourceLineNo">249</span>  }<a name="line.249"></a>
-<span class="sourceLineNo">250</span><a name="line.250"></a>
-<span class="sourceLineNo">251</span>  /**<a name="line.251"></a>
-<span class="sourceLineNo">252</span>   * Implementations can have their 
status set.<a name="line.252"></a>
-<span class="sourceLineNo">253</span>   */<a name="line.253"></a>
-<span class="sourceLineNo">254</span>  interface Status {<a 
name="line.254"></a>
-<span class="sourceLineNo">255</span>    /**<a name="line.255"></a>
-<span class="sourceLineNo">256</span>     * Sets status<a name="line.256"></a>
-<span class="sourceLineNo">257</span>     * @param msg status message<a 
name="line.257"></a>
-<span class="sourceLineNo">258</span>     * @throws IOException<a 
name="line.258"></a>
-<span class="sourceLineNo">259</span>     */<a name="line.259"></a>
-<span class="sourceLineNo">260</span>    void setStatus(final String msg) 
throws IOException;<a name="line.260"></a>
-<span class="sourceLineNo">261</span>  }<a name="line.261"></a>
-<span class="sourceLineNo">262</span><a name="line.262"></a>
-<span class="sourceLineNo">263</span>  /**<a name="line.263"></a>
-<span class="sourceLineNo">264</span>   * MapReduce job that runs a 
performance evaluation client in each map task.<a name="line.264"></a>
-<span class="sourceLineNo">265</span>   */<a name="line.265"></a>
-<span class="sourceLineNo">266</span>  public static class EvaluationMapTask<a 
name="line.266"></a>
-<span class="sourceLineNo">267</span>      extends Mapper&lt;LongWritable, 
Text, LongWritable, LongWritable&gt; {<a name="line.267"></a>
-<span class="sourceLineNo">268</span><a name="line.268"></a>
-<span class="sourceLineNo">269</span>    /** configuration parameter name that 
contains the command */<a name="line.269"></a>
-<span class="sourceLineNo">270</span>    public final static String CMD_KEY = 
"EvaluationMapTask.command";<a name="line.270"></a>
-<span class="sourceLineNo">271</span>    /** configuration parameter name that 
contains the PE impl */<a name="line.271"></a>
-<span class="sourceLineNo">272</span>    public static final String PE_KEY = 
"EvaluationMapTask.performanceEvalImpl";<a name="line.272"></a>
-<span class="sourceLineNo">273</span><a name="line.273"></a>
-<span class="sourceLineNo">274</span>    private Class&lt;? extends Test&gt; 
cmd;<a name="line.274"></a>
-<span class="sourceLineNo">275</span><a name="line.275"></a>
-<span class="sourceLineNo">276</span>    @Override<a name="line.276"></a>
-<span class="sourceLineNo">277</span>    protected void setup(Context context) 
throws IOException, InterruptedException {<a name="line.277"></a>
-<span class="sourceLineNo">278</span>      this.cmd = 
forName(context.getConfiguration().get(CMD_KEY), Test.class);<a 
name="line.278"></a>
-<span class="sourceLineNo">279</span><a name="line.279"></a>
-<span class="sourceLineNo">280</span>      // this is required so that 
extensions of PE are instantiated within the<a name="line.280"></a>
-<span class="sourceLineNo">281</span>      // map reduce task...<a 
name="line.281"></a>
-<span class="sourceLineNo">282</span>      Class&lt;? extends 
PerformanceEvaluation&gt; peClass =<a name="line.282"></a>
-<span class="sourceLineNo">283</span>          
forName(context.getConfiguration().get(PE_KEY), PerformanceEvaluation.class);<a 
name="line.283"></a>
-<span class="sourceLineNo">284</span>      try {<a name="line.284"></a>
-<span class="sourceLineNo">285</span>        
peClass.getConstructor(Configuration.class).newInstance(context.getConfiguration());<a
 name="line.285"></a>
-<span class="sourceLineNo">286</span>      } catch (Exception e) {<a 
name="line.286"></a>
-<span class="sourceLineNo">287</span>        throw new 
IllegalStateException("Could not instantiate PE instance", e);<a 
name="line.287"></a>
-<span class="sourceLineNo">288</span>      }<a name="line.288"></a>
-<span class="sourceLineNo">289</span>    }<a name="line.289"></a>
-<span class="sourceLineNo">290</span><a name="line.290"></a>
-<span class="sourceLineNo">291</span>    private &lt;Type&gt; Class&lt;? 
extends Type&gt; forName(String className, Class&lt;Type&gt; type) {<a 
name="line.291"></a>
-<span class="sourceLineNo">292</span>      try {<a name="line.292"></a>
-<span class="sourceLineNo">293</span>        return 
Class.forName(className).asSubclass(type);<a name="line.293"></a>
-<span class="sourceLineNo">294</span>      } catch (ClassNotFoundException e) 
{<a name="line.294"></a>
-<span class="sourceLineNo">295</span>        throw new 
IllegalStateException("Could not find class for name: " + className, e);<a 
name="line.295"></a>
-<span class="sourceLineNo">296</span>      }<a name="line.296"></a>
-<span class="sourceLineNo">297</span>    }<a name="line.297"></a>
-<span class="sourceLineNo">298</span><a name="line.298"></a>
-<span class="sourceLineNo">299</span>    @Override<a name="line.299"></a>
-<span class="sourceLineNo">300</span>    protected void map(LongWritable key, 
Text value, final Context context)<a name="line.300"></a>
-<span class="sourceLineNo">301</span>           throws IOException, 
InterruptedException {<a name="line.301"></a>
-<span class="sourceLineNo">302</span><a name="line.302"></a>
-<span class="sourceLineNo">303</span>      Status status = new Status() {<a 
name="line.303"></a>
-<span class="sourceLineNo">304</span>        @Override<a name="line.304"></a>
-<span class="sourceLineNo">305</span>        public void setStatus(String msg) 
{<a name="line.305"></a>
-<span class="sourceLineNo">306</span>           context.setStatus(msg);<a 
name="line.306"></a>
-<span class="sourceLineNo">307</span>        }<a name="line.307"></a>
-<span class="sourceLineNo">308</span>      };<a name="line.308"></a>
-<span class="sourceLineNo">309</span><a name="line.309"></a>
-<span class="sourceLineNo">310</span>      ObjectMapper mapper = new 
ObjectMapper();<a name="line.310"></a>
-<span class="sourceLineNo">311</span>      TestOptions opts = 
mapper.readValue(value.toString(), TestOptions.class);<a name="line.311"></a>
-<span class="sourceLineNo">312</span>      Configuration conf = 
HBaseConfiguration.create(context.getConfiguration());<a name="line.312"></a>
-<span class="sourceLineNo">313</span>      final Connection con = 
ConnectionFactory.createConnection(conf);<a name="line.313"></a>
-<span class="sourceLineNo">314</span>      AsyncConnection asyncCon = null;<a 
name="line.314"></a>
-<span class="sourceLineNo">315</span>      try {<a name="line.315"></a>
-<span class="sourceLineNo">316</span>        asyncCon = 
ConnectionFactory.createAsyncConnection(conf).get();<a name="line.316"></a>
-<span class="sourceLineNo">317</span>      } catch (ExecutionException e) {<a 
name="line.317"></a>
-<span class="sourceLineNo">318</span>        throw new IOException(e);<a 
name="line.318"></a>
-<span class="sourceLineNo">319</span>      }<a name="line.319"></a>
-<span class="sourceLineNo">320</span><a name="line.320"></a>
-<span class="sourceLineNo">321</span>      // Evaluation task<a 
name="line.321"></a>
-<span class="sourceLineNo">322</span>      RunResult result = 
PerformanceEvaluation.runOneClient(this.cmd, conf, con, asyncCon, opts, 
status);<a name="line.322"></a>
-<span class="sourceLineNo">323</span>      // Collect how much time the thing 
took. Report as map output and<a name="line.323"></a>
-<span class="sourceLineNo">324</span>      // to the ELAPSED_TIME counter.<a 
name="line.324"></a>
-<span class="sourceLineNo">325</span>      
context.getCounter(Counter.ELAPSED_TIME).increment(result.duration);<a 
name="line.325"></a>
-<span class="sourceLineNo">326</span>      
context.getCounter(Counter.ROWS).increment(opts.perClientRunRows);<a 
name="line.326"></a>
-<span class="sourceLineNo">327</span>      context.write(new 
LongWritable(opts.startRow), new LongWritable(result.duration));<a 
name="line.327"></a>
-<span class="sourceLineNo">328</span>      context.progress();<a 
name="line.328"></a>
-<span class="sourceLineNo">329</span>    }<a name="line.329"></a>
-<span class="sourceLineNo">330</span>  }<a name="line.330"></a>
-<span class="sourceLineNo">331</span><a name="line.331"></a>
-<span class="sourceLineNo">332</span>  /*<a name="line.332"></a>
-<span class="sourceLineNo">333</span>   * If table does not already exist, 
create. Also create a table when<a name="line.333"></a>
-<span class="sourceLineNo">334</span>   * {@code opts.presplitRegions} is 
specified or when the existing table's<a name="line.334"></a>
-<span class="sourceLineNo">335</span>   * region replica count doesn't match 
{@code opts.replicas}.<a name="line.335"></a>
-<span class="sourceLineNo">336</span>   */<a name="line.336"></a>
-<span class="sourceLineNo">337</span>  static boolean checkTable(Admin admin, 
TestOptions opts) throws IOException {<a name="line.337"></a>
-<span class="sourceLineNo">338</span>    TableName tableName = 
TableName.valueOf(opts.tableName);<a name="line.338"></a>
-<span class="sourceLineNo">339</span>    boolean needsDelete = false, exists = 
admin.tableExists(tableName);<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    boolean isReadCmd = 
opts.cmdName.toLowerCase(Locale.ROOT).contains("read")<a name="line.340"></a>
-<span class="sourceLineNo">341</span>      || 
opts.cmdName.toLowerCase(Locale.ROOT).contains("scan");<a name="line.341"></a>
-<span class="sourceLineNo">342</span>    if (!exists &amp;&amp; isReadCmd) {<a 
name="line.342"></a>
-<span class="sourceLineNo">343</span>      throw new IllegalStateException(<a 
name="line.343"></a>
-<span class="sourceLineNo">344</span>        "Must specify an existing table 
for read commands. Run a write command first.");<a name="line.344"></a>
-<span class="sourceLineNo">345</span>    }<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    HTableDescriptor desc =<a 
name="line.346"></a>
-<span class="sourceLineNo">347</span>      exists ? 
admin.getTableDescriptor(TableName.valueOf(opts.tableName)) : null;<a 
name="line.347"></a>
-<span class="sourceLineNo">348</span>    byte[][] splits = getSplits(opts);<a 
name="line.348"></a>
-<span class="sourceLineNo">349</span><a name="line.349"></a>
-<span class="sourceLineNo">350</span>    // recreate the table when user has 
requested presplit or when existing<a name="line.350"></a>
-<span class="sourceLineNo">351</span>    // {RegionSplitPolicy,replica count} 
does not match requested, or when the<a name="line.351"></a>
-<span class="sourceLineNo">352</span>    // number of column families does not 
match requested.<a name="line.352"></a>
-<span class="sourceLineNo">353</span>    if ((exists &amp;&amp; 
opts.presplitRegions != DEFAULT_OPTS.presplitRegions)<a name="line.353"></a>
-<span class="sourceLineNo">354</span>      || (!isReadCmd &amp;&amp; desc != 
null &amp;&amp;<a name="line.354"></a>
-<span class="sourceLineNo">355</span>          
!StringUtils.equals(desc.getRegionSplitPolicyClassName(), opts.splitPolicy))<a 
name="line.355"></a>
-<span class="sourceLineNo">356</span>      || (!isReadCmd &amp;&amp; desc != 
null &amp;&amp; desc.getRegionReplication() != opts.replicas)<a 
name="line.356"></a>
-<span class="sourceLineNo">357</span>      || (desc != null &amp;&amp; 
desc.getColumnFamilyCount() != opts.families)) {<a name="line.357"></a>
-<span class="sourceLineNo">358</span>      needsDelete = true;<a 
name="line.358"></a>
-<span class="sourceLineNo">359</span>      // wait, why did it delete my 
table?!?<a name="line.359"></a>
-<span class="sourceLineNo">360</span>      
LOG.debug(MoreObjects.toStringHelper("needsDelete")<a name="line.360"></a>
-<span class="sourceLineNo">361</span>        .add("needsDelete", 
needsDelete)<a name="line.361"></a>
-<span class="sourceLineNo">362</span>        .add("isReadCmd", isReadCmd)<a 
name="line.362"></a>
-<span class="sourceLineNo">363</span>        .add("exists", exists)<a 
name="line.363"></a>
-<span class="sourceLineNo">364</span>        .add("desc", desc)<a 
name="line.364"></a>
-<span class="sourceLineNo">365</span>        .add("presplit", 
opts.presplitRegions)<a name="line.365"></a>
-<span class="sourceLineNo">366</span>        .add("splitPolicy", 
opts.splitPolicy)<a name="line.366"></a>
-<span class="sourceLineNo">367</span>        .add("replicas", opts.replicas)<a 
name="line.367"></a>
-<span class="sourceLineNo">368</span>        .add("families", opts.families)<a 
name="line.368"></a>
-<span class="sourceLineNo">369</span>        .toString());<a 
name="line.369"></a>
-<span class="sourceLineNo">370</span>    }<a name="line.370"></a>
-<span class="sourceLineNo">371</span><a name="line.371"></a>
-<span class="sourceLineNo">372</span>    // remove an existing table<a 
name="line.372"></a>
-<span class="sourceLineNo">373</span>    if (needsDelete) {<a 
name="line.373"></a>
-<span class="sourceLineNo">374</span>      if 
(admin.isTableEnabled(tableName)) {<a name="line.374"></a>
-<span class="sourceLineNo">375</span>        admin.disableTable(tableName);<a 
name="line.375"></a>
-<span class="sourceLineNo">376</span>      }<a name="line.376"></a>
-<span class="sourceLineNo">377</span>      admin.deleteTable(tableName);<a 
name="line.377"></a>
-<span class="sourceLineNo">378</span>    }<a name="line.378"></a>
-<span class="sourceLineNo">379</span><a name="line.379"></a>
-<span class="sourceLineNo">380</span>    // table creation is necessary<a 
name="line.380"></a>
-<span class="sourceLineNo">381</span>    if (!exists || needsDelete) {<a 
name="line.381"></a>
-<span class="sourceLineNo">382</span>      desc = getTableDescriptor(opts);<a 
name="line.382"></a>
-<span class="sourceLineNo">383</span>      if (splits != null) {<a 
name="line.383"></a>
-<span class="sourceLineNo">384</span>        if (LOG.isDebugEnabled()) {<a 
name="line.384"></a>
-<span class="sourceLineNo">385</span>          for (int i = 0; i &lt; 
splits.length; i++) {<a name="line.385"></a>
-<span class="sourceLineNo">386</span>            LOG.debug(" split " + i + ": 
" + Bytes.toStringBinary(splits[i]));<a name="line.386"></a>
-<span class="sourceLineNo">387</span>          }<a name="line.387"></a>
-<span class="sourceLineNo">388</span>        }<a name="line.388"></a>
-<span class="sourceLineNo">389</span>      }<a name="line.389"></a>
-<span class="sourceLineNo">390</span>      admin.createTable(desc, splits);<a 
name="line.390"></a>
-<span class="sourceLineNo">391</span>      LOG.info("Table " + desc + " 
created");<a name="line.391"></a>
-<span class="sourceLineNo">392</span>    }<a name="line.392"></a>
-<span class="sourceLineNo">393</span>    return 
admin.tableExists(tableName);<a name="line.393"></a>
-<span class="sourceLineNo">394</span>  }<a name="line.394"></a>
-<span class="sourceLineNo">395</span><a name="line.395"></a>
-<span class="sourceLineNo">396</span>  /**<a name="line.396"></a>
-<span class="sourceLineNo">397</span>   * Create an HTableDescriptor from 
provided TestOptions.<a name="line.397"></a>
-<span class="sourceLineNo">398</span>   */<a name="line.398"></a>
-<span class="sourceLineNo">399</span>  protected static HTableDescriptor 
getTableDescriptor(TestOptions opts) {<a name="line.399"></a>
-<span class="sourceLineNo">400</span>    HTableDescriptor tableDesc = new 
HTableDescriptor(TableName.valueOf(opts.tableName));<a name="line.400"></a>
-<span class="sourceLineNo">401</span>    for (int family = 0; family &lt; 
opts.families; family++) {<a name="line.401"></a>
-<span class="sourceLineNo">402</span>      byte[] familyName = 
Bytes.toBytes(FAMILY_NAME_BASE + family);<a name="line.402"></a>
-<span class="sourceLineNo">403</span>      HColumnDescriptor familyDesc = new 
HColumnDescriptor(familyName);<a name="line.403"></a>
-<span class="sourceLineNo">404</span>      
familyDesc.setDataBlockEncoding(opts.blockEncoding);<a name="line.404"></a>
-<span class="sourceLineNo">405</span>      
familyDesc.setCompressionType(opts.compression);<a name="line.405"></a>
-<span class="sourceLineNo">406</span>      
familyDesc.setBloomFilterType(opts.bloomType);<a name="line.406"></a>
-<span class="sourceLineNo">407</span>      
familyDesc.setBlocksize(opts.blockSize);<a name="line.407"></a>
-<span class="sourceLineNo">408</span>      if (opts.inMemoryCF) {<a 
name="line.408"></a>
-<span class="sourceLineNo">409</span>        familyDesc.setInMemory(true);<a 
name="line.409"></a>
-<span class="sourceLineNo">410</span>      }<a name="line.410"></a>
-<span class="sourceLineNo">411</span>      
familyDesc.setInMemoryCompaction(opts.inMemoryCompaction);<a 
name="line.411"></a>
-<span class="sourceLineNo">412</span>      tableDesc.addFamily(familyDesc);<a 
name="line.412"></a>
-<span class="sourceLineNo">413</span>    }<a name="line.413"></a>
-<span class="sourceLineNo">414</span>    if (opts.replicas != 
DEFAULT_OPTS.replicas) {<a name="line.414"></a>
-<span class="sourceLineNo">415</span>      
tableDesc.setRegionReplication(opts.replicas);<a name="line.415"></a>
-<span class="sourceLineNo">416</span>    }<a name="line.416"></a>
-<span class="sourceLineNo">417</span>    if (opts.splitPolicy != null 
&amp;&amp; !opts.splitPolicy.equals(DEFAULT_OPTS.splitPolicy)) {<a 
name="line.417"></a>
-<span class="sourceLineNo">418</span>      
tableDesc.setRegionSplitPolicyClassName(opts.splitPolicy);<a 
name="line.418"></a>
-<span class="sourceLineNo">419</span>    }<a name="line.419"></a>
-<span class="sourceLineNo">420</span>    return tableDesc;<a 
name="line.420"></a>
-<span class="sourceLineNo">421</span>  }<a name="line.421"></a>
-<span class="sourceLineNo">422</span><a name="line.422"></a>
-<span class="sourceLineNo">423</span>  /**<a name="line.423"></a>
-<span class="sourceLineNo">424</span>   * generates splits based on total 
number of rows and specified split regions<a name="line.424"></a>
-<span class="sourceLineNo">425</span>   */<a name="line.425"></a>
-<span class="sourceLineNo">426</span>  protected static byte[][] 
getSplits(TestOptions opts) {<a name="line.426"></a>
-<span class="sourceLineNo">427</span>    if (opts.presplitRegions == 
DEFAULT_OPTS.presplitRegions)<a name="line.427"></a>
-<span class="sourceLineNo">428</span>      return null;<a name="line.428"></a>
-<span class="sourceLineNo">429</span><a name="line.429"></a>
-<span class="sourceLineNo">430</span>    int numSplitPoints = 
opts.presplitRegions - 1;<a name="line.430"></a>
-<span class="sourceLineNo">431</span>    byte[][] splits = new 
byte[numSplitPoints][];<a name="line.431"></a>
-<span class="sourceLineNo">432</span>    int jump = opts.totalRows / 
opts.presplitRegions;<a name="line.432"></a>
-<span class="sourceLineNo">433</span>    for (int i = 0; i &lt; 
numSplitPoints; i++) {<a name="line.433"></a>
-<span class="sourceLineNo">434</span>      int rowkey = jump * (1 + i);<a 
name="line.434"></a>
-<span class="sourceLineNo">435</span>      splits[i] = format(rowkey);<a 
name="line.435"></a>
-<span class="sourceLineNo">436</span>    }<a name="line.436"></a>
-<span class="sourceLineNo">437</span>    return splits;<a name="line.437"></a>
-<span class="sourceLineNo">438</span>  }<a name="line.438"></a>
-<span class="sourceLineNo">439</span><a name="line.439"></a>
-<span class="sourceLineNo">440</span>  /*<a name="line.440"></a>
-<span class="sourceLineNo">441</span>   * Run all clients in this vm each to 
its own thread.<a name="line.441"></a>
-<span class="sourceLineNo">442</span>   */<a name="line.442"></a>
-<span class="sourceLineNo">443</span>  static RunResult[] doLocalClients(final 
TestOptions opts, final Configuration conf)<a name="line.443"></a>
-<span class="sourceLineNo">444</span>      throws IOException, 
InterruptedException, ExecutionException {<a name="line.444"></a>
-<span class="sourceLineNo">445</span>    final Class&lt;? extends TestBase&gt; 
cmd = determineCommandClass(opts.cmdName);<a name="line.445"></a>
-<span class="sourceLineNo">446</span>    assert cmd != null;<a 
name="line.446"></a>
-<span class="sourceLineNo">447</span>    @SuppressWarnings("unchecked")<a 
name="line.447"></a>
-<span class="sourceLineNo">448</span>    Future&lt;RunResult&gt;[] threads = 
new Future[opts.numClientThreads];<a name="line.448"></a>
-<span class="sourceLineNo">449</span>    RunResult[] results = new 
RunResult[opts.numClientThreads];<a name="line.449"></a>
-<span class="sourceLineNo">450</span>    ExecutorService pool = 
Executors.newFixedThreadPool(opts.numClientThreads,<a name="line.450"></a>
-<span class="sourceLineNo">451</span>      new 
ThreadFactoryBuilder().setNameFormat("TestClient-%s").build());<a 
name="line.451"></a>
-<span class="sourceLineNo">452</span>    final Connection con = 
ConnectionFactory.createConnection(conf);<a name="line.452"></a>
-<span class="sourceLineNo">453</span>    final AsyncConnection asyncCon = 
ConnectionFactory.createAsyncConnection(conf).get();<a name="line.453"></a>
-<span class="sourceLineNo">454</span>    for (int i = 0; i &lt; 
threads.length; i++) {<a name="line.454"></a>
-<span class="sourceLineNo">455</span>      final int index = i;<a 
name="line.455"></a>
-<span class="sourceLineNo">456</span>      threads[i] = pool.submit(new 
Callable&lt;RunResult&gt;() {<a name="line.456"></a>
-<span class="sourceLineNo">457</span>        @Override<a name="line.457"></a>
-<span class="sourceLineNo">458</span>        public RunResult call() throws 
Exception {<a name="line.458"></a>
-<span class="sourceLineNo">459</span>          TestOptions threadOpts = new 
TestOptions(opts);<a name="line.459"></a>
-<span class="sourceLineNo">460</span>          if (threadOpts.startRow == 0) 
threadOpts.startRow = index * threadOpts.perClientRunRows;<a 
name="line.460"></a>
-<span class="sourceLineNo">461</span>          RunResult run = 
runOneClient(cmd, conf, con, asyncCon, threadOpts, new Status() {<a 
name="line.461"></a>
-<span class="sourceLineNo">462</span>            @Override<a 
name="line.462"></a>
-<span class="sourceLineNo">463</span>            public void setStatus(final 
String msg) throws IOException {<a name="line.463"></a>
-<span class="sourceLineNo">464</span>              LOG.info(msg);<a 
name="line.464"></a>
-<span class="sourceLineNo">465</span>            }<a name="line.465"></a>
-<span class="sourceLineNo">466</span>          });<a name="line.466"></a>
-<span class="sourceLineNo">467</span>          LOG.info("Finished " + 
Thread.currentThread().getName() + " in " + run.duration +<a 
name="line.467"></a>
-<span class="sourceLineNo">468</span>            "ms over " + 
threadOpts.perClientRunRows + " rows");<a name="line.468"></a>
-<span class="sourceLineNo">469</span>          return run;<a 
name="line.469"></a>
-<span class="sourceLineNo">470</span>        }<a name="line.470"></a>
-<span class="sourceLineNo">471</span>      });<a name="line.471"></a>
-<span class="sourceLineNo">472</span>    }<a name="line.472"></a>
-<span class="sourceLineNo">473</span>    pool.shutdown();<a 
name="line.473"></a>
-<span class="sourceLineNo">474</span><a name="line.474"></a>
-<span class="sourceLineNo">475</span>    for (int i = 0; i &lt; 
threads.length; i++) {<a name="line.475"></a>
-<span class="sourceLineNo">476</span>      try {<a name="line.476"></a>
-<span class="sourceLineNo">477</span>        results[i] = threads[i].get();<a 
name="line.477"></a>
-<span class="sourceLineNo">478</span>      } catch (ExecutionException e) {<a 
name="line.478"></a>
-<span class="sourceLineNo">479</span>        throw new 
IOException(e.getCause());<a name="line.479"></a>
-<span class="sourceLineNo">480</span>      }<a name="line.480"></a>
-<span class="sourceLineNo">481</span>    }<a name="line.481"></a>
-<span class="sourceLineNo">482</span>    final String test = 
cmd.getSimpleName();<a name="line.482"></a>
-<span class="sourceLineNo">483</span>    LOG.info("[" + test + "] Summary of 
timings (ms): "<a name="line.483"></a>
-<span class="sourceLineNo">484</span>             + 
Arrays.toString(results));<a name="line.484"></a>
-<span class="sourceLineNo">485</span>    Arrays.sort(results);<a 
name="line.485"></a>
-<span class="sourceLineNo">486</span>    long total = 0;<a name="line.486"></a>
-<span class="sourceLineNo">487</span>    for (RunResult result : results) {<a 
name="line.487"></a>
-<span class="sourceLineNo">488</span>      total += result.duration;<a 
name="line.488"></a>
-<span class="sourceLineNo">489</span>    }<a name="line.489"></a>
-<span class="sourceLineNo">490</span>    LOG.info("[" + test + "]"<a 
name="line.490"></a>
-<span class="sourceLineNo">491</span>      + "\tMin: " + results[0] + "ms"<a 
name="line.491"></a>
-<span class="sourceLineNo">492</span>      + "\tMax: " + 
results[results.length - 1] + "ms"<a name="line.492"></a>
-<span class="sourceLineNo">493</span>      + "\tAvg: " + (total / 
results.length) + "ms");<a name="line.493"></a>
-<span class="sourceLineNo">494</span><a name="line.494"></a>
-<span class="sourceLineNo">495</span>    con.close();<a name="line.495"></a>
-<span class="sourceLineNo">496</span>    asyncCon.close();<a 
name="line.496"></a>
-<span class="sourceLineNo">497</span><a name="line.497"></a>
-<span class="sourceLineNo">498</span>    return results;<a name="line.498"></a>
-<span class="sourceLineNo">499</span>  }<a name="line.499"></a>
-<span class="sourceLineNo">500</span><a name="line.500"></a>
-<span class="sourceLineNo">501</span>  /*<a name="line.501"></a>
-<span class="sourceLineNo">502</span>   * Run a mapreduce job.  Run as many 
maps as asked-for clients.<a name="line.502"></a>
-<span class="sourceLineNo">503</span>   * Before we start up the job, write 
out an input file with instruction<a name="line.503"></a>
-<span class="sourceLineNo">504</span>   * per client regards which row they 
are to start on.<a name="line.504"></a>
-<span class="sourceLineNo">505</span>   * @param cmd Command to run.<a 
name="line.505"></a>
-<span class="sourceLineNo">506</span>   * @throws IOException<a 
name="line.506"></a>
-<span class="sourceLineNo">507</span>   */<a name="line.507"></a>
-<span class="sourceLineNo">508</span>  static Job doMapReduce(TestOptions 
opts, final Configuration conf)<a name="line.508"></a>
-<span class="sourceLineNo">509</span>      throws IOException, 
InterruptedException, ClassNotFoundException {<a name="line.509"></a>
-<span class="sourceLineNo">510</span>    final Class&lt;? extends TestBase&gt; 
cmd = determineCommandClass(opts.cmdName);<a name="line.510"></a>
-<span class="sourceLineNo">511</span>    assert cmd != null;<a 
name="line.511"></a>
-<span class="sourceLineNo">512</span>    Path inputDir = writeInputFile(conf, 
opts);<a name="line.512"></a>
-<span class="sourceLineNo">513</span>    conf.set(EvaluationMapTask.CMD_KEY, 
cmd.getName());<a name="line.513"></a>
-<span class="sourceLineNo">514</span>    conf.set(EvaluationMapTask.PE_KEY, 
PerformanceEvaluation.class.getName());<a name="line.514"></a>
-<span class="sourceLineNo">515</span>    Job job = Job.getInstance(conf);<a 
name="line.515"></a>
-<span class="sourceLineNo">516</span>    
job.setJarByClass(PerformanceEvaluation.class);<a name="line.516"></a>
-<span class="sourceLineNo">517</span>    job.setJobName("HBase Performance 
Evaluation - " + opts.cmdName);<a name="line.517"></a>
-<span class="sourceLineNo">518</span><a name="line.518"></a>
-<span class="sourceLineNo">519</span>    
job.setInputFormatClass(NLineInputFormat.class);<a name="line.519"></a>
-<span class="sourceLineNo">520</span>    NLineInputFormat.setInputPaths(job, 
inputDir);<a name="line.520"></a>
-<span class="sourceLineNo">521</span>    // this is default, but be explicit 
about it just in case.<a name="line.521"></a>
-<span class="sourceLineNo">522</span>    
NLineInputFormat.setNumLinesPerSplit(job, 1);<a name="line.522"></a>
-<span class="sourceLineNo">523</span><a name="line.523"></a>
-<span class="sourceLineNo">524</span>    
job.setOutputKeyClass(LongWritable.class);<a name="line.524"></a>
-<span class="sourceLineNo">525</span>    
job.setOutputValueClass(LongWritable.class);<a name="line.525"></a>
-<span class="sourceLineNo">526</span><a name="line.526"></a>
-<span class="sourceLineNo">527</span>    
job.setMapperClass(EvaluationMapTask.class);<a name="line.527"></a>
-<span class="sourceLineNo">528</span>    
job.setReducerClass(LongSumReducer.class);<a name="line.528"></a>
-<span class="sourceLineNo">529</span><a name="line.529"></a>
-<span class="sourceLineNo">530</span>    job.setNumReduceTasks(1);<a 
name="line.530"></a>
-<span class="sourceLineNo">531</span><a name="line.531"></a>
-<span class="sourceLineNo">532</span>    
job.setOutputFormatClass(TextOutputFormat.class);<a name="line.532"></a>
-<span class="sourceLineNo">533</span>    TextOutputFormat.setOutputPath(job, 
new Path(inputDir.getParent(), "outputs"));<a name="line.533"></a>
-<span class="sourceLineNo">534</span><a name="line.534"></a>
-<span class="sourceLineNo">535</span>    
TableMapReduceUtil.addDependencyJars(job);<a name="line.535"></a>
-<span class="sourceLineNo">536</span>    
TableMapReduceUtil.addDependencyJarsForClasses(job.getConfiguration(),<a 
name="line.536"></a>
-<span class="sourceLineNo">537</span>      Histogram.class,     // yammer 
metrics<a name="line.537"></a>
-<span class="sourceLineNo">538</span>      ObjectMapper.class,  // 
jackson-mapper-asl<a name="line.538"></a>
-<span class="sourceLineNo">539</span>      FilterAllFilter.class // 
hbase-server tests jar<a name="line.539"></a>
-<span class="sourceLineNo">540</span>      );<a name="line.540"></a>
-<span class="sourceLineNo">541</span><a name="line.541"></a>
-<span class="sourceLineNo">542</span>    
TableMapReduceUtil.initCredentials(job);<a name="line.542"></a>
-<span class="sourceLineNo">543</span><a name="line.543"></a>
-<span class="sourceLineNo">544</span>    job.waitForCompletion(true);<a 
name="line.544"></a>
-<span class="sourceLineNo">545</span>    return job;<a name="line.545"></a>
-<span class="sourceLineNo">546</span>  }<a name="line.546"></a>
-<span class="sourceLineNo">547</span><a name="line.547"></a>
-<span class="sourceLineNo">548</span>  /**<a name="line.548"></a>
-<span class="sourceLineNo">549</span>   * Each client has one mapper to do the 
work,  and client do the resulting count in a map task.<a name="line.549"></a>
-<span class="sourceLineNo">550</span>   */<a name="line.550"></a>
-<span class="sourceLineNo">551</span><a name="line.551"></a>
-<span class="sourceLineNo">552</span>  static String JOB_INPUT_FILENAME = 
"input.txt";<a name="line.552"></a>
-<span class="sourceLineNo">553</span><a name="line.553"></a>
-<span class="sourceLineNo">554</span>  /*<a name="line.554"></a>
-<span class="sourceLineNo">555</span>   * Write input file of 
offsets-per-client for the mapreduce job.<a name="line.555"></a>
-<span class="sourceLineNo">556</span>   * @param c Configuration<a 
name="line.556"></a>
-<span class="sourceLineNo">557</span>   * @return Directory that contains file 
written whose name is JOB_INPUT_FILENAME<a name="line.557"></a>
-<span class="sourceLineNo">558</span>   * @throws IOException<a 
name="line.558"></a>
-<span class="sourceLineNo">559</span>   */<a name="line.559"></a>
-<span class="sourceLineNo">560</span>  static Path writeInputFile(final 
Configuration c, final TestOptions opts) throws IOException {<a 
name="line.560"></a>
-<span class="sourceLineNo">561</span>    return writeInputFile(c, opts, new 
Path("."));<a name="line.561"></a>
-<span class="sourceLineNo">562</span>  }<a name="line.562"></a>
-<span class="sourceLineNo">563</span><a name="line.563"></a>
-<span class="sourceLineNo">564</span>  static Path writeInputFile(final 
Configuration c, final TestOptions opts, final Path basedir)<a 
name="line.564"></a>
-<span class="sourceLineNo">565</span>  throws IOException {<a 
name="line.565"></a>
-<span class="sourceLineNo">566</span>    SimpleDateFormat formatter = new 
SimpleDateFormat("yyyyMMddHHmmss");<a name="line.566"></a>
-<span class="sourceLineNo">567</span>    Path jobdir = new Path(new 
Path(basedir, PERF_EVAL_DIR), formatter.format(new Date()));<a 
name="line.567"></a>
-<span class="sourceLineNo">568</span>    Path inputDir = new Path(jobdir, 
"inputs");<a name="line.568"></a>
-<span class="sourceLineNo">569</span><a name="line.569"></a>
-<span class="sourceLineNo">570</span>    FileSystem fs = FileSystem.get(c);<a 
name="line.570"></a>
-<span class="sourceLineNo">571</span>    fs.mkdirs(inputDir);<a 
name="line.571"></a>
-<span class="sourceLineNo">572</span><a name="line.572"></a>
-<span class="sourceLineNo">573</span>    Path inputFile = new Path(inputDir, 
JOB_INPUT_FILENAME);<a name="line.573"></a>
-<span class="sourceLineNo">574</span>    PrintStream out = new 
PrintStream(fs.create(inputFile));<a name="line.574"></a>
-<span class="sourceLineNo">575</span>    // Make input random.<a 
name="line.575"></a>
-<span class="sourceLineNo">576</span>    Map&lt;Integer, String&gt; m = new 
TreeMap&lt;&gt;();<a name="line.576"></a>
-<span class="sourceLineNo">577</span>    Hash h = MurmurHash.getInstance();<a 
name="line.577"></a>
-<span class="sourceLineNo">578</span>    int perClientRows = (opts.totalRows / 
opts.numClientThreads);<a name="line.578"></a>
-<span class="sourceLineNo">579</span>    try {<a name="line.579"></a>
-<span class="sourceLineNo">580</span>      for (int j = 0; j &lt; 
opts.numClientThreads; j++) {<a name="line.580"></a>
-<span class="sourceLineNo">581</span>        TestOptions next = new 
TestOptions(opts);<a name="line.581"></a>
-<span class="sourceLineNo">582</span>        next.startRow = j * 
perClientRows;<a name="line.582"></a>
-<span class="sourceLineNo">583</span>        next.perClientRunRows = 
perClientRows;<a name="line.583"></a>
-<span class="sourceLineNo">584</span>        String s = 
MAPPER.writeValueAsString(next);<a name="line.584"></a>
-<span class="sourceLineNo">585</span>        LOG.info("Client=" + j + ", 
input=" + s);<a name="line.585"></a>
-<span class="sourceLineNo">586</span>        byte[] b = Bytes.toBytes(s);<a 
name="line.586"></a>
-<span class="sourceLineNo">587</span>        int hash = h.hash(new 
ByteArrayHashKey(b, 0, b.length), -1);<a name="line.587"></a>
-<span class="sourceLineNo">588</span>        m.put(hash, s);<a 
name="line.588"></a>
-<span class="sourceLineNo">589</span>      }<a name="line.589"></a>
-<span class="sourceLineNo">590</span>      for (Map.Entry&lt;Integer, 
String&gt; e: m.entrySet()) {<a name="line.590"></a>
-<span class="sourceLineNo">591</span>        out.println(e.getValue());<a 
name="line.591"></a>
-<span class="sourceLineNo">592</span>      }<a name="line.592"></a>
-<span class="sourceLineNo">593</span>    } finally {<a name="line.593"></a>
-<span class="sourceLineNo">594</span>      out.close();<a name="line.594"></a>
-<span class="sourceLineNo">595</span>    }<a name="line.595"></a>
-<span class="sourceLineNo">596</span>    return inputDir;<a 
name="line.596"></a>
-<span class="sourceLineNo">597</span>  }<a name="line.597"></a>
-<span class="sourceLineNo">598</span><a name="line.598"></a>
-<span class="sourceLineNo">599</span>  /**<a name="line.599"></a>
-<span class="sourceLineNo">600</span>   * Describes a command.<a 
name="line.600"></a>
-<span class="sourceLineNo">601</span>   */<a name="line.601"></a>
-<span class="sourceLineNo">602</span>  static class CmdDescriptor {<a 
name="line.602"></a>
-<span class="sourceLineNo">603</span>    private Class&lt;? extends 
TestBase&gt; cmdClass;<a name="line.603"></a>
-<span class="sourceLineNo">604</span>    private String name;<a 
name="line.604"></a>
-<span class="sourceLineNo">605</span>    private String description;<a 
name="line.605"></a>
-<span class="sourceLineNo">606</span><a name="line.606"></a>
-<span class="sourceLineNo">607</span>    CmdDescriptor(Class&lt;? extends 
TestBase&gt; cmdClass, String name, String description) {<a name="line.607"></a>
-<span class="sourceLineNo">608</span>      this.cmdClass = cmdClass;<a 
name="line.608"></a>
-<span class="sourceLineNo">609</span>      this.name = name;<a 
name="line.609"></a>
-<span class="sourceLineNo">610</span>      this.description = description;<a 
name="line.610"></a>
-<span class="sourceLineNo">611</span>    }<a name="line.611"></a>
-<span class="sourceLineNo">612</span><a name="line.612"></a>
-<span class="sourceLineNo">613</span>    public Class&lt;? extends 
TestBase&gt; getCmdClass() {<a name="line.613"></a>
-<span class="sourceLineNo">614</span>      return cmdClass;<a 
name="line.614"></a>
-<span class="sourceLineNo">615</span>    }<a name="line.615"></a>
-<span class="sourceLineNo">616</span><a name="line.616"></a>
-<span class="sourceLineNo">617</span>    public String getName() {<a 
name="line.617"></a>
-<span class="sourceLineNo">618</span>      return name;<a name="line.618"></a>
-<span class="sourceLineNo">619</span>    }<a name="line.619"></a>
-<span class="sourceLineNo">620</span><a name="line.620"></a>
-<span class="sourceLineNo">621</span>    public String getDescription() {<a 
name="line.621"></a>
-<span class="sourceLineNo">622</span>      return description;<a 
name="line.622"></a>
-<span class="sourceLineNo">623</span>    }<a name="line.623"></a>
-<span class="sourceLineNo">624</span>  }<a name="line.624"></a>
-<span class="sourceLineNo">625</span><a name="line.625"></a>
-<span class="sourceLineNo">626</span>  /**<a name="line.626"></a>
-<span class="sourceLineNo">627</span>   * Wraps up options passed to {@link 
org.apache.hadoop.hbase.PerformanceEvaluation}.<a name="line.627"></a>
-<span class="sourceLineNo">628</span>   * This makes tracking all these 
arguments a little easier.<a name="line.628"></a>
-<span class="sourceLineNo">629</span>   * NOTE: ADDING AN OPTION, you need to 
add a data member, a getter/setter (to make JSON<a name="line.629"></a>
-<span class="sourceLineNo">630</span>   * serialization of this TestOptions 
class behave), and you need to add to the clone constructor<a 
name="line.630"></a>
-<span class="sourceLineNo">631</span>   * below copying your new option from 
the 'that' to the 'this'.  Look for 'clone' below.<a name="line.631"></a>
-<span class="sourceLineNo">632</span>   */<a name="line.632"></a>
-<span class="sourceLineNo">633</span>  static class TestOptions {<a 
name="line.633"></a>
-<span class="sourceLineNo">634</span>    String cmdName = null;<a 
name="line.634"></a>
-<span class="sourceLineNo">635</span>    boolean nomapred = false;<a 
name="line.635"></a>
-<span class="sourceLineNo">636</span>    boolean filterAll = false;<a 
name="line.636"></a>
-<span class="sourceLineNo">637</span>    int startRow = 0;<a 
name="line.637"></a>
-<span class="sourceLineNo">638</span>    float size = 1.0f;<a 
name="line.638"></a>
-<span class="sourceLineNo">639</span>    int perClientRunRows = 
DEFAULT_ROWS_PER_GB;<a name="line.639"></a>
-<span class="sourceLineNo">640</span>    int numClientThreads = 1;<a 
name="line.640"></a>
-<span class="sourceLineNo">641</span>    int totalRows = 
DEFAULT_ROWS_PER_GB;<a name="line.641"></a>
-<span class="sourceLineNo">642</span>    int measureAfter = 0;<a 
name="line.642"></a>
-<span class="sourceLineNo">643</span>    float sampleRate = 1.0f;<a 
name="line.643"></a>
-<span class="sourceLineNo">644</span>    double traceRate = 0.0;<a 
name="line.644"></a>
-<span class="sourceLineNo">645</span>    String tableName = TABLE_NAME;<a 
name="line.645"></a>
-<span class="sourceLineNo">646</span>    boolean flushCommits = true;<a 
name="line.646"></a>
-<span class="sourceLineNo">647</span>    boolean writeToWAL = true;<a 
name="line.647"></a>
-<span class="sourceLineNo">648</span>    boolean autoFlush = false;<a 
name="line.648"></a>
-<span class="sourceLineNo">649</span>    boolean oneCon = false;<a 
name="line.649"></a>
-<span class="sourceLineNo">650</span>    boolean useTags = false;<a 
name="line.650"></a>
-<span class="sourceLineNo">651</span>    int noOfTags = 1;<a 
name="line.651"></a>
-<span class="sourceLineNo">652</span>    boolean reportLatency = false;<a 
name="line.652"></a>
-<span class="sourceLineNo">653</span>    int multiGet = 0;<a 
name="line.653"></a>
-<span class="sourceLineNo">654</span>    int randomSleep = 0;<a 
name="line.654"></a>
-<span class="sourceLineNo">655</span>    boolean inMemoryCF = false;<a 
name="line.655"></a>
-<span class="sourceLineNo">656</span>    int presplitRegions = 0;<a 
name="line.656"></a>
-<span class="sourceLineNo">657</span>    int replicas = 
HTableDescriptor.DEFAULT_REGION_REPLICATION;<a name="line.657"></a>
-<span class="sourceLineNo">658</span>    String splitPolicy = null;<a 
name="line.658"></a>
-<span class="sourceLineNo">659</span>    Compression.Algorithm compression = 
Compression.Algorithm.NONE;<a name="line.659"></a>
-<span class="sourceLineNo">660</span>    BloomType bloomType = 
BloomType.ROW;<a name="line.660"></a>
-<span class="sourceLineNo">661</span>    int blockSize = 
HConstants.DEFAULT_BLOCKSIZE;<a name="line.661"></a>
-<span class="sourceLineNo">662</span>    DataBlockEncoding blockEncoding = 
DataBlockEncoding.NONE;<a name="line.662"></a>
-<span class="sourceLineNo">663</span>    boolean valueRandom = false;<a 
name="line.663"></a>
-<span class="sourceLineNo">664</span>    boolean valueZipf = false;<a 
name="line.664"></a>
-<span class="sourceLineNo">665</span>    int valueSize = 
DEFAULT_VALUE_LENGTH;<a name="line.665"></a>
-<span class="sourceLineNo">666</span>    int period = (this.perClientRunRows / 
10) == 0? perClientRunRows: perClientRunRows / 10;<a name="line.666"></a>
-<span class="sourceLineNo">667</span>    int cycles = 1;<a name="line.667"></a>
-<span class="sourceLineNo">668</span>    int columns = 1;<a 
name="line.668"></a>
-<span class="sourceLineNo">669</span>    int families = 1;<a 
name="line.669"></a>
-<span class="sourceLineNo">670</span>    int caching = 30;<a 
name="line.670"></a>
-<span class="sourceLineNo">671</span>    boolean addColumns = true;<a 
name="line.671"></a>
-<span class="sourceLineNo">672</span>    MemoryCompactionPolicy 
inMemoryCompaction =<a name="line.672"></a>
-<span class="sourceLineNo">673</span>        MemoryCompactionPolicy.valueOf(<a 
name="line.673"></a>
-<span class="sourceLineNo">674</span>            
CompactingMemStore.COMPACTING_MEMSTORE_TYPE_DEFAULT);<a name="line.674"></a>
-<span class="sourceLineNo">675</span>    boolean asyncPrefetch = false;<a 
name="line.675"></a>
-<span class="sourceLineNo">676</span>    boolean cacheBlocks = true;<a 
name="line.676"></a>
-<span class="sourceLineNo">677</span>    Scan.ReadType scanReadType = 
Scan.ReadType.DEFAULT;<a name="line.677"></a>
-<span class="sourceLineNo">678</span>    long bufferSize = 2l * 1024l * 
1024l;<a name="line.678"></a>
-<span class="sourceLineNo">679</span><a name="line.679"></a>
-<span class="sourceLineNo">680</span>    public TestOptions() {}<a 
name="line.680"></a>
-<span class="sourceLineNo">681</span><a name="line.681"></a>
-<span class="sourceLineNo">682</span>    /**<a name="line.682"></a>
-<span class="sourceLineNo">683</span>     * Clone constructor.<a 
name="line.683"></a>
-<span class="sourceLineNo">684</span>     * @param that Object to copy from.<a 
name="line.684"></a>
-<span class="sourceLineNo">685</span>     */<a name="line.685"></a>
-<span class="sourceLineNo">686</span>    public TestOptions(TestOptions that) 
{<a name="line.686"></a>
-<span class="sourceLineNo">687</span>      this.cmdName = that.cmdName;<a 
name="line.687"></a>
-<span class="sourceLineNo">688</span>      this.cycles = that.cycles;<a 
name="line.688"></a>
-<span class="sourceLineNo">689</span>      this.nomapred = that.nomapred;<a 
name="line.689"></a>
-<span class="sourceLineNo">690</span>      this.startRow = that.startRow;<a 
name="line.690"></a>
-<span class="sourceLineNo">691</span>      this.size = that.size;<a 
name="line.691"></a>
-<span class="sourceLineNo">692</span>      this.perClientRunRows = 
that.perClientRunRows;<a name="line.692"></a>
-<span class="sourceLineNo">693</span>      this.numClientThreads = 
that.numClientThreads;<a name="line.693"></a>
-<span class="sourceLineNo">694</span>      this.totalRows = that.totalRows;<a 
name="line.694"></a>
-<span class="sourceLineNo">695</span>      this.sampleRate = 
that.sampleRate;<a name="line.695"></a>
-<span class="sourceLineNo">696</span>      this.traceRate = that.traceRate;<a 
name="line.696"></a>
-<span class="sourceLineNo">697</span>      this.tableName = that.tableName;<a 
name="line.697"></a>
-<span class="sourceLineNo">698</span>      this.flushCommits = 
that.flushCommits;<a name="line.698"></a>
-<span class="sourceLineNo">699</span>      this.writeToWAL = 
that.writeToWAL;<a name="line.699"></a>
-<span class="sourceLineNo">700</span>      this.autoFlush = that.autoFlush;<a 
name="line.700"></a>
-<span class="sourceLineNo">701</span>      this.oneCon = that.oneCon;<a 
name="line.701"></a>
-<span class="sourceLineNo">702</span>      this.useTags = that.useTags;<a 
name="line.702"></a>
-<span class="sourceLineNo">703</span>      this.noOfTags = that.noOfTags;<a 
name="line.703"></a>
-<span class="sourceLineNo">704</span>      this.reportLatency = 
that.reportLatency;<a name="line.704"></a>
-<span class="sourceLineNo">705</span>      this.multiGet = that.multiGet;<a 
name="line.705"></a>
-<span class="sourceLineNo">706</span>      this.inMemoryCF = 
that.inMemoryCF;<a name="line.706"></a>
-<span class="sourceLineNo">707</span>      this.presplitRegions = 
that.presplitRegions;<a name="line.707"></a>
-<span class="sourceLineNo">708</span>      this.replicas = that.replicas;<a 
name="line.708"></a>
-<span class="sourceLineNo">709</span>      this.splitPolicy = 
that.splitPolicy;<a name="line.709"></a>
-<span class="sourceLineNo">710</span>      this.compression = 
that.compression;<a name="line.710"></a>
-<span class="sourceLineNo">711</span>      this.blockEncoding = 
that.blockEncoding;<a name="line.711"></a>
-<span class="sourceLineNo">712</span>      this.filterAll = that.filterAll;<a 
name="line.712"></a>
-<span class="sourceLineNo">713</span>      this.bloomType = that.bloomType;<a 
name="line.713"></a>
-<span class="sourceLineNo">714</span>      this.blockSize = that.blockSize;<a 
name="line.714"></a>
-<span class="sourceLineNo">715</span>      this.valueRandom = 
that.valueRandom;<a name="line.715"></a>
-<span class="sourceLineNo">716</span>      this.valueZipf = that.valueZipf;<a 
name="line.716"></a>
-<span class="sourceLineNo">717</span>      this.valueSize = that.valueSize;<a 
name="line.717"></a>
-<span class="sourceLineNo">718</span>      this.period = that.period;<a 
name="line.718"></a>
-<span class="sourceLineNo">719</span>      this.randomSleep = 
that.randomSleep;<a name="line.719"></a>
-<span class="sourceLineNo">720</span>      this.measureAfter = 
that.measureAfter;<a name="line.720"></a>
-<span class="sourceLineNo">721</span>      this.addColumns = 
that.addColumns;<a name="line.721"></a>
-<span class="sourceLineNo">722</span>      this.columns = that.columns;<a 
name="line.722"></a>
-<span class="sourceLineNo">723</span>      this.families = that.families;<a 
name="line.723"></a>
-<span class="sourceLineNo">724</span>      this.caching = that.caching;<a 
name="line.724"></a>
-<span class="sourceLineNo">725</span>      this.inMemoryCompaction = 
that.inMemoryCompaction;<a name="line.725"></a>
-<span class="sourceLineNo">726</span>      this.asyncPrefetch = 
that.asyncPrefetch;<a name="line.726"></a>
-<span class="sourceLineNo">727</span>      this.cacheBlocks = 
that.cacheBlocks;<a name="line.727"></a>
-<span class="sourceLineNo">728</span>      this.scanReadType = 
that.scanReadType;<a name="line.728"></a>
-<span class="sourceLineNo">729</span>      this.bufferSize = 
that.bufferSize;<a name="line.729"></a>
-<span class="sourceLineNo">730</span>    }<a name="line.730"></a>
-<span class="sourceLineNo">731</span><a name="line.731"></a>
-<span class="sourceLineNo">732</span>    public int getCaching() {<a 
name="line.732"></a>
-<span class="sourceLineNo">733</span>      return this.caching;<a 
name="line.733"></a>
-<span class="sourceLineNo">734</span>    }<a name="line.734"></a>
-<span class="sourceLineNo">735</span><a name="line.735"></a>
-<span class="sourceLineNo">736</span>    public void setCaching(final int 
caching) {<a name="line.736"></a>
-<span class="sourceLineNo">737</span>      this.caching = caching;<a 
name="line.737"></a>
-<span class="sourceLineNo">738</span>    }<a name="line.738"></a>
-<span class="sourceLineNo">739</span><a name="line.739"></a>
-<span class="sourceLineNo">740</span>    public int getColumns() {<a 
name="line.740"></a>
-<span class="sourceLineNo">741</span>      return this.columns;<a 
name="line.741"></a>
-<span class="sourceLineNo">742</span>    }<a name="line.742"></a>
-<span class="sourceLineNo">743</span><a name="line.743"></a>
-<span class="sourceLineNo">744</span>    public void setColumns(final int 
columns) {<a name="line.744"></a>
-<span class="sourceLineNo">745</span>      this.columns = columns;<a 
name="line.745"></a>
-<span class="sourceLineNo">746</span>    }<a name="line.746"></a>
-<span class="sourceLineNo">747</span><a name="line.747"></a>
-<span class="sourceLineNo">748</span>    public int getFamilies() {<a 
name="line.748"></a>
-<span class="sourceLineNo">749</span>      return this.families;<a 
name="line.749"></a>
-<span class="sourceLineNo">750</span>    }<a name="line.750"></a>
-<span class="sourceLineNo">751</span><a name="line.751"></a>
-<span class="sourceLineNo">752</span>    public void setFamilies(final int 
families) {<a name="line.752"></a>
-<span class="sourceLineNo">753</span>      this.families = families;<a 
name="line.753"></a>
-<span class="sourceLineNo">754</span>    }<a name="line.754"></a>
-<span class="sourceLineNo">755</span><a name="line.755"></a>
-<span class="sourceLineNo">756</span>    public int getCycles() {<a 
name="line.756"></a>
-<span class="sourceLineNo">757</span>      return this.cycles;<a 
name="line.757"></a>
-<span class="sourceLineNo">758</span>    }<a name="line.758"></a>
-<span class="sourceLineNo">759</span><a name="line.759"></a>
-<span class="sourceLineNo">760</span>    public void setCycles(final int 
cycles) {<a name="line.760"></a>
-<span class="sourceLineNo">761</span>      this.cycles = cycles;<a 
name="line.761"></a>
-<span class="sourceLineNo">762</span>    }<a name="line.762"></a>
-<span class="sourceLineNo">763</span><a name="line.763"></a>
-<span class="sourceLineNo">764</span>    public boolean isValueZipf() {<a 
name="line.764"></a>
-<span class="sourceLineNo">765</span>      return valueZipf;<a 
name="line.765"></a>
-<span class="sourceLineNo">766</span>    }<a name="line.766"></a>
-<span class="sourceLineNo">767</span><a name="line.767"></a>
-<span class="sourceLineNo">768</span>    public void setValueZipf(boolean 
valueZipf) {<a name="line.768"></a>
-<span class="sourceLineNo">769</span>      this.valueZipf = valueZipf;<a 
name="line.769"></a>
-<span class="sourceLineNo">770</span>    }<a name="line.770"></a>
-<span class="sourceLineNo">771</span><a name="line.771"></a>
-<span class="sourceLineNo">772</span>    public String getCmdName() {<a 
name="line.772"></a>
-<span class="sourceLineNo">773</span>      return cmdName;<a 
name="line.773"></a>
-<span class="sourceLineNo">774</span>    }<a name="line.774"></a>
-<span class="sourceLineNo">775</span><a name="line.775"></a>
-<span class="sourceLineNo">776</span>    public void setCmdName(String 
cmdName) {<a name="line.776"></a>
-<span class="sourceLineNo">777</span>      this.cmdName = cmdName;<a 
name="line.777"></a>
-<span class="sourceLineNo">778</span>    }<a name="line.778"></a>
-<span class="sourceLineNo">779</span><a name="line.779"></a>
-<span class="sourceLineNo">780</span>    public int getRandomSleep() {<a 
name="line.780"></a>
-<span class="sourceLineNo">781</span>      return randomSleep;<a 
name="line.781"></a>
-<span class="sourceLineNo">782</span>    }<a name="line.782"></a>
-<span class="sourceLineNo">783</span><a name="line.783"></a>
-<span class="sourceLineNo">784</span>    public void setRandomSleep(int 
randomSleep) {<a name="line.784"></a>
-<span class="sourceLineNo">785</span>      this.randomSleep = randomSleep;<a 
name="line.785"></a>
-<span class="sourceLineNo">786</span>    }<a name="line.786"></a>
-<span class="sourceLineNo">787</span><a name="line.787"></a>
-<span class="sourceLineNo">788</span>    public int getReplicas() {<a 
name="line.788"></a>
-<span class="sourceLineNo">789</span>      return replicas;<a 
name="line.789"></a>
-<span class="sourceLineNo">790</span>    }<a name="line.790"></a>
-<span class="sourceLineNo">791</span><a name="line.791"></a>
-<span class="sourceLineNo">792</span>    public void setReplicas(int replicas) 
{<a name="line.792"></a>
-<span class="sourceLineNo">793</span>      this.replicas = replicas;<a 
name="line.793"></a>
-<span class="sourceLineNo">794</span>    }<a name="line.794"></a>
-<span class="sourceLineNo">795</span><a name="line.795"></a>
-<span class="sourceLineNo">796</span>    public String getSplitPolicy() {<a 
name="line.796"></a>
-<span class="sourceLineNo">797</span>      return splitPolicy;<a 
name="line.797"></a>
-<span class="sourceLineNo">798</span>    }<a name="line.798"></a>
-<span class="sourceLineNo">799</span><a name="line.799"></a>
-<span class="sourceLineNo">800</span>    public void setSplitPolicy(String 
splitPolicy) {<a name="line.800"></a>
-<span class="sourceLineNo">801</span>      this.splitPolicy = splitPolicy;<a 
name="line.801"></a>
-<span class="sourceLineNo">802</span>    }<a name="line.802"></a>
-<span class="sourceLineNo">803</span><a name="line.803"></a>
-<span class="sourceLineNo">804</span>    public void setNomapred(boolean 
nomapred) {<a name="line.804"></a>
-<span class="sourceLineNo">805</span>      this.nomapred = nomapred;<a 
name="line.805"></a>
-<span class="sourceLineNo">806</span>    }<a name="line.806"></a>
-<span class="sourceLineNo">807</span><a name="line.807"></a>
-<span class="sourceLineNo">808</span>    public void setFilterAll(boolean 
filterAll) {<a name="line.808"></a>
-<span class="sourceLineNo">809</span>      this.filterAll = filterAll;<a 
name="line.809"></a>
-<span class="sourceLineNo">810</span>    }<a name="line.810"></a>
-<span class="sourceLineNo">811</span><a name="line.811"></a>
-<span class="sourceLineNo">812</span>    public void setStartRow(int startRow) 
{<a name="line.812"></a>
-<span class="sourceLineNo">813</span>      this.startRow = startRow;<a 
name="line.813"></a>
-<span class="sourceLineNo">814</span>    }<a name="line.814"></a>
-<span class="sourceLineNo">815</span><a name="line.815"></a>
-<span class="sourceLineNo">816</span>    public void setSize(float size) {<a 
name="line.816"></a>
-<span class="sourceLineNo">817</span>      this.size = size;<a 
name="line.817"></a>
-<span class="sourceLineNo">818</span>    }<a name="line.818"></a>
-<span class="sourceLineNo">819</span><a name="line.819"></a>
-<span class="sourceLineNo">820</span>    public void setPerClientRunRows(int 
perClientRunRows) {<a name="line.820"></a>
-<span class="sourceLineNo">821</span>      this.perClientRunRows = 
perClientRunRows;<a name="line.821"></a>
-<span class="sourceLineNo">822</span>    }<a name="line.822"></a>
-<span class="sourceLineNo">823</span><a name="line.823"></a>
-<span class="sourceLineNo">824</span>    public void setNumClientThreads(int 
numClientThreads) {<a name="line.824"></a>
-<span class="sourceLineNo">825</span>      this.numClientThreads = 
numClientThreads;<a name="line.825"></a>
-<span class="sourceLineNo">826</span>    }<a name="line.826"></a>
-<span class="sourceLineNo">827</span><a name="line.827"></a>
-<span class="sourceLineNo">828</span>    public void setTotalRows(int 
totalRows) {<a name="line.828"></a>
-<span class="sourceLineNo">829</span>      this.totalRows = totalRows;<a 
name="line.829"></a>
-<span class="sourceLineNo">830</span>    }<a name="line.830"></a>
-<span class="sourceLineNo">831</span><a name="line.831"></a>
-<span class="sourceLineNo">832</span>    public void setSampleRate(float 
sampleRate) {<a name="line.832"></a>
-<span class="sourceLineNo">833</span>      this.sampleRate = sampleRate;<a 
name="line.833"></a>
-<span class="sourceLineNo">834</span>    }<a name="line.834"></a>
-<span class="sourceLineNo">835</span><a name="line.835"></a>
-<span class="sourceLineNo">836</span>    public void setTraceRate(double 
traceRate) {<a name="line.836"></a>
-<span class="sourceLineNo">837</span>      this.traceRate = traceRate;<a 
name="line.837"></a>
-<span class="sourceLineNo">838</span>    }<a name="line.838"></a>
-<span class="sourceLineNo">839</span><a name="line.839"></a>
-<span class="sourceLineNo">840</span>    public void setTableName(String 
tableName) {<a name="line.840"></a>
-<span class="sourceLineNo">841</span>      this.tableName = tableName;<a 
name="line.841"></a>
-<span class="sourceLineNo">842</span>    }<a name="line.842"></a>
-<span class="sourceLineNo">843</span><a name="line.843"></a>
-<span class="sourceLineNo">844</span>    public void setFlushCommits(boolean 
flushCommits) {<a name="line.844"></a>
-<span class="sourceLineNo">845</span>      this.flushCommits = flushCommits;<a 
name="line.845"></a>
-<span class="sourceLineNo">846</span>    }<a name="line.846"></a>
-<span class="sourceLineNo">847</span><a name="line.847"></a>
-<span class="sourceLineNo">848</span>    public void setWriteToWAL(boolean 
writeToWAL) {<a name="line.848"></a>
-<span class="sourceLineNo">849</span>      this.writeToWAL = writeToWAL;<a 
name="line.849"></a>
-<span class="sourceLineNo">850</span>    }<a name="line.850"></a>
-<span class="sourceLineNo">851</span><a name="line.851"></a>
-<span class="sourceLineNo">852</span>    public void setAutoFlush(boolean 
autoFlush) {<a name="line.852"></a>
-<span class="sourceLineNo">853</span>      this.autoFlush = autoFlush;<a 
name="line.853"></a>
-<span class="sourceLineNo">854</span>    }<a name="line.854"></a>
-<span class="sourceLineNo">855</span><a name="line.855"></a>
-<span class="sourceLineNo">856</span>    public void setOneCon(boolean oneCon) 
{<a name="line.856"></a>
-<span class="sourceLineNo">857</span>      this.oneCon = oneCon;<a 
name="line.857"></a>
-<span class="sourceLineNo">858</span>    }<a name="line.858"></a>
-<span class="sourceLineNo">859</span><a name="line.859"></a>
-<span class="sourceLineNo">860</span>    public void setUseTags(boolean 
useTags) {<a name="line.860"></a>
-<span class="sourceLineNo">861</span>      this.useTags = useTags;<a 
name="line.861"></a>
-<span class="sourceLineNo">862</span>    }<a name="line.862"></a>
-<span class="sourceLineNo">863</span><a name="line.863"></a>
-<span class="sourceLineNo">864</span>    public void setNoOfTags(int noOfTags) 
{<a name="line.864"></a>
-<span class="sourceLineNo">865</span>      this.noOfTags = noOfTags;<a 
name="line.865"></a>
-<span class="sourceLineNo">866</span>    }<a name="line.866"></a>
-<span class="sourceLineNo">867</span><a name="line.867"></a>
-<span class="sourceLineNo">868</span>    public void setReportLatency(boolean 
reportLatency) {<a name="line.868"></a>
-<span class="sourceLineNo">869</span>      this.reportLatency = 
reportLatency;<a name="line.869"></a>
-<span class="sourceLineNo">870</span>    }<a name="line.870"></a>
-<span class="sourceLineNo">871</span><a name="line.871"></a>
-<span class="sourceLineNo">872</span>    public void setMultiGet(int multiGet) 
{<a name="line.872"></a>
-<span class="sourceLineNo">873</span>      this.multiGet = multiGet;<a 
name="line.873"></a>
-<span class="sourceLineNo">874</span>    }<a name="line.874"></a>
-<span class="sourceLineNo">875</span><a name="line.875"></a>
-<span class="sourceLineNo">876</span>    public void setInMemoryCF(boolean 
inMemoryCF) {<a name="line.876"></a>
-<span class="sourceLineNo">877</span>      this.inMemoryCF = inMemoryCF;<a 
name="line.877"></a>
-<span class="sourceLineNo">878</span>    }<a name="line.878"></a>
-<span class="sourceLineNo">879</span><a name="line.879"></a>
-<span class="sourceLineNo">880</span>    public void setPresplitRegions(int 
presplitRegions) {<a name="line.880"></a>
-<span class="sourceLineNo">881</span>      this.presplitRegions = 
presplitRegions;<a name="line.881"></a>
-<span class="sourceLineNo">882</span>    }<a name="line.882"></a>
-<span class="sourceLineNo">883</span><a name="line.883"></a>
-<span class="sourceLineNo">884</span>    public void 
setCompression(Compression.Algorithm compression) {<a name="line.884"></a>
-<span class="sourceLineNo">885</span>      this.compression = compression;<a 
name="line.885"></a>
-<span class="sourceLineNo">886</span>    }<a name="line.886"></a>
-<span class="sourceLineNo">887</span><a name="line.887"></a>
-<span class="sourceLineNo">888</span>    public void setBloomType(BloomType 
bloomType) {<a name="line.888"></a>
-<span class="sourceLineNo">889</span>      this.bloomType = bloomType;<a 
name="line.889"></a>
-<span class="sourceLineNo">890</span>    }<a name="line.890"></a>
-<span class="sourceLineNo">891</span><a name="line.891"></a>
-<span class="sourceLineNo">892</span>    public void setBlockSize(int 
blockSize) {<a name="line.892"></a>
-<span class="sourceLineNo">893</span>      this.blockSize = blockSize;<a 
name="line.893"></a>
-<span class="sourceLineNo">894</span>    }<a name="line.894"></a>
-<span class="sourceLineNo">895</span><a name="line.895"></a>
-<span class="sourceLineNo">896</span>    public void 
setBlockEncoding(DataBlockEncoding blockEncoding) {<a name="line.896"></a>
-<span class="sourceLineNo">897</span>      this.blockEncoding = 
blockEncoding;<a name="line.897"></a>
-<span class="sourceLineNo">898</span>    }<a name="line.898"></a>
-<span class="sourceLineNo">899</span><a name="line.899"></a>
-<span class="sourceLineNo">900</span>    public void setValueRandom(boolean 
valueRandom) {<a name="line.900"></a>
-<span class="sourceLineNo">901</span>      this.valueRandom = valueRandom;<a 
name="line.901"></a>
-<span class="sourceLineNo">902</span>    }<a name="line.902"></a>
-<span class="sourceLineNo">903</span><a name="line.903"></a>
-<span class="sourceLineNo">904</span>    public void setValueSize(int 
valueSize) {<a name="line.904"></a>
-<span class="sourceLineNo">905</span>      this.valueSize = valueSize;<a 
name="line.905"></a>
-<span class="sourceLineNo">906</span>    }<a name="line.906"></a>
-<span class="sourceLineNo">907</span><a name="line.907"></a>
-<span class="sourceLineNo">908</span>    public void setBufferSize(long 
bufferSize) {<a name="line.908"></a>
-<span class="sourceLineNo">909</span>      this.bufferSize = bufferSize;<a 
name="line.909"></a>
-<span class="sourceLineNo">910</span>    }<a name="line.910"></a>
-<span class="sourceLineNo">911</span><a name="line.911"></a>
-<span class="sourceLineNo">912</span>    public void setPeriod(int period) {<a 
name="line.912"></a>
-<span class="sourceLineNo">913</span>      this.period = period;<a 
name="line.913"></a>
-<span class="sourceLineNo">914</span>    }<a name="line.914"></a>
-<span class="sourceLineNo">915</span><a name="line.915"></a>
-<span class="sourceLineNo">916</span>    public boolean isNomapred() {<a 
name="line.916"></a>
-<span class="sourceLineNo">917</span>      return nomapred;<a 
name="line.917"></a>
-<span class="sourceLineNo">918</span>    }<a name="line.918"></a>
-<span class="sourceLineNo">919</span><a name="line.919"></a>
-<span class="sourceLineNo">920</span>    public boolean isFilterAll() {<a 
name="line.920"></a>
-<span class="sourceLineNo">921</span>      return filterAll;<a 
name="line.921"></a>
-<span class="sourceLineNo">922</span>    }<a name="line.922"></a>
-<span class="sourceLineNo">923</span><a name="line.923"></a>
-<span class="sourceLineNo">924</span>    public int getStartRow() {<a 
name="line.924"></a>
-<span class="sourceLineNo">925</span>      return startRow;<a 
name="line.925"></a>
-<span class="sourceLineNo">926</span>    }<a name="line.926"></a>
-<span class="sourceLineNo">927</span><a name="line.927"></a>
-<span class="sourceLineNo">928</span>    public float getSize() {<a 
name="line.928"></a>
-<span class="sourceLineNo">929</span>      return size;<a name="line.929"></a>
-<span class="sourceLineNo">930</span>    }<a name="line.930"></a>
-<span class="sourceLineNo">931</span><a name="line.931"></a>
-<span class="sourceLineNo">932</span>    public int getPerClientRunRows() {<a 
name="line.932"></a>
-<span class="sourceLineNo">933</span>      return perClientRunRows;<a 
name="line.933"></a>
-<span class="sourceLineNo">934</span>    }<a name="line.934"></a>
-<span class="sourceLineNo">935</span><a name="line.935"></a>
-<span class="sourceLineNo">936</span>    public int getNumClientThreads() {<a 
name="line.936"></a>
-<span class="sourceLineNo">937</span>      return numClientThreads;<a 
name="line.937"></a>
-<span class="sourceLineNo">938</span>    }<a name="line.938"></a>
-<span class="sourceLineNo">939</span><a name="line.939"></a>
-<span class="sourceLineNo">940</span>    public int getTotalRows() {<a 
name="line.940"></a>
-<span class="sourceLineNo">941</span>      return totalRows;<a 
name="line.941"></a>
-<span class="sourceLineNo">942</span>    }<a name="line.942"></a>
-<span class="sourceLineNo">943</span><a name="line.943"></a>
-<span class="sourceLineNo">944</span>    public float getSampleRate() {<a 
name="line.944"></a>
-<span class="sourceLineNo">945</span>      return sampleRate;<a 
name="line.945"></a>
-<span class="sourceLineNo">946</span>    }<a name="line.946"></a>
-<span class="sourceLineNo">947</span><a name="line.947"></a>
-<span class="sourceLineNo">948</span>    public double getTraceRate() {<a 
name="line.948"></a>
-<span class="sourceLineNo">949</span>      return traceRate;<a 
name="line.949"></a>
-<span class="sourceLineNo">950</span>    }<a name="line.950"></a>
-<span class="sourceLineNo">951</span><a name="line.951"></a>
-<span class="sourceLineNo">952</span>    public String getTableName() {<a 
name="line.952"></a>
-<span class="sourceLineNo">953</span>      return tableName;<a 
name="line.953"></a>
-<span class="sourceLineNo">954</span>    }<a name="line.954"></a>
-<span class="sourceLineNo">955</span><a name="line.955"></a>
-<span class="sourceLineNo">956</span>    public boolean isFlushCommits() {<a 
name="line.956"></a>
-<span class="sourceLineNo">957</span>      return flushCommits;<a 
name="line.957"></a>
-<span class="sourceLineNo">958</span>    }<a name="line.958"></a>
-<span class="sourceLineNo">959</span><a name="line.959"></a>
-<span class="sourceLineNo">960</span>    public boolean isWriteToWAL() {<a 
name="line.960"></a>
-<span class="sourceLineNo">961</span>      return writeToWAL;<a 
name="line.961"></a>
-<span class="sourceLineNo">962</span>    }<a name="line.962"></a>
-<span class="sourceLineNo">963</span><a name="line.963"></a>
-<span class="sourceLineNo">964</span>    public boolean isAutoFlush() {<a 
name="line.964"></a>
-<span class="sourceLineNo">965</span>      return autoFlush;<a 
name="line.965"></a>
-<span class="sourceLineNo">966</span>    }<a name="line.966"></a>
-<span class="sourceLineNo">967</span><a name="line.967"></a>
-<span class="sourceLineNo">968</span>    public boolean isUseTags() {<a 
name="line.968"></a>
-<span class="sourceLineNo">969</span>      return useTags;<a 
name="line.969"></a>
-<span class="sourceLineNo">970</span>    }<a name="line.970"></a>
-<span class="sourceLineNo">971</span><a name="line.971"></a>
-<span class="sourceLineNo">972</span>    public int getNoOfTags() {<a 
name="line.972"></a>
-<span class="sourceLineNo">973</span>      return noOfTags;<a 
name="line.973"></a>
-<span class="sourceLineNo">974</span>    }<a name="line.974"></a>
-<span class="sourceLineNo">975</span><a name="line.975"></a>
-<span class="sourceLineNo">976</span>    public boolean isReportLatency() {<a 
name="line.976"></a>
-<span class="sourceLineNo">977</span>      return reportLatency;<a 
name="line.977"></a>
-<span class="sourceLineNo">978</span>    }<a name="line.978"></a>
-<span class="sourceLineNo">979</span><a name="line.979"></a>
-<span class="sourceLineNo">980</span>    public int getMultiGet() {<a 
name="line.980"></a>
-<span class="sourceLineNo">981</span>      return multiGet;<a 
name="line.981"></a>
-<span class="sourceLineNo">982</span>    }<a name="line.982"></a>
-<span class="sourceLineNo">983</span><a name="line.983"></a>
-<span class="sourceLineNo">984</span>    public boolean isInMemoryCF() {<a 
name="line.984"></a>
-<span class="sourceLineNo">985</span>      return inMemoryCF;<a 
name="line.985"></a>
-<span class="sourceLineNo">986</span>    }<a name="line.986"></a>
-<span class="sourceLineNo">987</span><a name="line.987"></a>
-<span class="sourceLineNo">988</span>    public int getPresplitRegions() {<a 
name="line.988"></a>
-<span class="sourceLineNo">989</span>      return presplitRegions;<a 
name="line.989"></a>
-<span class="sourceLineNo">990</span>    }<a name="line.990"></a>
-<span class="sourceLineNo">991</span><a name="line.991"></a>
-<span class="sourceLineNo">992</span>    public Compression.Algorithm 
getCompression() {<a name="line.992"></a>
-<span class="sourceLineNo">993</span>      return compression;<a 
name="line.993"></a>
-<span class="sourceLineNo">994</span>    }<a name="line.994"></a>
-<span class="sourceLineNo">995</span><a name="line.995"></a>
-<span class="sourceLineNo">996</span>    public DataBlockEncoding 
getBlockEncoding() {<a name="line.996"></a>
-<span class="sourceLineNo">997</span>      return blockEncoding;<a 
name="line.997"></a>
-<span class="sourceLineNo">998</span>    }<a name="line.998"></a>
-<span class="sourceLineNo">999</span><a name="line.999"></a>
-<span class="sourceLineNo">1000</span>    public boolean isValueRandom() {<a 
name="line.1000"></a>
-<span class="sourceLineNo">1001</span>      return valueRandom;<a 
name="line.1001"></a>
-<span class="sourceLineNo">1002</span>    }<a name="line.1002"></a>
-<span class="sourceLineNo">1003</span><a name="line.1003"></a>
-<span class="sourceLineNo">1004</span>    public int getValueSize() {<a 
name="line.1004"></a>
-<span class="sourceLineNo">1005</span>      return valueSize;<a 
name="line.1005"></a>
-<span class="sourceLineNo">1006</span>    }<a name="line.1006"></a>
-<span class="sourceLineNo">1007</span><a name="line.1007"></a>
-<span class="sourceLineNo">1008</span>    public int getPeriod() {<a 
name="line.1008"></a>
-<span class="sourceLineNo">1009</span>      return period;<a 
name="line.1009"></a>
-<span class="sourceLineNo">1010</span>    }<a name="line.1010"></a>
-<span class="sourceLineNo">1011</span><a name="line.1011"></a>
-<span class="sourceLineNo">1012</span>    public BloomType getBloomType() {<a 
name="line.1012"></a>
-<span class="sourceLineNo">1013</span>      return bloomType;<a 
name="line.1013"></a>
-<span class="sourceLineNo">1014</span>    }<a name="line.1014"></a>
-<span class="sourceLineNo">1015</span><a name="line.1015"></a>
-<span class="sourceLineNo">1016</span>    public int getBlockSize() {<a 
name="line.1016"></a>
-<span class="sourceLineNo">1017</span>      return blockSize;<a 
name="line.1017"></a>
-<span class="sourceLineNo">1018</span>    }<a name="line.1018"></a>
-<span class="sourceLineNo">1019</span><a name="line.1019"></a>
-<span class="sourceLineNo">1020</span>    public boolean isOneCon() {<a 
name="line.1020"></a>
-<span class="sourceLineNo">1021</span>      return oneCon;<a 
name="line.1021"></a>
-<span class="sourceLineNo">1022</span>    }<a name="line.1022"></a>
-<span class="sourceLineNo">1023</span><a name="line.1023"></a>
-<span class="sourceLineNo">1024</span>    public int getMeasureAfter() {<a 
name="line.1024"></a>
-<span class="sourceLineNo">1025</span>      return measureAfter;<a 
name="line.1025"></a>
-<span class="sourceLineNo">1026</span>    }<a name="line.1026"></a>
-<span class="sourceLineNo">1027</span><a name="line.1027"></a>
-<span class="sourceLineNo">1028</span>    public void setMeasureAfter(int 
measureAfter) {<a name="line.1028"></a>
-<span class="sourceLineNo">1029</span>      this.measureAfter = 
measureAfter;<a name="line.1029"></a>
-<span class="sourceLineNo">1030</span>    }<a name="line.1030"></a>
-<span class="sourceLineNo">1031</span><a name="line.1031"></a>
-<span class="sourceLineNo">1032</span>    public boolean getAddColumns() {<a 
name="line.1032"></a>
-<span class="sourceLineNo">1033</span>      return addColumns;<a 
name="line.1033"></a>
-<span class="sourceLineNo">1034</span>    }<a name="line.1034"></a>
-<span class="sourceLineNo">1035</span><a name="line.1035"></a>
-<span class="sourceLineNo">1036</span>    public void setAddColumns(boolean 
addColumns) {<a name="line.1036"></a>
-<span class="sourceLineNo">1037</span>      this.addColumns = addColumns;<a 
name="line.1037"></a>
-<span class="sourceLineNo">1038</span>    }<a name="line.1038"></a>
-<span class="sourceLineNo">1039</span><a name="line.1039"></a>
-<span class="sourceLineNo">1040</span>    public void 
setInMemoryCompaction(MemoryCompactionPolicy inMemoryCompaction) {<a 
name="line.1040"></a>
-<span class="sourceLineNo">1041</span>      this.inMemoryCompaction = 
inMemoryCompaction;<a name="line.1041"></a>
-<span class="sourceLineNo">1042</span>    }<a name="line.1042"></a>
-<span class="sourceLineNo">1043</span><a name="line.1043"></a>
-<span class="sourceLineNo">1044</span>    public MemoryCompactionPolicy 
getInMemoryCompaction() {<a name="line.1044"></a>
-<span class="sourceLineNo">1045</span>      return this.inMemoryCompaction;<a 
name="line.1045"></a>
-<span class="sourceLineNo">1046</span>    }<a name="line.1046"></a>
-<span class="sourceLineNo">1047</span><a name="line.1047"></a>
-<span class="sourceLineNo">1048</span>    public long getBufferSize() {<a 
name="line.1048"></a>
-<span class="sourceLineNo">1049</span>      return this.bufferSize;<a 
name="line.1049"></a>
-<span class="sourceLineNo">1050</span>    }<a name="line.1050"></a>
-<span class="sourceLineNo">1051</span>  }<a name="line.1051"></a>
-<span class="sourceLineNo">1052</span><a name="line.1052"></a>
-<span class="sourceLineNo">1053</span>  /*<a name="line.1053"></a>
-<span class="sourceLineNo">1054</span>   * A test.<a name="line.1054"></a>
-<span class="sourceLineNo">1055</span>   * Subclass to particularize what 
happens per row.<a name="line.1055"></a>
-<span class="sourceLineNo">1056</span>   */<a name="line.1056"></a>
-<span class="sourceLineNo">1057</span>  static abstract class TestBase {<a 
name="line.1057"></a>
-<span class="sourceLineNo">1058</span>    // Below is make it so when Tests 
are all running in the one<a name="line.1058"></a>
-<span class="sourceLineNo">1059</span>    // jvm, that they each have a 
differently seeded Random.<a name="line.1059"></a>
-<span class="sourceLineNo">1060</span>    private static final Random 
randomSeed = new Random(System.currentTimeMillis());<a name="line.1060"></a>
-<span class="sourceLineNo">1061</span><a name="line.1061"></a>
-<span class="sourceLineNo">1062</span>    private static long nextRandomSeed() 
{<a name="line.1062"></a>
-<span class="sourceLineNo">1063</span>      return randomSeed.nextLong();<a 
name="line.1063"></a>
-<span class="sourceLineNo">1064</span>    }<a name="line.1064"></a>
-<span class="sourceLineNo">1065</span>    private final int everyN;<a 
name="line.1065"></a>
-<span class="sourceLineNo">1066</span><a name="line.1066"></a>
-<span class="sourceLineNo">1067</span>    protected final Random rand = new 
Random(nextRandomSeed());<a name="line.1067"></a>
-<span class="sourceLineNo">1068</span>    protected final Configuration 
conf;<a name="line.1068"></a>
-<span class="sourceLineNo">1069</span>    protected final TestOptions opts;<a 
name="line.1069"></a>
-<span class="sourceLineNo">1070</span><a name="line.1070"></a>
-<span class="sourceLineNo">1071</span>    private final Status status;<a 
name="line.1071"></a>
-<span class="sourceLineNo">1072</span>    private final Sampler 
traceSampler;<a name="line.1072"></a>
-<span class="sourceLineNo">1073</span>    private final SpanReceiverHost 
receiverHost;<a name="line.1073"></a>
-<span class="sourceLineNo">1074</span><a name="line.1074"></a>
-<span class="sourceLineNo">1075</span>    private String testName;<a 
name="line.1075"></a>
-<span class="sourceLineNo">1076</span>    private Histogram 
latencyHistogram;<a name="line.1076"></a>
-<span class="sourceLineNo">1077</span>    private Histogram 
valueSizeHistogram;<a name="line.1077"></a>
-<span class="sourceLineNo">1078</span>    private Histogram 
rpcCallsHistogram;<a name="line.1078"></a>
-<span class="sourceLineNo">1079</span>    private Histogram remoteRpcCalls

<TRUNCATED>

Reply via email to