Package org.apache.hadoop.hbase.util
Class MultiThreadedWriter
java.lang.Object
org.apache.hadoop.hbase.util.MultiThreadedAction
org.apache.hadoop.hbase.util.MultiThreadedWriterBase
org.apache.hadoop.hbase.util.MultiThreadedWriter
- Direct Known Subclasses:
MultiThreadedWriterWithACL
Creates multiple threads that write key/values into the
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.MultiThreadedAction
MultiThreadedAction.DefaultDataGenerator
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
private static final org.slf4j.Logger
protected Set<MultiThreadedWriter.HBaseWriterThread>
Fields inherited from class org.apache.hadoop.hbase.util.MultiThreadedWriterBase
failedKeySet, nextKeyToWrite, trackWroteKeys, wroteKeyQueueSize, wroteKeys, wroteUpToKey
Fields inherited from class org.apache.hadoop.hbase.util.MultiThreadedAction
conf, connection, dataGenerator, endKey, numCols, numKeys, numThreads, numThreadsWorking, REPORTING_INTERVAL_MS, startKey, tableName, totalOpTimeMs, verbose
-
Constructor Summary
ConstructorDescriptionMultiThreadedWriter
(LoadTestDataGenerator dataGen, org.apache.hadoop.conf.Configuration conf, TableName tableName) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createWriterThreads
(int numThreads) void
setMultiPut
(boolean isMultiPut) Use multi-puts vs.void
start
(long startKey, long endKey, int numThreads) void
Methods inherited from class org.apache.hadoop.hbase.util.MultiThreadedWriterBase
createWriteKeysQueue, failedToWriteKey, getNumWriteFailures, getRegionDebugInfoSafe, progressInfo, setTrackWroteKeys, wroteUpToKey
Methods inherited from class org.apache.hadoop.hbase.util.MultiThreadedAction
appendToStatus, appendToStatus, close, getEndKey, isDone, startThreads, verifyResultAgainstDataGenerator, verifyResultAgainstDataGenerator
-
Field Details
-
LOG
-
writers
-
isMultiPut
-
-
Constructor Details
-
MultiThreadedWriter
public MultiThreadedWriter(LoadTestDataGenerator dataGen, org.apache.hadoop.conf.Configuration conf, TableName tableName) throws IOException - Throws:
IOException
-
-
Method Details
-
setMultiPut
Use multi-puts vs. separate puts for every column in a row -
start
- Overrides:
start
in classMultiThreadedWriterBase
- Throws:
IOException
-
createWriterThreads
- Throws:
IOException
-
waitForFinish
- Overrides:
waitForFinish
in classMultiThreadedAction
-