@InternalApi(value="For internal usage only") public class BigtableConnection extends AbstractBigtableConnection
AbstractBigtableConnection.
For internal use only - public for technical reasons.
locatorCache| Constructor and Description |
|---|
BigtableConnection(org.apache.hadoop.conf.Configuration conf)
Constructor for BigtableConnection.
|
BigtableConnection(org.apache.hadoop.conf.Configuration conf,
ExecutorService pool,
User user) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearRegionLocationCache() |
protected SampledRowKeysAdapter |
createSampledRowKeysAdapter(TableName tableName,
ServerName serverName)
Due to hbase 1.x to 2.x binary incompatibilities.
|
Admin |
getAdmin() |
List<HRegionInfo> |
getAllRegionInfos(TableName tableName) |
Hbck |
getHbck() |
Hbck |
getHbck(ServerName masterServer) |
Table |
getTable(TableName tableName,
ExecutorService ignored) |
TableBuilder |
getTableBuilder(TableName tableName,
ExecutorService pool) |
abort, close, createAdapter, getBigtableApi, getBigtableSettings, getBufferedMutator, getBufferedMutator, getConfiguration, getDisabledTables, getRegionLocator, getTable, getTable, isAborted, isClosed, toStringpublic BigtableConnection(org.apache.hadoop.conf.Configuration conf)
throws IOException
conf - a Configuration object.IOException - if any.public BigtableConnection(org.apache.hadoop.conf.Configuration conf,
ExecutorService pool,
User user)
throws IOException
IOExceptionprotected SampledRowKeysAdapter createSampledRowKeysAdapter(TableName tableName, ServerName serverName)
HRegionLocation(org.apache.hadoop.hbase.client.RegionInfo, ServerName) will
fail with NoSuchMethodException if not recompiled with hbase 2.0 dependencies. Hence the
override. See SampledRowKeysAdapter for more details.createSampledRowKeysAdapter in class AbstractBigtableConnectionpublic Admin getAdmin() throws IOException
getAdmin in interface ConnectiongetAdmin in class AbstractBigtableConnectionIOExceptionpublic TableBuilder getTableBuilder(TableName tableName, ExecutorService pool)
public Table getTable(TableName tableName, ExecutorService ignored) throws IOException
IOExceptionpublic void clearRegionLocationCache()
public List<HRegionInfo> getAllRegionInfos(TableName tableName) throws IOException
IOExceptionpublic Hbck getHbck() throws IOException
IOExceptionpublic Hbck getHbck(ServerName masterServer) throws IOException
IOException