BigtableConfiguration (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.hbase

Class BigtableConfiguration



  • public class BigtableConfiguration
    extends Object
    This class provides a simplified mechanism of creating a programmatic Bigtable Connection.
    Version:
    $Id: $Id
    Author:
    sduskis
    • Constructor Detail

      • BigtableConfiguration

        public BigtableConfiguration()
    • Method Detail

      • getConnectionClass

        public static Class<? extends Connection> getConnectionClass()
        Returns:
        the default bigtable Connection implementation class found in the classpath.
      • configure

        public static org.apache.hadoop.conf.Configuration configure(String projectId,
                                                                     String instanceId)
        Create and configure a new Configuration.
        Parameters:
        projectId - a String object.
        instanceId - a String object.
        Returns:
        a Configuration object.
      • configure

        public static org.apache.hadoop.conf.Configuration configure(String projectId,
                                                                     String instanceId,
                                                                     String appProfileId)
        Create and configure a new Configuration.
        Parameters:
        projectId - a String object.
        instanceId - a String object.
        appProfileId - a String object.
        Returns:
        a Configuration object.
      • configure

        public static org.apache.hadoop.conf.Configuration configure(org.apache.hadoop.conf.Configuration conf,
                                                                     String projectId,
                                                                     String instanceId)
        Configure and return an existing Configuration.
        Parameters:
        conf - a Configuration object to configure.
        projectId - a String object.
        instanceId - a String object.
        Returns:
        the modified Configuration object.
      • configure

        public 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.
        Parameters:
        conf - a Configuration object to configure.
        projectId - a String object.
        instanceId - a String object.
        appProfileId - a String object.
        Returns:
        the modified Configuration object.
      • withCredentials

        public 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.
        Parameters:
        conf - a Configuration object to configure.
        credentials - a Credentials object;
        Returns:
        a Configuration object.
      • asyncConfigure

        public static org.apache.hadoop.conf.Configuration asyncConfigure(org.apache.hadoop.conf.Configuration conf)
        Configuration for getting a org.apache.hadoop.hbase.client.AsyncConnection.
        Parameters:
        conf - a Configuration object to configure.
        Returns:
        the modified Configuration object.
      • connect

        public static Connection connect(org.apache.hadoop.conf.Configuration conf)
        connect.
        Parameters:
        conf - a Configuration object.
        Returns:
        a Connection object.