com.baidubce.services.tablestorage
Class TableStorageClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.tablestorage.AbstractTableStorageBceClient
          extended by com.baidubce.services.tablestorage.TableStorageClient

public class TableStorageClient
extends AbstractTableStorageBceClient

Provides the client for accessing the Baidu TableStorage.


Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
TableStorageClient(BceClientConfiguration config, String instanceName)
          Constructs a new TableStorage client.
 
Method Summary
 BatchDeleteRowResponse batchDeleteRow(BatchDeleteRowRequest request)
          Batch delete the rows of the table in tablestorage.
 BatchGetRowResponse batchGetRow(BatchGetRowRequest request)
          Batch get the rows of the table in tablestorage.
 BatchPutRowResponse batchPutRow(BatchPutRowRequest request)
          Batch put the rows to the table in tablestorage.
 CreateTableResponse createTable(CreateTableRequest request)
          Create table in tablestorage.
 DeleteRowResponse deleteRow(DeleteRowRequest request)
          Delete the row of the table in tablestorage.
 DropTableResponse dropTable(DropTableRequest request)
          Drop table in tablestorage.
 GetRowResponse getRow(GetRowRequest request)
          Get the row of the table in tablestorage.
 ListKeyRangesResponse listKeyRanges(ListKeyRangesRequest request)
          List key range in table from tablestorage.
 ListTablesResponse listTables(ListTablesRequest request)
          List tables from tablestorage.
 PutRowResponse putRow(PutRowRequest request)
          Put the row to the table in tablestorage.
 ScanResponse scan(ScanRequest request)
          Scan the rows of table in tablestorage.
 ShowTableResponse showTable(ShowTableRequest request)
          Show the table named tableName from tablestorage.
 TableState showTableState(String tableName)
          Show the state of the table named tableName from tablestorage.
 UpdateTableResponse updateTable(UpdateTableRequest request)
          Update table in tablestorage.
 
Methods inherited from class com.baidubce.services.tablestorage.AbstractTableStorageBceClient
createRequest, fillInHeadAndBody
 
Methods inherited from class com.baidubce.AbstractBceClient
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableStorageClient

public TableStorageClient(BceClientConfiguration config,
                          String instanceName)
Constructs a new TableStorage client.

Method Detail

createTable

public CreateTableResponse createTable(CreateTableRequest request)
Create table in tablestorage.

Parameters:
request - Container for the necessary parameters to execute the create table method on tablestorage.
Returns:
The response from the create table method, as returned by tablestorage.

updateTable

public UpdateTableResponse updateTable(UpdateTableRequest request)
Update table in tablestorage.

Parameters:
request - Container for the necessary parameters to execute the update table method on tablestorage.
Returns:
The response from the update table method, as returned by tablestorage.

dropTable

public DropTableResponse dropTable(DropTableRequest request)
Drop table in tablestorage.

Parameters:
request - Container for the necessary parameters to execute the drop table method on tablestorage.
Returns:
The response from the drop table method, as returned by tablestorage.

listTables

public ListTablesResponse listTables(ListTablesRequest request)
List tables from tablestorage.

Parameters:
request - Container for the necessary parameters to execute the list tables method on tablestorage.
Returns:
The response from the list tables method, as returned by tablestorage.

showTableState

public TableState showTableState(String tableName)
Show the state of the table named tableName from tablestorage.

Parameters:
tableName - the name of table in tablestorage.
Returns:
state of the table in tablestorage.

showTable

public ShowTableResponse showTable(ShowTableRequest request)
Show the table named tableName from tablestorage.

Parameters:
request - Container for the necessary parameters to execute the show table method on tablestorage.
Returns:
The response from the show table method, as returned by tablestorage.

listKeyRanges

public ListKeyRangesResponse listKeyRanges(ListKeyRangesRequest request)
List key range in table from tablestorage.

Parameters:
request - Container for the necessary parameters to execute the list keyRanges method on tablestorage.
Returns:
The response from the list keyRanges method, as returned by tablestorage.

getRow

public GetRowResponse getRow(GetRowRequest request)
Get the row of the table in tablestorage.

Parameters:
request - Container for the necessary parameters to execute the get row method on tablestorage.
Returns:
The response from the get row method, as returned by tablestorage.

putRow

public PutRowResponse putRow(PutRowRequest request)
Put the row to the table in tablestorage.

Parameters:
request - Container for the necessary parameters to execute the put row method on tablestorage.
Returns:
The response from the put row method, as returned by tablestorage.

deleteRow

public DeleteRowResponse deleteRow(DeleteRowRequest request)
Delete the row of the table in tablestorage.

Parameters:
request - Container for the necessary parameters to execute the delete row method on tablestorage.
Returns:
The response from the delete row method, as returned by tablestorage.

batchGetRow

public BatchGetRowResponse batchGetRow(BatchGetRowRequest request)
Batch get the rows of the table in tablestorage.

Parameters:
request - Container for the necessary parameters to execute the batch get rows row method on tablestorage.
Returns:
The response from the batch get rows method, as returned by tablestorage.

batchPutRow

public BatchPutRowResponse batchPutRow(BatchPutRowRequest request)
Batch put the rows to the table in tablestorage.

Parameters:
request - Container for the necessary parameters to execute the batch put rows method on tablestorage.
Returns:
The response from the batch put rows method, as returned by tablestorage.

batchDeleteRow

public BatchDeleteRowResponse batchDeleteRow(BatchDeleteRowRequest request)
Batch delete the rows of the table in tablestorage.

Parameters:
request - Container for the necessary parameters to execute batch delete rows method on tablestorage.
Returns:
The response from the batch delete rows method, as returned by tablestorage.

scan

public ScanResponse scan(ScanRequest request)
Scan the rows of table in tablestorage.

Parameters:
request - Container for the necessary parameters to execute the scan method on tablestorage.
Returns:
The response from the scan method, as returned by tablestorage.


Copyright © 2020. All rights reserved.