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, wroteUpToKey
conf, 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, wroteUpToKey
appendToStatus, appendToStatus, close, getEndKey, isDone, startThreads, verifyResultAgainstDataGenerator, verifyResultAgainstDataGenerator
private 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
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
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.