public abstract class AbstractBigtableConnection extends Object implements org.apache.hadoop.hbase.client.Connection, Closeable
Modifier and Type | Field and Description |
---|---|
static String |
BIGTABLE_BUFFERED_MUTATOR_MAX_MEMORY_KEY
The maximum amount of memory to be used for asynchronous buffered mutator RPCs.
|
static String |
MAX_INFLIGHT_RPCS_KEY |
Modifier | Constructor and Description |
---|---|
|
AbstractBigtableConnection(org.apache.hadoop.conf.Configuration conf) |
protected |
AbstractBigtableConnection(org.apache.hadoop.conf.Configuration conf,
boolean managed,
ExecutorService pool,
org.apache.hadoop.hbase.security.User user) |
Modifier and Type | Method and Description |
---|---|
void |
abort(String msg,
Throwable t) |
void |
close() |
abstract org.apache.hadoop.hbase.client.Admin |
getAdmin() |
protected BigtableTableAdminClient |
getBigtableTableAdminClient() |
org.apache.hadoop.hbase.client.BufferedMutator |
getBufferedMutator(org.apache.hadoop.hbase.client.BufferedMutatorParams params) |
org.apache.hadoop.hbase.client.BufferedMutator |
getBufferedMutator(org.apache.hadoop.hbase.TableName tableName) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
protected Set<org.apache.hadoop.hbase.TableName> |
getDisabledTables() |
protected BigtableOptions |
getOptions() |
org.apache.hadoop.hbase.client.RegionLocator |
getRegionLocator(org.apache.hadoop.hbase.TableName tableName) |
BigtableSession |
getSession() |
org.apache.hadoop.hbase.client.Table |
getTable(String tableName)
Deprecated.
|
org.apache.hadoop.hbase.client.Table |
getTable(org.apache.hadoop.hbase.TableName tableName) |
org.apache.hadoop.hbase.client.Table |
getTable(org.apache.hadoop.hbase.TableName tableName,
ExecutorService pool) |
boolean |
isAborted() |
boolean |
isClosed() |
String |
toString() |
public static final String MAX_INFLIGHT_RPCS_KEY
public static final String BIGTABLE_BUFFERED_MUTATOR_MAX_MEMORY_KEY
public AbstractBigtableConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
protected AbstractBigtableConnection(org.apache.hadoop.conf.Configuration conf, boolean managed, ExecutorService pool, org.apache.hadoop.hbase.security.User user) throws IOException
IOException
public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration
in interface org.apache.hadoop.hbase.client.Connection
public org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName) throws IOException
getTable
in interface org.apache.hadoop.hbase.client.Connection
IOException
public org.apache.hadoop.hbase.client.Table getTable(org.apache.hadoop.hbase.TableName tableName, ExecutorService pool) throws IOException
getTable
in interface org.apache.hadoop.hbase.client.Connection
IOException
public org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.client.BufferedMutatorParams params) throws IOException
getBufferedMutator
in interface org.apache.hadoop.hbase.client.Connection
IOException
public org.apache.hadoop.hbase.client.BufferedMutator getBufferedMutator(org.apache.hadoop.hbase.TableName tableName) throws IOException
getBufferedMutator
in interface org.apache.hadoop.hbase.client.Connection
IOException
@Deprecated public org.apache.hadoop.hbase.client.Table getTable(String tableName) throws IOException
IOException
public org.apache.hadoop.hbase.client.RegionLocator getRegionLocator(org.apache.hadoop.hbase.TableName tableName) throws IOException
getRegionLocator
in interface org.apache.hadoop.hbase.client.Connection
IOException
public void abort(String msg, Throwable t)
abort
in interface org.apache.hadoop.hbase.Abortable
public boolean isClosed()
isClosed
in interface org.apache.hadoop.hbase.client.Connection
public boolean isAborted()
isAborted
in interface org.apache.hadoop.hbase.Abortable
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.apache.hadoop.hbase.client.Connection
IOException
public abstract org.apache.hadoop.hbase.client.Admin getAdmin() throws IOException
getAdmin
in interface org.apache.hadoop.hbase.client.Connection
IOException
protected BigtableTableAdminClient getBigtableTableAdminClient() throws IOException
IOException
protected BigtableOptions getOptions()
protected Set<org.apache.hadoop.hbase.TableName> getDisabledTables()
public BigtableSession getSession()
Copyright © 2015. All rights reserved.