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

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

Best Java code snippets using com.google.cloud.bigtable.grpc.BigtableTableAdminClient.snapshotTableAsync (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: GoogleCloudPlatform/cloud-bigtable-client

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

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

/**
 * Creates a snapshot from an existing table.  NOTE: Cloud Bigtable has a cleanup policy
 *
 * @param snapshotName
 * @param tableName
 * @return
 * @throws IOException
 */
protected Operation snapshotTable(String snapshotName, TableName tableName)
  throws IOException {
 SnapshotTableRequest.Builder requestBuilder = SnapshotTableRequest.newBuilder()
   .setCluster(getSnapshotClusterName().toString())
   .setSnapshotId(snapshotName)
   .setName(options.getInstanceName().toTableNameStr(tableName.getNameAsString()));
 int ttlSecs = configuration.getInt(BigtableOptionsFactory.BIGTABLE_SNAPSHOT_DEFAULT_TTL_SECS_KEY, -1);
 if (ttlSecs > 0) {
  requestBuilder.setTtl(
    Duration.newBuilder().setSeconds(ttlSecs).build()
  );
 }
 ListenableFuture<Operation> future = bigtableTableAdminClient
   .snapshotTableAsync(requestBuilder.build());
 return Futures.getChecked(future, IOException.class);
}
origin: GoogleCloudPlatform/cloud-bigtable-client

/**
 * Creates a snapshot from an existing table.  NOTE: Cloud Bigtable has a cleanup policy
 *
 * @param snapshotName
 * @param tableName
 * @return
 * @throws IOException
 */
protected Operation snapshotTable(String snapshotName, TableName tableName)
  throws IOException {
 SnapshotTableRequest.Builder requestBuilder = SnapshotTableRequest.newBuilder()
   .setCluster(getSnapshotClusterName().toString())
   .setSnapshotId(snapshotName)
   .setName(options.getInstanceName().toTableNameStr(tableName.getNameAsString()));
 int ttlSecs = configuration.getInt(BigtableOptionsFactory.BIGTABLE_SNAPSHOT_DEFAULT_TTL_SECS_KEY, -1);
 if (ttlSecs > 0) {
  requestBuilder.setTtl(
    Duration.newBuilder().setSeconds(ttlSecs).build()
  );
 }
 ListenableFuture<Operation> future = bigtableTableAdminClient
   .snapshotTableAsync(requestBuilder.build());
 return Futures.getChecked(future, IOException.class);
}
com.google.cloud.bigtable.grpcBigtableTableAdminClientsnapshotTableAsync

Javadoc

Creates a new snapshot from a table in a specific cluster.

Popular methods of BigtableTableAdminClient

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

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
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