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 java.util.Set<MultiThreadedWriter.HBaseWriterThread> |
writers |
failedKeySet, nextKeyToWrite, trackWroteKeys, wroteKeyQueueSize, wroteKeys, wroteUpToKeyconf, 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, wroteUpToKeyappendToStatus, appendToStatus, close, getEndKey, isDone, startThreads, verifyResultAgainstDataGenerator, verifyResultAgainstDataGeneratorprotected java.util.Set<MultiThreadedWriter.HBaseWriterThread> writers
protected boolean isMultiPut
public MultiThreadedWriter(LoadTestDataGenerator dataGen, Configuration conf, TableName tableName) throws java.io.IOException
java.io.IOExceptionpublic void setMultiPut(boolean isMultiPut)
public void start(long startKey,
long endKey,
int numThreads)
throws java.io.IOException
start in class MultiThreadedWriterBasejava.io.IOExceptionprotected void createWriterThreads(int numThreads)
throws java.io.IOException
java.io.IOExceptionpublic void waitForFinish()
waitForFinish in class MultiThreadedAction