public class MultiThreadedUpdater extends MultiThreadedWriterBase
Modifier and Type | Class and Description |
---|---|
protected class |
MultiThreadedUpdater.HBaseUpdaterThread |
MultiThreadedAction.DefaultDataGenerator
Modifier and Type | Field and Description |
---|---|
private boolean |
ignoreNonceConflicts |
private boolean |
isBatchUpdate |
private static org.slf4j.Logger |
LOG |
private double |
updatePercent |
protected Set<MultiThreadedUpdater.HBaseUpdaterThread> |
updaters |
private MultiThreadedWriterBase |
writer |
failedKeySet, nextKeyToWrite, trackWroteKeys, wroteKeyQueueSize, wroteKeys, wroteUpToKey
conf, connection, dataGenerator, endKey, numCols, numKeys, numThreads, numThreadsWorking, REPORTING_INTERVAL_MS, startKey, tableName, totalOpTimeMs, verbose
Constructor and Description |
---|
MultiThreadedUpdater(LoadTestDataGenerator dataGen,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.TableName tableName,
double updatePercent) |
Modifier and Type | Method and Description |
---|---|
protected void |
addUpdaterThreads(int numThreads) |
private long |
getNextKeyToUpdate() |
void |
linkToWriter(MultiThreadedWriterBase writer) |
void |
mutate(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.client.Mutation m,
long keyBase) |
void |
mutate(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.client.Mutation m,
long keyBase,
byte[] row,
byte[] cf,
byte[] q,
byte[] v) |
void |
setBatchUpdate(boolean isBatchUpdate)
Use batch vs.
|
void |
setIgnoreNonceConflicts(boolean value) |
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<MultiThreadedUpdater.HBaseUpdaterThread> updaters
private MultiThreadedWriterBase writer
private boolean isBatchUpdate
private boolean ignoreNonceConflicts
private final double updatePercent
public MultiThreadedUpdater(LoadTestDataGenerator dataGen, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName tableName, double updatePercent) throws IOException
IOException
public void setBatchUpdate(boolean isBatchUpdate)
public void linkToWriter(MultiThreadedWriterBase writer)
public void start(long startKey, long endKey, int numThreads) throws IOException
start
in class MultiThreadedWriterBase
IOException
protected void addUpdaterThreads(int numThreads) throws IOException
IOException
private long getNextKeyToUpdate()
public void waitForFinish()
waitForFinish
in class MultiThreadedAction
public void mutate(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Mutation m, long keyBase)
public void mutate(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Mutation m, long keyBase, byte[] row, byte[] cf, byte[] q, byte[] v)
public void setIgnoreNonceConflicts(boolean value)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.