public class HbaseSessions extends BackendSessionPool
| Modifier and Type | Class and Description |
|---|---|
class |
HbaseSessions.CountSession |
static interface |
HbaseSessions.HbaseSession<R>
Session interface for HBase
|
protected static class |
HbaseSessions.RowIterator |
class |
HbaseSessions.Session
Session implement for HBase
|
| Constructor and Description |
|---|
HbaseSessions(HugeConfig config,
String namespace,
String store) |
| Modifier and Type | Method and Description |
|---|---|
void |
compactTables(List<String> tableNames) |
void |
createNamespace() |
void |
createPreSplitTable(String table,
List<byte[]> cfs,
short numOfPartitions) |
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 in class BackendSessionPoolIOExceptionprotected boolean opened()
opened in class BackendSessionPoolpublic final HbaseSessions.Session session()
session in class BackendSessionPoolprotected HbaseSessions.Session newSession()
newSession in class BackendSessionPoolprotected void doClose()
doClose in class 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 createPreSplitTable(String table, List<byte[]> cfs, short numOfPartitions) 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 void compactTables(List<String> tableNames) throws IOException
IOExceptionpublic long storeSize(String table) throws IOException
IOExceptionCopyright © 2017–2024 The Apache Software Foundation. All rights reserved.