public class MultiThreadedWriter extends MultiThreadedWriterBase
Modifier and Type | Class and Description |
---|---|
class |
MultiThreadedWriter.HBaseWriterThread |
MultiThreadedAction.DefaultDataGenerator
Modifier and Type | Field and Description |
---|---|
protected boolean |
isMultiPut |
protected Set<MultiThreadedWriter.HBaseWriterThread> |
writers |
failedKeySet, nextKeyToWrite, trackWroteKeys, wroteKeyQueueSize, wroteKeys, wroteUpToKey
conf, connection, dataGenerator, endKey, numCols, numKeys, numThreads, numThreadsWorking, REPORTING_INTERVAL_MS, startKey, tableName, totalOpTimeMs, verbose
Constructor and Description |
---|
MultiThreadedWriter(LoadTestDataGenerator dataGen,
Configuration conf,
TableName tableName) |
Modifier and Type | Method and Description |
---|---|
protected void |
createWriterThreads(int numThreads) |
void |
setMultiPut(boolean isMultiPut)
Use multi-puts vs.
|
void |
start(long startKey,
long endKey,
int numThreads) |
void |
waitForFinish() |
createWriteKeysQueue, failedToWriteKey, getNumWriteFailures, getRegionDebugInfoSafe, progressInfo, setTrackWroteKeys, wroteUpToKey
appendToStatus, appendToStatus, close, getEndKey, isDone, startThreads, verifyResultAgainstDataGenerator, verifyResultAgainstDataGenerator
protected Set<MultiThreadedWriter.HBaseWriterThread> writers
protected boolean isMultiPut
public MultiThreadedWriter(LoadTestDataGenerator dataGen, Configuration conf, TableName tableName) throws IOException
IOException
public void setMultiPut(boolean isMultiPut)
public void start(long startKey, long endKey, int numThreads) throws IOException
start
in class MultiThreadedWriterBase
IOException
protected void createWriterThreads(int numThreads) throws IOException
IOException
public void waitForFinish()
waitForFinish
in class MultiThreadedAction