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 |
private static org.slf4j.Logger |
LOG |
protected 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,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.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, verifyResultAgainstDataGeneratorprivate static final org.slf4j.Logger LOG
protected Set<MultiThreadedWriter.HBaseWriterThread> writers
protected boolean isMultiPut
public MultiThreadedWriter(LoadTestDataGenerator dataGen, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName) throws IOException
IOExceptionpublic void setMultiPut(boolean isMultiPut)
public void start(long startKey, long endKey, int numThreads) throws IOException
start in class MultiThreadedWriterBaseIOExceptionprotected void createWriterThreads(int numThreads) throws IOException
IOExceptionpublic void waitForFinish()
waitForFinish in class MultiThreadedActionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.