Codota Logo
BigtableTableAdminClient.createTableFromSnapshotAsync
Code IndexAdd Codota to your IDE (free)

How to use
createTableFromSnapshotAsync
method
in
com.google.cloud.bigtable.grpc.BigtableTableAdminClient

Best Java code snippets using com.google.cloud.bigtable.grpc.BigtableTableAdminClient.createTableFromSnapshotAsync (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: com.google.cloud.bigtable/bigtable-hbase-2.x

 /**
  * Creates a new table from a snapshot.
  * @param request a {@link CreateTableFromSnapshotRequest} object.
  * @return The long running {@link Operation} for the request.
  */
 public CompletableFuture<Operation> createTableFromSnapshotAsync(CreateTableFromSnapshotRequest request) {
  return toCompletableFuture(adminClient.createTableFromSnapshotAsync(request));
 }
}
origin: GoogleCloudPlatform/cloud-bigtable-client

 /**
  * Creates a new table from a snapshot.
  * @param request a {@link CreateTableFromSnapshotRequest} object.
  * @return The long running {@link Operation} for the request.
  */
 public CompletableFuture<Operation> createTableFromSnapshotAsync(CreateTableFromSnapshotRequest request) {
  return toCompletableFuture(adminClient.createTableFromSnapshotAsync(request));
 }
}
origin: com.google.cloud.bigtable/bigtable-hbase

/** {@inheritDoc} */
@Override
public void cloneSnapshot(String snapshotName, TableName tableName)
  throws IOException, TableExistsException, RestoreSnapshotException {
 CreateTableFromSnapshotRequest request = CreateTableFromSnapshotRequest.newBuilder()
   .setParent(options.getInstanceName().toString())
   .setTableId(tableName.getNameAsString())
   .setSourceSnapshot(getClusterName().toSnapshotName(snapshotName))
   .build();
 Operation operation = Futures
   .getChecked(bigtableTableAdminClient.createTableFromSnapshotAsync(request),
     IOException.class);
 try {
  connection.getSession().getInstanceAdminClient().
    waitForOperation(operation);
 } catch (TimeoutException e) {
  throw new IOException("Timed out waiting for cloneSnapshot operation to finish", e);
 }
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/** {@inheritDoc} */
@Override
public void cloneSnapshot(String snapshotName, TableName tableName)
  throws IOException, TableExistsException, RestoreSnapshotException {
 CreateTableFromSnapshotRequest request = CreateTableFromSnapshotRequest.newBuilder()
   .setParent(options.getInstanceName().toString())
   .setTableId(tableName.getNameAsString())
   .setSourceSnapshot(getClusterName().toSnapshotName(snapshotName))
   .build();
 Operation operation = Futures
   .getChecked(bigtableTableAdminClient.createTableFromSnapshotAsync(request),
     IOException.class);
 try {
  connection.getSession().getInstanceAdminClient().
    waitForOperation(operation);
 } catch (TimeoutException e) {
  throw new IOException("Timed out waiting for cloneSnapshot operation to finish", e);
 }
}
com.google.cloud.bigtable.grpcBigtableTableAdminClientcreateTableFromSnapshotAsync

Javadoc

Creates a new table from a snapshot.

Popular methods of BigtableTableAdminClient

  • getTable
  • createTable
  • createTableAsync
  • deleteTable
  • deleteSnapshotAsync
  • deleteTableAsync
  • dropRowRange
  • dropRowRangeAsync
  • getTableAsync
  • listSnapshotsAsync
  • listTables
  • listTablesAsync
  • listTables,
  • listTablesAsync,
  • modifyColumnFamily,
  • modifyColumnFamilyAsync,
  • snapshotTableAsync,
  • getSnapshotAsync

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • putExtra (Intent)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • String (java.lang)
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now