public abstract class AbstractBigtableConnection extends Object implements Connection, Closeable
Abstract AbstractBigtableConnection class.
Modifier | Constructor and Description |
---|---|
|
AbstractBigtableConnection(org.apache.hadoop.conf.Configuration conf)
Constructor for AbstractBigtableConnection.
|
protected |
AbstractBigtableConnection(org.apache.hadoop.conf.Configuration conf,
boolean managed,
ExecutorService pool,
User user)
The constructor called from
ConnectionFactory.createConnection(Configuration) and
in its many forms via reflection with this specific signature. |
Modifier and Type | Method and Description |
---|---|
void |
abort(String msg,
Throwable t) |
void |
close() |
HBaseRequestAdapter |
createAdapter(TableName tableName) |
abstract Admin |
getAdmin() |
protected BigtableTableAdminClient |
getBigtableTableAdminClient()
getBigtableTableAdminClient.
|
BufferedMutator |
getBufferedMutator(BufferedMutatorParams params) |
BufferedMutator |
getBufferedMutator(TableName tableName) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
protected Set<TableName> |
getDisabledTables()
Getter for the field
disabledTables . |
protected BigtableOptions |
getOptions()
Getter for the field
options . |
RegionLocator |
getRegionLocator(TableName tableName) |
BigtableSession |
getSession()
Getter for the field
session . |
Table |
getTable(String tableName)
Deprecated.
|
Table |
getTable(TableName tableName) |
Table |
getTable(TableName tableName,
ExecutorService pool) |
boolean |
isAborted() |
boolean |
isClosed() |
String |
toString() |
public AbstractBigtableConnection(org.apache.hadoop.conf.Configuration conf) throws IOException
Constructor for AbstractBigtableConnection.
conf
- a Configuration
object.IOException
- if any.protected AbstractBigtableConnection(org.apache.hadoop.conf.Configuration conf, boolean managed, ExecutorService pool, User user) throws IOException
ConnectionFactory.createConnection(Configuration)
and
in its many forms via reflection with this specific signature.conf
- The configuration for this channel. See BigtableOptionsFactory
for more details.managed
- This should always be false. It's an artifact of old HBase behavior.pool
- An ExecutorService
to run HBase/Bigtable object conversions on. The RPCs
themselves run via NIO, and not on a waiting threaduser
- This is an artifact of HBase which Cloud Bigtable ignores. User information is
captured in the Credentials configuration in conf.IOException
- if the setup is not correct. The most likely issue is ALPN or OpenSSL
misconfiguration.public org.apache.hadoop.conf.Configuration getConfiguration()
getConfiguration
in interface Connection
public Table getTable(TableName tableName) throws IOException
getTable
in interface Connection
IOException
public Table getTable(TableName tableName, ExecutorService pool) throws IOException
getTable
in interface Connection
IOException
public BufferedMutator getBufferedMutator(BufferedMutatorParams params) throws IOException
getBufferedMutator
in interface Connection
IOException
public HBaseRequestAdapter createAdapter(TableName tableName)
public BufferedMutator getBufferedMutator(TableName tableName) throws IOException
getBufferedMutator
in interface Connection
IOException
@Deprecated public Table getTable(String tableName) throws IOException
tableName
- a String
object.Table
object.IOException
- if any.public RegionLocator getRegionLocator(TableName tableName) throws IOException
getRegionLocator
in interface Connection
IOException
public boolean isClosed()
isClosed
in interface Connection
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Connection
IOException
public abstract Admin getAdmin() throws IOException
getAdmin
in interface Connection
IOException
protected BigtableTableAdminClient getBigtableTableAdminClient() throws IOException
getBigtableTableAdminClient.
BigtableTableAdminClient
object.IOException
- if any.protected BigtableOptions getOptions()
Getter for the field options
.
BigtableOptions
object.protected Set<TableName> getDisabledTables()
Getter for the field disabledTables
.
Set
object.public BigtableSession getSession()
Getter for the field session
.
BigtableSession
object.