public class TableServiceClient extends Object
Modifier and Type | Method and Description |
---|---|
void |
createTable(String tableName)
creates the table with the given name.
|
void |
createTableIfNotExists(String tableName)
creates the table with the given name if it does not exist, otherwise no action is taken.
|
com.azure.core.http.rest.Response<Void> |
createTableIfNotExistsWithResponse(String tableName,
com.azure.core.util.Context context)
creates the table with the given name if it does not exist, otherwise no action is taken.
|
com.azure.core.http.rest.Response<Void> |
createTableWithResponse(String tableName,
com.azure.core.util.Context context)
creates the table with the given name.
|
void |
deleteTable(String tableName)
deletes the given table.
|
com.azure.core.http.rest.Response<Void> |
deleteTableWithResponse(String tableName,
com.azure.core.util.Context context)
deletes the given table.
|
String |
getAccountName()
returns the account for this service
|
TablesServiceVersion |
getApiVersion()
returns the version
|
String |
getServiceUrl()
returns Url of this service
|
TableClient |
getTableClient(String name)
gets the Table Client for the given table
|
com.azure.core.http.rest.PagedIterable<TableItem> |
listTables()
query all the tables under the storage account
|
com.azure.core.http.rest.PagedIterable<TableItem> |
listTables(ListTablesOptions options)
query all the tables under the storage account given the query options and returns the ones that fit the
criteria
|
public String getAccountName()
public String getServiceUrl()
public TablesServiceVersion getApiVersion()
public TableClient getTableClient(String name)
name
- the name of the tablepublic void createTable(String tableName)
tableName
- the name of the table to createpublic com.azure.core.http.rest.Response<Void> createTableWithResponse(String tableName, com.azure.core.util.Context context)
tableName
- the name of the table to createcontext
- the context of the querypublic void createTableIfNotExists(String tableName)
tableName
- the name of the table to createpublic com.azure.core.http.rest.Response<Void> createTableIfNotExistsWithResponse(String tableName, com.azure.core.util.Context context)
tableName
- the name of the table to createcontext
- the context of the querypublic void deleteTable(String tableName)
tableName
- the name of the table to be deletedpublic com.azure.core.http.rest.Response<Void> deleteTableWithResponse(String tableName, com.azure.core.util.Context context)
tableName
- the name of the table to be deletedcontext
- the context of the querypublic com.azure.core.http.rest.PagedIterable<TableItem> listTables()
public com.azure.core.http.rest.PagedIterable<TableItem> listTables(ListTablesOptions options)
options
- the odata query objectCopyright © 2020 Microsoft Corporation. All rights reserved.