microsoft-azure-storage/src/com/microsoft/azure/storage/table/CloudTableClient.java
@SuppressWarnings("unchecked")
    @DoesServiceRequest
    public ResultSegment<String> listTablesSegmented(final String prefix, final Integer maxResults,
            final ResultContinuation continuationToken, final TableRequestOptions options,
            final OperationContext opContext) throws StorageException {
        if (null != maxResults) {
            Utility.assertGreaterThanOrEqual("maxResults", maxResults, 1);
        }
        
        return (ResultSegment<String>) this.executeQuerySegmentedImpl(
                this.generateListTablesQuery(prefix).take(maxResults), this.tableNameResolver, continuationToken,
                options, opContext);
    }
@SuppressWarnings("unchecked")
    @DoesServiceRequest
    public ResultSegment<String> listTablesSegmented(final String prefix, final Integer maxResults,
            final ResultContinuation continuationToken, final TableRequestOptions options,
            final OperationContext opContext) throws StorageException {
        if (null != maxResults) {
            Utility.assertGreaterThanOrEqual("maxResults", maxResults, 1);
        }
        
        return (ResultSegment<String>) this.executeQuerySegmentedImpl(
                this.generateListTablesQuery(prefix).take(maxResults), this.tableNameResolver, continuationToken,
                options, opContext);
    }
@ SuppressWarnings ( "unchecked" ) @ DoesServiceRequest public ResultSegment < String > listTablesSegmented ( final String prefix , final Integer maxResults , final ResultContinuation continuationToken , final TableRequestOptions options , final OperationContext opContext ) throws StorageException { if ( null != maxResults ) { Utility . assertGreaterThanOrEqual ( "maxResults" , maxResults , 1 ) ; } return ( ResultSegment < String > ) this . executeQuerySegmentedImpl ( this . generateListTablesQuery ( prefix ) . take ( maxResults ) , this . tableNameResolver , continuationToken , options , opContext ) ; }
Lists up to the specified maximum of the table names in the storage account that match the specified prefix in a
resumable mode with the specified {@link ResultContinuation} continuation token, using the specified
{@link TableRequestOptions} and {@link OperationContext}. This method allows listing of tables to be resumed
after returning a page of results, using information returned by the server in the {@link ResultSegment} object.
<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.

Use the {@link TableRequestOptions} to override execution options such as the timeout or retry policy for the
operation.

@param prefix
A <code>String</code> containing the prefix to match on table names to return.
@param maxResults
The maximum number of table names to return in the {@link ResultSegment}. If this parameter is null,
the query will list up to the maximum 1,000 results.
@param continuationToken
A {@link ResultContinuation} object representing a continuation token from the server when the
operation returns a partial result. Specify <code>null</code> on the initial call. Call the
{@link ResultSegment#getContinuationToken()} method on the result to obtain the
{@link ResultContinuation} object to use in the next call to resume the query.
@param options
A {@link TableRequestOptions} object that specifies execution options such as retry policy and timeout
settings for the operation. Specify <code>null</code> to use the request options specified on the
{@link CloudTableClient}.
@param opContext
An {@link OperationContext} object for tracking the current operation. Specify <code>null</code> to
safely ignore operation context.

@return
A {@link ResultSegment} of <code>String</code> objects containing table names in the storage account.

@throws StorageException
if a storage service error occurred during the operation.
Lists up to the specified maximum of the table names in the storage account that match the specified prefix in a resumable mode with the specified { @link ResultContinuation } continuation token using the specified { @link TableRequestOptions } and { @link OperationContext } . This method allows listing of tables to be resumed after returning a page of results using information returned by the server in the { @link ResultSegment } object . <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 .