public class MultiThreadedWriter.HBaseWriterThread extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
private org.apache.hadoop.hbase.client.Table |
table |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
HBaseWriterThread(int writerId) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeHTable() |
protected org.apache.hadoop.hbase.client.Table |
createTable() |
void |
insert(org.apache.hadoop.hbase.client.Table table,
org.apache.hadoop.hbase.client.Put put,
long keyBase) |
void |
run() |
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, yieldprivate final org.apache.hadoop.hbase.client.Table table
public HBaseWriterThread(int writerId) throws IOException
IOExceptionprotected org.apache.hadoop.hbase.client.Table createTable() throws IOException
IOExceptionpublic void insert(org.apache.hadoop.hbase.client.Table table, org.apache.hadoop.hbase.client.Put put, long keyBase)
protected void closeHTable()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.