@InternalExtensionOnly public class BigtableConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BIGTABLE_HBASE_CLIENT_ASYNC_CONNECTION_CLASS
For internal use only - public for technical reasons.
|
static String |
BIGTABLE_HBASE_CLIENT_ASYNC_REGISTRY_CLASS
For internal use only - public for technical reasons.
|
static String |
HBASE_CLIENT_ASYNC_CONNECTION_IMPL
For internal use only - public for technical reasons.
|
static String |
HBASE_CLIENT_ASYNC_REGISTRY_IMPL
For internal use only - public for technical reasons.
|
static String |
HBASE_CLIENT_CONNECTION_IMPL
For internal use only - public for technical reasons.
|
Constructor and Description |
---|
BigtableConfiguration() |
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.conf.Configuration |
asyncConfigure(org.apache.hadoop.conf.Configuration conf)
Deprecated.
For HBase 2.x async connections, please use
configure(String, String)
directly.
|
static org.apache.hadoop.conf.Configuration |
configure(org.apache.hadoop.conf.Configuration conf,
String projectId,
String instanceId)
Configure and return an existing
Configuration . |
static org.apache.hadoop.conf.Configuration |
configure(org.apache.hadoop.conf.Configuration conf,
String projectId,
String instanceId,
String appProfileId)
Configure and return an existing
Configuration . |
static org.apache.hadoop.conf.Configuration |
configure(String projectId,
String instanceId)
Create and configure a new
Configuration . |
static org.apache.hadoop.conf.Configuration |
configure(String projectId,
String instanceId,
String appProfileId)
Create and configure a new
Configuration . |
static org.apache.hadoop.hbase.client.Connection |
connect(org.apache.hadoop.conf.Configuration conf)
connect.
|
static org.apache.hadoop.hbase.client.Connection |
connect(String projectId,
String instanceId)
connect.
|
static org.apache.hadoop.hbase.client.Connection |
connect(String projectId,
String instanceId,
String appProfileId)
connect.
|
static Class<? extends org.apache.hadoop.hbase.client.Connection> |
getConnectionClass()
For internal use only - public for technical reasons.
|
static org.apache.hadoop.conf.Configuration |
withCredentials(org.apache.hadoop.conf.Configuration conf,
com.google.auth.Credentials credentials)
Sets a reference to a
Credentials in a Configuration object. |
@InternalApi(value="For internal usage only") public static final String HBASE_CLIENT_CONNECTION_IMPL
@InternalApi(value="For internal usage only") public static final String HBASE_CLIENT_ASYNC_CONNECTION_IMPL
@InternalApi(value="For internal usage only") public static final String HBASE_CLIENT_ASYNC_REGISTRY_IMPL
@InternalApi(value="For internal usage only") public static final String BIGTABLE_HBASE_CLIENT_ASYNC_CONNECTION_CLASS
@InternalApi(value="For internal usage only") public static final String BIGTABLE_HBASE_CLIENT_ASYNC_REGISTRY_CLASS
@InternalApi(value="For internal usage only") public static Class<? extends org.apache.hadoop.hbase.client.Connection> getConnectionClass()
Connection
implementation class found in the classpath.public static org.apache.hadoop.conf.Configuration configure(String projectId, String instanceId)
Configuration
.public static org.apache.hadoop.conf.Configuration configure(String projectId, String instanceId, String appProfileId)
Configuration
.public static org.apache.hadoop.conf.Configuration configure(org.apache.hadoop.conf.Configuration conf, String projectId, String instanceId)
Configuration
.public static org.apache.hadoop.conf.Configuration configure(org.apache.hadoop.conf.Configuration conf, String projectId, String instanceId, String appProfileId)
Configuration
.public static org.apache.hadoop.conf.Configuration withCredentials(org.apache.hadoop.conf.Configuration conf, com.google.auth.Credentials credentials)
Credentials
in a Configuration
object.conf
- a Configuration
object to configure.credentials
- a Credentials
object;Configuration
object.@Deprecated public static org.apache.hadoop.conf.Configuration asyncConfigure(org.apache.hadoop.conf.Configuration conf)
configure(String, String)
directly.
Configure config = BigtableConfiguration.configure(projectId, instanceId);
AsyncConnection asyncConnection = ConnectionFactory.createAsyncConnection(config).get();
conf
- a Configuration
object to configure.Configuration
object.public static org.apache.hadoop.hbase.client.Connection connect(String projectId, String instanceId)
public static org.apache.hadoop.hbase.client.Connection connect(String projectId, String instanceId, String appProfileId)
public static org.apache.hadoop.hbase.client.Connection connect(org.apache.hadoop.conf.Configuration conf)
conf
- a Configuration
object.Connection
object.