hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1534355 - /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
Date Mon, 21 Oct 2013 19:59:48 GMT
Author: apurtell
Date: Mon Oct 21 19:59:47 2013
New Revision: 1534355

URL: http://svn.apache.org/r1534355
Log:
HBASE-9716. LoadTestTool should provide default min and max settings to the data generator

Modified:
    hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java

Modified: hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java?rev=1534355&r1=1534354&r2=1534355&view=diff
==============================================================================
--- hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java (original)
+++ hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java Mon Oct
21 19:59:47 2013
@@ -60,6 +60,9 @@ public class LoadTestTool extends Abstra
   /** Column families used by the test */
   protected static final byte[][] COLUMN_FAMILIES = { COLUMN_FAMILY };
 
+  /** The default data size if not specified */
+  protected static final int DEFAULT_DATA_SIZE = 64;
+
   /** The number of reader/writer threads if not specified */
   protected static final int DEFAULT_NUM_THREADS = 20;
 
@@ -127,7 +130,7 @@ public class LoadTestTool extends Abstra
   // Writer options
   protected int numWriterThreads = DEFAULT_NUM_THREADS;
   protected int minColsPerKey, maxColsPerKey;
-  protected int minColDataSize, maxColDataSize;
+  protected int minColDataSize = DEFAULT_DATA_SIZE, maxColDataSize = DEFAULT_DATA_SIZE;
   protected boolean isMultiPut;
 
   // Reader options



Mime
View raw message