public Iterable<String> listTables() { return cloudTableClient.listTables(); }
/** * Illustrates how to list the tables. */ public void BasicListing() { // List the tables with a given prefix. Iterable<String> listTables = tableClient.listTables(tableName, null, null); for (String s : listTables) { act.outputText(view, String.format("List of tables: %s", s)); } } }
/** * Lists the table names in the storage account. * <p> * This method invokes the <a href="http://msdn.microsoft.com/en-us/library/azure/dd179405.aspx">Query Tables</a> * REST API to list the table names, using the Table service endpoint and storage account credentials of this * instance. * * @return An <code>Iterable</code> collection of the table names in the storage account retrieved lazily. */ @DoesServiceRequest public Iterable<String> listTables() { return this.listTables(null); }
/** * Lists the table names in the storage account. * <p> * This method invokes the <a href="http://msdn.microsoft.com/en-us/library/azure/dd179405.aspx">Query Tables</a> * REST API to list the table names, using the Table service endpoint and storage account credentials of this * instance. * * @return An <code>Iterable</code> collection of the table names in the storage account retrieved lazily. */ @DoesServiceRequest public Iterable<String> listTables() { return this.listTables(null); }
/** * Lists the table names in the storage account that match the specified prefix. * <p> * This method invokes the <a href="http://msdn.microsoft.com/en-us/library/azure/dd179405.aspx">Query Tables</a> * REST API to list the table names that match the prefix, using the Table service endpoint and storage account * credentials of this instance. * * @param prefix * A <code>String</code> containing the prefix to match on table names to return. * * @return * An <code>Iterable</code> collection of the table names in the storage account retrieved lazily that match * the specified prefix. */ @DoesServiceRequest public Iterable<String> listTables(final String prefix) { return this.listTables(prefix, null /* options */, null /* opContext */); }
/** * Lists the table names in the storage account that match the specified prefix. * <p> * This method invokes the <a href="http://msdn.microsoft.com/en-us/library/azure/dd179405.aspx">Query Tables</a> * REST API to list the table names that match the prefix, using the Table service endpoint and storage account * credentials of this instance. * * @param prefix * A <code>String</code> containing the prefix to match on table names to return. * * @return * An <code>Iterable</code> collection of the table names in the storage account retrieved lazily that match * the specified prefix. */ @DoesServiceRequest public Iterable<String> listTables(final String prefix) { return this.listTables(prefix, null /* options */, null /* opContext */); }
public Iterable<String> listTables() throws InvalidKeyException, URISyntaxException { CloudTableClient cloudTableClient = connection.getCloudStorageAccount().createCloudTableClient(); return cloudTableClient.listTables(null, null, AzureStorageUtils.getTalendOperationContext()); }
public Iterable<String> listTables() throws InvalidKeyException, URISyntaxException { CloudTableClient cloudTableClient = connection.getCloudStorageAccount().createCloudTableClient(); return cloudTableClient.listTables(null, null, AzureStorageUtils.getTalendOperationContext()); }
@NotNull public List<Table> getTables(@NotNull StorageAccount storageAccount) throws AzureCmdException { List<Table> tList = new ArrayList<Table>(); try { CloudTableClient client = getCloudTableClient(storageAccount); for (String tableName : client.listTables()) { CloudTable cloudTable = client.getTableReference(tableName); String uri = cloudTable.getUri() != null ? cloudTable.getUri().toString() : ""; tList.add(new Table(tableName, uri)); } return tList; } catch (Throwable t) { throw new AzureCmdException("Error retrieving the Table list", t); } }
Iterable<String> listTables = tClient.listTables(tableBaseName, options, null); for (String s : listTables) { assertEquals(s, String.format("%s%s", tableBaseName, new DecimalFormat("#0000").format(currTable))); Iterable<String> listTablesNoPrefix = tClient.listTables(); for (String s : listTablesNoPrefix) { if (s.startsWith(tableBaseName)) {
policy.getPermissions().contains(SharedAccessAccountPermissions.LIST)) { assertEquals(sasTable.getName(), sasClient.listTables(sasTable.getName()).iterator().next()); sasClient.listTables(sasTable.getName()).iterator().next(); fail(); assertEquals(AccountSasTests.ENUMERATION_ERROR_MESSAGE, ex.getMessage()); assertEquals(sasTable.getName(), this.tableClient.listTables(sasTable.getName()).iterator().next());