public class HbaseSessions extends BackendSessionPool
| 限定符和类型 | 类和说明 |
|---|---|
class |
HbaseSessions.CountSession |
static interface |
HbaseSessions.HbaseSession<R>
Session interface for HBase
|
protected static class |
HbaseSessions.RowIterator |
class |
HbaseSessions.Session
Session implement for HBase
|
| 构造器和说明 |
|---|
HbaseSessions(HugeConfig config,
String namespace,
String store) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
createNamespace() |
void |
createTable(String table,
List<byte[]> cfs) |
Future<Void> |
disableTableAsync(String table) |
protected void |
doClose() |
void |
dropNamespace() |
void |
dropTable(String table) |
void |
enableTable(String table) |
boolean |
existsNamespace() |
boolean |
existsTable(String table) |
protected org.apache.hadoop.hbase.client.Connection |
hbase() |
protected HbaseSessions.Session |
newSession() |
void |
open() |
protected boolean |
opened() |
HbaseSessions.Session |
session() |
long |
storeSize(String table) |
Future<Void> |
truncateTableAsync(String table) |
close, closed, config, forceResetSessions, getOrNewSession, toString, useSessionpublic HbaseSessions(HugeConfig config, String namespace, String store)
protected org.apache.hadoop.hbase.client.Connection hbase()
public void open()
throws IOException
open 在类中 BackendSessionPoolIOExceptionprotected boolean opened()
opened 在类中 BackendSessionPoolpublic final HbaseSessions.Session session()
session 在类中 BackendSessionPoolprotected HbaseSessions.Session newSession()
newSession 在类中 BackendSessionPoolprotected void doClose()
doClose 在类中 BackendSessionPoolpublic boolean existsNamespace()
throws IOException
IOExceptionpublic void createNamespace()
throws IOException
IOExceptionpublic void dropNamespace()
throws IOException
IOExceptionpublic boolean existsTable(String table) throws IOException
IOExceptionpublic void createTable(String table, List<byte[]> cfs) throws IOException
IOExceptionpublic void dropTable(String table) throws IOException
IOExceptionpublic void enableTable(String table) throws IOException
IOExceptionpublic Future<Void> disableTableAsync(String table) throws IOException
IOExceptionpublic Future<Void> truncateTableAsync(String table) throws IOException
IOExceptionpublic long storeSize(String table) throws IOException
IOExceptionCopyright © 2017–2021. All rights reserved.