public final class HBaseClient
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HBaseClient.Builder |
static class |
HBaseClient.Parameter |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashMap<TableName,java.util.concurrent.LinkedBlockingQueue<HAsyncTable.AsyncPackage>> |
asyncCollection |
static java.nio.charset.Charset |
DEFAULT_CHARSET |
protected java.util.HashMap<TableName,java.util.concurrent.LinkedBlockingQueue<org.apache.hadoop.hbase.client.Row>> |
fastCollection |
| Modifier and Type | Method and Description |
|---|---|
HBaseAdmin |
admin() |
HAsyncTable |
async(java.lang.Class<? extends HTableModel> model) |
HAsyncTable |
async(TableName tableName)
Only for Get, Put, Delete, Append, Increment.
|
int |
asyncBatchCount() |
protected java.util.concurrent.LinkedBlockingQueue<HAsyncTable.AsyncPackage> |
asyncQueue(TableName tableName) |
java.util.HashMap<java.lang.String,java.lang.Integer> |
asyncQueueCounts() |
static byte[] |
bytes(java.lang.String string) |
void |
close() |
boolean |
closed() |
org.apache.hadoop.conf.Configuration |
configuration() |
protected org.apache.hadoop.hbase.client.Connection |
connection() |
HFastTable |
fast(java.lang.Class<? extends HTableModel> model) |
HFastTable |
fast(HTableModel model) |
HFastTable |
fast(TableName tableName)
Only for Get, Put, Delete, Append, Increment.
|
int |
fastBatchCount() |
protected java.util.concurrent.LinkedBlockingQueue<org.apache.hadoop.hbase.client.Row> |
fastQueue(TableName tableName) |
java.util.HashMap<java.lang.String,java.lang.Integer> |
fastQueueCounts() |
long |
rowCount(TableName tableName,
byte[] family) |
HBaseClient |
setAsyncBatchCount(int asyncBatchCount) |
HBaseClient |
setFastBatchCount(int fastBatchCount) |
HBaseTable |
table(java.lang.Class<? extends HTableModel> modelClass) |
HBaseTable |
table(HTableModel model) |
HBaseTable |
table(TableName tableName) |
public static final java.nio.charset.Charset DEFAULT_CHARSET
protected final java.util.HashMap<TableName,java.util.concurrent.LinkedBlockingQueue<org.apache.hadoop.hbase.client.Row>> fastCollection
protected final java.util.HashMap<TableName,java.util.concurrent.LinkedBlockingQueue<HAsyncTable.AsyncPackage>> asyncCollection
public static final byte[] bytes(java.lang.String string)
public HAsyncTable async(TableName tableName)
Asyncpublic HAsyncTable async(java.lang.Class<? extends HTableModel> model)
public HFastTable fast(TableName tableName)
async()Fastpublic HFastTable fast(java.lang.Class<? extends HTableModel> model)
public HFastTable fast(HTableModel model)
public int fastBatchCount()
public HBaseClient setFastBatchCount(int fastBatchCount)
public int asyncBatchCount()
public HBaseClient setAsyncBatchCount(int asyncBatchCount)
public java.util.HashMap<java.lang.String,java.lang.Integer> fastQueueCounts()
public java.util.HashMap<java.lang.String,java.lang.Integer> asyncQueueCounts()
public HBaseAdmin admin()
public void close()
public boolean closed()
protected java.util.concurrent.LinkedBlockingQueue<org.apache.hadoop.hbase.client.Row> fastQueue(TableName tableName)
protected java.util.concurrent.LinkedBlockingQueue<HAsyncTable.AsyncPackage> asyncQueue(TableName tableName)
public HBaseTable table(HTableModel model)
public HBaseTable table(TableName tableName)
protected org.apache.hadoop.hbase.client.Connection connection()
public HBaseTable table(java.lang.Class<? extends HTableModel> modelClass)
public long rowCount(TableName tableName, byte[] family)
public org.apache.hadoop.conf.Configuration configuration()