![JAR search and dependency download from the Maven repository](/logo.png)
com.google.cloud.bigtable.hbase.wrappers.AdminClientWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bigtable-hbase Show documentation
Show all versions of bigtable-hbase Show documentation
This project contains artifacts that adapt bigtable client to work with
hbase.
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.bigtable.hbase.wrappers;
import com.google.api.core.ApiFuture;
import com.google.api.core.InternalApi;
import com.google.cloud.bigtable.admin.v2.models.Backup;
import com.google.cloud.bigtable.admin.v2.models.Cluster;
import com.google.cloud.bigtable.admin.v2.models.CreateBackupRequest;
import com.google.cloud.bigtable.admin.v2.models.CreateTableRequest;
import com.google.cloud.bigtable.admin.v2.models.ModifyColumnFamiliesRequest;
import com.google.cloud.bigtable.admin.v2.models.RestoreTableRequest;
import com.google.cloud.bigtable.admin.v2.models.RestoredTableResult;
import com.google.cloud.bigtable.admin.v2.models.Table;
import com.google.longrunning.Operation;
import com.google.protobuf.ByteString;
import java.io.IOException;
import java.util.List;
/**
* Common API surface for admin operation.
*
* For internal use only - public for technical reasons.
*/
@InternalApi("For internal usage only")
public interface AdminClientWrapper extends AutoCloseable {
/**
* Creates a new table asynchronously. The table can be created with a full set of initial column
* families, specified in the request.
*/
ApiFuture
createTableAsync(CreateTableRequest request);
/** Gets the details of a table asynchronously. */
ApiFuture getTableAsync(String tableId);
/** Lists the names of all tables in an instance asynchronously. */
ApiFuture> listTablesAsync();
/** Permanently deletes a specified table and all of its data. */
ApiFuture deleteTableAsync(String tableId);
/** Creates, modifies or deletes a new column family within a specified table. */
ApiFuture modifyFamiliesAsync(ModifyColumnFamiliesRequest request);
/** Permanently deletes all rows in a range. */
ApiFuture dropRowRangeAsync(String tableId, ByteString rowKeyPrefix);
/** Asynchronously drops all data in the table */
ApiFuture dropAllRowsAsync(String tableId);
/**
* Creates a new backup from a table in a specific cluster.
*
* @param request a {@link CreateBackupRequest} object.
* @return The long running {@link Operation} for the request.
*/
ApiFuture createBackupAsync(CreateBackupRequest request);
/** Lists all backups associated with the specified cluster. */
ApiFuture> listBackupsAsync(String clusterId);
/** Permanently deletes the specified backup. */
ApiFuture deleteBackupAsync(String clusterId, String backupId);
/**
* Creates a new table from a backup.
*
* @return The long running {@link Operation} for the request.
*/
ApiFuture restoreTableAsync(RestoreTableRequest request);
List listClusters(String instanceId);
@Override
void close() throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy