public class TablePool extends Object
| Constructor and Description |
|---|
TablePool() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hbase.client.HTable |
getDomainlistTable()
Get an instance of the
HDomainList table. |
static TablePool |
getInstance()
Use getInstance to get an instance of the
HTablePool. |
static TablePool |
getInstance(org.apache.hadoop.conf.Configuration configuration)
Use getInstance to get an instance of the
HTablePool. |
org.apache.hadoop.hbase.client.HTable |
getRecipientRewriteTable()
Get an instance of the RecipientRewriteTable table.
|
org.apache.hadoop.hbase.client.HTable |
getUsersRepositoryTable()
Get an instance of the UsersRepository table.
|
public static TablePool getInstance() throws IOException
HTablePool.
Don't give any configuration, the default one will be used
via HBaseConfiguration.create(Configuration).
If you want to create the instance with a specific HBaseConfiguration,
use getInstance(Configuration)IOExceptionpublic static TablePool getInstance(org.apache.hadoop.conf.Configuration configuration) throws IOException
HTablePool.
You can give at first call a specific HBaseConfiguration to suit your needs.configuration - HTablePoolIOExceptionpublic org.apache.hadoop.hbase.client.HTable getDomainlistTable()
HDomainList table.HDomainListpublic org.apache.hadoop.hbase.client.HTable getRecipientRewriteTable()
RecipientRewriteTablepublic org.apache.hadoop.hbase.client.HTable getUsersRepositoryTable()
UsersRepositoryCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.