org.apache.hadoop.hbase.client
Interface CommonConnection
-
- All Superinterfaces:
- AutoCloseable, Closeable
- All Known Implementing Classes:
- AbstractBigtableConnection, BigtableAsyncConnection, BigtableConnection, BigtableConnection
public interface CommonConnection extends Closeable
Common interface forAbstractBigtableConnection
and HBase 2's BigtableAsyncConnection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description List<HRegionInfo>
getAllRegionInfos(TableName tableName)
Retrieve a region information on a table.org.apache.hadoop.conf.Configuration
getConfiguration()
Returns theConfiguration
object used by this instance.Set<TableName>
getDisabledTables()
Getter for the fielddisabledTables
.BigtableOptions
getOptions()
Getter for the fieldoptions
.BigtableSession
getSession()
Get aBigtableSession
on which operations can be performed.
-
-
-
Method Detail
-
getSession
BigtableSession getSession()
Get aBigtableSession
on which operations can be performed.- Returns:
- a
BigtableSession
object.
-
getConfiguration
org.apache.hadoop.conf.Configuration getConfiguration()
Returns theConfiguration
object used by this instance. The reference returned is not a copy, so any change made to it will affect this instance.- Returns:
- a
Configuration
object.
-
getOptions
BigtableOptions getOptions()
Getter for the fieldoptions
.- Returns:
- a
BigtableOptions
object.
-
getDisabledTables
Set<TableName> getDisabledTables()
Getter for the fielddisabledTables
.- Returns:
- a
Set
object that are disabled.
-
getAllRegionInfos
List<HRegionInfo> getAllRegionInfos(TableName tableName) throws IOException
Retrieve a region information on a table.- Parameters:
tableName
- Name of the table for which to return region info.- Returns:
- A
List
HRegionInfo object - Throws:
IOException
- if any.
-
-