Tabnine Logo
BigtableConfiguration.connect
Code IndexAdd Tabnine to your IDE (free)

How to use
connect
method
in
com.google.cloud.bigtable.hbase.BigtableConfiguration

Best Java code snippets using com.google.cloud.bigtable.hbase.BigtableConfiguration.connect (Showing top 18 results out of 315)

origin: GoogleCloudPlatform/cloud-bigtable-examples

public static void connect() throws IOException {
 connection = BigtableConfiguration.connect(projectId, instanceId);
}
// [END bigtable_connect]
origin: GoogleCloudPlatform/cloud-bigtable-examples

public static void connectWithAppProfile() throws IOException {
 connection = BigtableConfiguration.connect(projectId, instanceId, appProfileId);
}
// [END bigtable_connect_app_profile]
origin: spotify/styx

public static Connection createBigTableConnection(Config config) {
 final String projectId = config.getString(BIGTABLE_PROJECT_ID);
 final String instanceId = config.getString(BIGTABLE_INSTANCE_ID);
 LOG.info("Creating Bigtable connection for project:{}, instance:{}",
      projectId, instanceId);
 final Configuration bigtableConfiguration = new Configuration();
 bigtableConfiguration.set("google.bigtable.project.id", projectId);
 bigtableConfiguration.set("google.bigtable.instance.id", instanceId);
 bigtableConfiguration.setBoolean("google.bigtable.rpc.use.timeouts", true);
 return BigtableConfiguration.connect(bigtableConfiguration);
}
origin: com.google.cloud.bigtable/bigtable-hbase

/**
 * <p>connect.</p>
 *
 * @param projectId a {@link java.lang.String} object.
 * @param instanceId a {@link java.lang.String} object.
 * @return a {@link org.apache.hadoop.hbase.client.Connection} object.
 */
public static Connection connect(String projectId, String instanceId) {
 return connect(configure(projectId, instanceId));
}
origin: com.google.cloud.bigtable/bigtable-hbase-dataflow

protected synchronized Connection getConnection() {
 if (connection == null) {
  // This uses cached grpc channels, if there was a previous connection created.
  connection = BigtableConfiguration.connect(config.toHBaseConfig());
 }
 return connection;
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * <p>connect.</p>
 *
 * @param projectId a {@link java.lang.String} object.
 * @param instanceId a {@link java.lang.String} object.
 * @return a {@link org.apache.hadoop.hbase.client.Connection} object.
 */
public static Connection connect(String projectId, String instanceId) {
 return connect(configure(projectId, instanceId));
}
origin: locationtech/geowave

 public synchronized Connection getConnection(final String projectId, final String instanceId)
   throws IOException {
  String key = projectId + "_" + instanceId;
  Connection connection = connectorCache.get(key);
  if (connection == null) {
   final Configuration config = BigtableConfiguration.configure(projectId, instanceId);

   config.setInt(HBASE_CONFIGURATION_TIMEOUT, 120000);

   connection = BigtableConfiguration.connect(config);
   connectorCache.put(key, connection);
  }

  return connection;
 }
}
origin: com.google.cloud.bigtable/bigtable-hbase

/**
 * <p>connect.</p>
 *
 * @param projectId a {@link java.lang.String} object.
 * @param instanceId a {@link java.lang.String} object.
 * @param appProfileId a {@link java.lang.String} object.
 * @return a {@link org.apache.hadoop.hbase.client.Connection} object.
 */
public static Connection connect(String projectId, String instanceId, String appProfileId) {
 return connect(configure(projectId, instanceId, appProfileId));
}
origin: com.google.cloud.bigtable/bigtable-hbase-beam

protected synchronized Connection getConnection() {
 if (connection == null) {
  // This uses cached grpc channels, if there was a previous connection created.
  connection = BigtableConfiguration.connect(config.toHBaseConfig());
 }
 return connection;
}
origin: GoogleCloudPlatform/cloud-bigtable-client

protected synchronized Connection getConnection() {
 if (connection == null) {
  // This uses cached grpc channels, if there was a previous connection created.
  connection = BigtableConfiguration.connect(config.toHBaseConfig());
 }
 return connection;
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * <p>connect.</p>
 *
 * @param projectId a {@link java.lang.String} object.
 * @param instanceId a {@link java.lang.String} object.
 * @param appProfileId a {@link java.lang.String} object.
 * @return a {@link org.apache.hadoop.hbase.client.Connection} object.
 */
public static Connection connect(String projectId, String instanceId, String appProfileId) {
 return connect(configure(projectId, instanceId, appProfileId));
}
origin: GoogleCloudPlatform/cloud-bigtable-examples

public static void writeTestData(String projectId, String instanceId,
  TableName tableName, long rowCount, int valueSize) throws IOException {
 System.out.println("Writing to table: " + tableName);
 try (Connection conn = BigtableConfiguration.connect(projectId, instanceId)) {
  BigtableUtilities.createTable(tableName, conn);
  runMutationTests(conn, tableName, rowCount, valueSize);
 }
 System.out.println("Closed the connection");
}
origin: GoogleCloudPlatform/cloud-bigtable-examples

try (Connection connection = BigtableConfiguration.connect(projectId, instanceId)) {
origin: gojektech/feast

BigtableConfiguration.connect(
  options.get(BigTableFeatureStorage.OPT_BIGTABLE_PROJECT),
  options.get(BigTableFeatureStorage.OPT_BIGTABLE_INSTANCE));
origin: GoogleCloudPlatform/cloud-bigtable-examples

try (Connection connection = BigtableConfiguration.connect(projectId, instanceId)) {
origin: GoogleCloudPlatform/cloud-bigtable-examples

try (Connection connection = BigtableConfiguration.connect(projectId, instanceId)) {
origin: GoogleCloudPlatform/cloud-bigtable-client

BigtableConfiguration.connect(opts.getBigtableProject(), opts.getBigtableInstanceId())) {
origin: gojek/feast

String btProjectId = options.get(BigTableStorageManager.OPT_BIGTABLE_PROJECT);
String instanceId = options.get(BigTableStorageManager.OPT_BIGTABLE_INSTANCE);
Connection connection = BigtableConfiguration.connect(btProjectId, instanceId);
storageManager = new BigTableStorageManager(id, connection);
break;
com.google.cloud.bigtable.hbaseBigtableConfigurationconnect

Javadoc

connect.

Popular methods of BigtableConfiguration

  • configure
    Configure and return an existing org.apache.hadoop.conf.Configuration.
  • getConnectionClass

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Collectors (java.util.stream)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now