public class MultiThreadedReader.HBaseReaderThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description | 
|---|---|
protected int | 
readerId  | 
protected long | 
startTimeMs
Time when the thread started 
 | 
protected Table | 
table  | 
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description | 
|---|
HBaseReaderThread(int readerId)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
closeTable()  | 
protected Get | 
createGet(long keyToRead)  | 
protected HTableInterface | 
createTable()  | 
protected long | 
getNextKeyToRead()  | 
void | 
queryKey(Get[] gets,
        boolean verify,
        long[] keysToRead)  | 
void | 
queryKey(Get get,
        boolean verify,
        long keyToRead)  | 
void | 
run()  | 
protected void | 
verifyResultsAndUpdateMetrics(boolean verify,
                             Get[] gets,
                             long elapsedNano,
                             Result[] results,
                             Table table,
                             boolean isNullExpected)  | 
protected void | 
verifyResultsAndUpdateMetrics(boolean verify,
                             Get get,
                             long elapsedNano,
                             Result result,
                             Table table,
                             boolean isNullExpected)  | 
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected final int readerId
protected final Table table
protected long startTimeMs
public HBaseReaderThread(int readerId)
                  throws IOException
readerId - only the keys with this remainder from division by
          MultiThreadedAction.numThreads will be read by this threadIOExceptionprotected HTableInterface createTable()
                               throws IOException
IOExceptionprotected void closeTable()
protected long getNextKeyToRead()
protected Get createGet(long keyToRead)
                 throws IOException
IOExceptionpublic void queryKey(Get[] gets,
                     boolean verify,
                     long[] keysToRead)
              throws IOException
IOExceptionpublic void queryKey(Get get,
                     boolean verify,
                     long keyToRead)
              throws IOException
IOExceptionprotected void verifyResultsAndUpdateMetrics(boolean verify,
                                             Get[] gets,
                                             long elapsedNano,
                                             Result[] results,
                                             Table table,
                                             boolean isNullExpected)
                                      throws IOException
IOExceptionprotected void verifyResultsAndUpdateMetrics(boolean verify,
                                             Get get,
                                             long elapsedNano,
                                             Result result,
                                             Table table,
                                             boolean isNullExpected)
                                      throws IOException
IOException