public class TableServiceClient extends Object
TableServiceClientBuilder.buildClient() method on a
TableServiceClientBuilder object.| Modifier and Type | Method and Description |
|---|---|
void |
createTable(String tableName)
Creates a table within the Tables service.
|
void |
createTable(String tableName,
Duration timeout)
Creates a table within the Tables service.
|
void |
createTableIfNotExists(String tableName)
Creates a table within the Tables service if the table does not already exist.
|
void |
createTableIfNotExists(String tableName,
Duration timeout)
Creates a table within the Tables service if the table does not already exist.
|
com.azure.core.http.rest.Response<Void> |
createTableIfNotExistsWithResponse(String tableName,
Duration timeout,
com.azure.core.util.Context context)
Creates a table within the Tables service if the table does not already exist.
|
com.azure.core.http.rest.Response<Void> |
createTableWithResponse(String tableName,
Duration timeout,
com.azure.core.util.Context context)
Creates a table within the Tables service.
|
void |
deleteTable(String tableName)
Deletes a table within the Tables service.
|
void |
deleteTable(String tableName,
Duration timeout)
Deletes a table within the Tables service.
|
com.azure.core.http.rest.Response<Void> |
deleteTableWithResponse(String tableName,
Duration timeout,
com.azure.core.util.Context context)
Deletes a table within the Tables service.
|
String |
getAccountName()
Gets the name of the account containing the table.
|
TablesServiceVersion |
getApiVersion()
Gets the REST API version used by this client.
|
String |
getServiceUrl()
Gets the absolute URL for the Tables service endpoint.
|
TableClient |
getTableClient(String tableName)
Gets a
TableClient instance for the provided table in the account. |
com.azure.core.http.rest.PagedIterable<TableItem> |
listTables()
Lists all tables within the account.
|
com.azure.core.http.rest.PagedIterable<TableItem> |
listTables(ListTablesOptions options)
Lists tables using the parameters in the provided options.
|
public String getAccountName()
public String getServiceUrl()
public TablesServiceVersion getApiVersion()
public TableClient getTableClient(String tableName)
TableClient instance for the provided table in the account.tableName - The name of the table.TableClient instance for the provided table in the account.IllegalArgumentException - if tableName is null or empty.public void createTable(String tableName)
tableName - The name of the table to create.IllegalArgumentException - if tableName is null or empty.com.azure.data.tables.implementation.models.TableServiceErrorException - if a table with the same name already exists within the service.public void createTable(String tableName, Duration timeout)
tableName - The name of the table to create.timeout - Duration to wait for the operation to complete.IllegalArgumentException - if tableName is null or empty.com.azure.data.tables.implementation.models.TableServiceErrorException - if a table with the same name already exists within the service.RuntimeException - if the provided timeout expires.public com.azure.core.http.rest.Response<Void> createTableWithResponse(String tableName, Duration timeout, com.azure.core.util.Context context)
tableName - The name of the table to create.timeout - Duration to wait for the operation to complete.context - Additional context that is passed through the HTTP pipeline during the service call.IllegalArgumentException - if tableName is null or empty.com.azure.data.tables.implementation.models.TableServiceErrorException - if a table with the same name already exists within the service.RuntimeException - if the provided timeout expires.public void createTableIfNotExists(String tableName)
tableName - The name of the table to create.IllegalArgumentException - if tableName is null or empty.public void createTableIfNotExists(String tableName, Duration timeout)
tableName - The name of the table to create.timeout - Duration to wait for the operation to complete.IllegalArgumentException - if tableName is null or empty.RuntimeException - if the provided timeout expires.public com.azure.core.http.rest.Response<Void> createTableIfNotExistsWithResponse(String tableName, Duration timeout, com.azure.core.util.Context context)
tableName - The name of the table to create.timeout - Duration to wait for the operation to complete.context - Additional context that is passed through the HTTP pipeline during the service call.IllegalArgumentException - if tableName is null or empty.RuntimeException - if the provided timeout expires.public void deleteTable(String tableName)
tableName - The name of the table to delete.IllegalArgumentException - if tableName is null or empty.com.azure.data.tables.implementation.models.TableServiceErrorException - if no table with the provided name exists within the service.public void deleteTable(String tableName, Duration timeout)
tableName - The name of the table to delete.timeout - Duration to wait for the operation to complete.IllegalArgumentException - if tableName is null or empty.com.azure.data.tables.implementation.models.TableServiceErrorException - if no table with the provided name exists within the service.RuntimeException - if the provided timeout expires.public com.azure.core.http.rest.Response<Void> deleteTableWithResponse(String tableName, Duration timeout, com.azure.core.util.Context context)
tableName - The name of the table to delete.timeout - Duration to wait for the operation to complete.context - Additional context that is passed through the HTTP pipeline during the service call.IllegalArgumentException - if tableName is null or empty.com.azure.data.tables.implementation.models.TableServiceErrorException - if no table with the provided name exists within the service.RuntimeException - if the provided timeout expires.public com.azure.core.http.rest.PagedIterable<TableItem> listTables()
public com.azure.core.http.rest.PagedIterable<TableItem> listTables(ListTablesOptions options)
options - The `filter` and `top` OData query options to apply to this operation.IllegalArgumentException - if one or more of the OData query options in options is malformed.Copyright © 2021 Microsoft Corporation. All rights reserved.