Package org.apache.hadoop.hbase.util
Class MultiThreadedUpdater
java.lang.Object
org.apache.hadoop.hbase.util.MultiThreadedAction
org.apache.hadoop.hbase.util.MultiThreadedWriterBase
org.apache.hadoop.hbase.util.MultiThreadedUpdater
- Direct Known Subclasses:
MultiThreadedUpdaterWithACL
Creates multiple threads that write key/values into the
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.hadoop.hbase.util.MultiThreadedAction
MultiThreadedAction.DefaultDataGenerator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate static final org.slf4j.Loggerprivate final doubleprotected Set<MultiThreadedUpdater.HBaseUpdaterThread>private MultiThreadedWriterBaseFields inherited from class org.apache.hadoop.hbase.util.MultiThreadedWriterBase
failedKeySet, nextKeyToWrite, trackWroteKeys, wroteKeyQueueSize, wroteKeys, wroteUpToKeyFields 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
ConstructorsConstructorDescriptionMultiThreadedUpdater(LoadTestDataGenerator dataGen, org.apache.hadoop.conf.Configuration conf, TableName tableName, double updatePercent) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddUpdaterThreads(int numThreads) private longvoidlinkToWriter(MultiThreadedWriterBase writer) voidvoidvoidsetBatchUpdate(boolean isBatchUpdate) Use batch vs.voidsetIgnoreNonceConflicts(boolean value) voidstart(long startKey, long endKey, int numThreads) voidMethods inherited from class org.apache.hadoop.hbase.util.MultiThreadedWriterBase
createWriteKeysQueue, failedToWriteKey, getNumWriteFailures, getRegionDebugInfoSafe, progressInfo, setTrackWroteKeys, wroteUpToKeyMethods inherited from class org.apache.hadoop.hbase.util.MultiThreadedAction
appendToStatus, appendToStatus, close, getEndKey, isDone, startThreads, verifyResultAgainstDataGenerator, verifyResultAgainstDataGenerator
-
Field Details
-
LOG
-
updaters
-
writer
-
isBatchUpdate
-
ignoreNonceConflicts
-
updatePercent
-
-
Constructor Details
-
MultiThreadedUpdater
public MultiThreadedUpdater(LoadTestDataGenerator dataGen, org.apache.hadoop.conf.Configuration conf, TableName tableName, double updatePercent) throws IOException - Throws:
IOException
-
-
Method Details
-
setBatchUpdate
Use batch vs. separate updates for every column in a row -
linkToWriter
-
start
- Overrides:
startin classMultiThreadedWriterBase- Throws:
IOException
-
addUpdaterThreads
- Throws:
IOException
-
getNextKeyToUpdate
-
waitForFinish
- Overrides:
waitForFinishin classMultiThreadedAction
-
mutate
-
mutate
-
setIgnoreNonceConflicts
-