HBASE-9716. LoadTestTool should provide default min and max settings to the data generator

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1534352 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2013-10-21 19:57:08 +00:00
parent 0e64f91e37
commit 670bc625b2
1 changed files with 4 additions and 1 deletions

View File

@ -62,6 +62,9 @@ public class LoadTestTool extends AbstractHBaseTool {
/** Column families used by the test */ /** Column families used by the test */
protected static final byte[][] COLUMN_FAMILIES = { COLUMN_FAMILY }; 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 */ /** The number of reader/writer threads if not specified */
protected static final int DEFAULT_NUM_THREADS = 20; protected static final int DEFAULT_NUM_THREADS = 20;
@ -150,7 +153,7 @@ public class LoadTestTool extends AbstractHBaseTool {
// Writer options // Writer options
protected int numWriterThreads = DEFAULT_NUM_THREADS; protected int numWriterThreads = DEFAULT_NUM_THREADS;
protected int minColsPerKey, maxColsPerKey; protected int minColsPerKey, maxColsPerKey;
protected int minColDataSize, maxColDataSize; protected int minColDataSize = DEFAULT_DATA_SIZE, maxColDataSize = DEFAULT_DATA_SIZE;
protected boolean isMultiPut; protected boolean isMultiPut;
// Updater options // Updater options