public class HbaseSessions extends BackendSessionPool
| Modifier and Type | Class and Description |
|---|---|
protected static class |
HbaseSessions.RowIterator |
class |
HbaseSessions.Session
Session for HBase
|
| Constructor and Description |
|---|
HbaseSessions(String namespace,
String store) |
| Modifier and Type | Method and Description |
|---|---|
void |
createNamespace() |
void |
createTable(String table,
List<byte[]> cfs) |
protected void |
doClose() |
void |
dropNamespace() |
void |
dropTable(String table) |
boolean |
existsNamespace() |
boolean |
existsTable(String table) |
protected HbaseSessions.Session |
newSession() |
void |
open(HugeConfig conf) |
protected boolean |
opened() |
HbaseSessions.Session |
session() |
long |
storeSize(String table) |
Future<Void> |
truncateTable(String table) |
close, closed, closeSession, getOrNewSession, toString, useSessionpublic void open(HugeConfig conf) 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 dropTable(String table) throws IOException
IOExceptionpublic Future<Void> truncateTable(String table) throws IOException
IOExceptionpublic long storeSize(String table) throws IOException
IOExceptionCopyright © 2017–2019. All rights reserved.