Class DynamoDB

    • Constructor Detail

      • DynamoDB

        public DynamoDB​(Regions regionEnum)
        Create a DynamoDB object that talks to the specified AWS region. The underlying service client will use all the default client configurations, including the default credentials provider chain. See AmazonDynamoDBClient() for more information.

        If you need more control over the client configuration, use DynamoDB(AmazonDynamoDB) instead.

        Parameters:
        regionEnum - the AWS region enum
        See Also:
        AmazonDynamoDBClient()
    • Method Detail

      • getTable

        public Table getTable​(String tableName)
        Returns the specified DynamoDB table. No network call is involved.
      • listTables

        public TableCollection<ListTablesResult> listTables()
        Description copied from interface: ListTablesApi
        Returns a collection of all the tables (initialized with the respective table names) associated with the current account and endpoint. The underlying collection is paginated with a page size of 100. A network call is made whenever the collection is iterated across a page boundary.
        Specified by:
        listTables in interface ListTablesApi
      • listTables

        public TableCollection<ListTablesResult> listTables​(String exclusiveStartTableName)
        Description copied from interface: ListTablesApi
        Returns a collection of tables (initialized with the respective table names) associated with the current account and endpoint, starting with a name after the specified exclusiveStartTableName . The underlying collection is paginated with a page size of 100. A network call is made whenever the collection is iterated across a page boundary.
        Specified by:
        listTables in interface ListTablesApi
        Parameters:
        exclusiveStartTableName - The first table name that this operation will evaluate, exclusive of the specified exclusiveStartTableName. Use the value that was returned for LastEvaluatedTableName in a previous operation, so that you can obtain the next page of results.
      • listTables

        public TableCollection<ListTablesResult> listTables​(String exclusiveStartTableName,
                                                            int maxResultSize)
        Description copied from interface: ListTablesApi
        Returns a collection of tables (initialized with the respective table names) up to the specified maxResultSize associated with the current account and endpoint, starting with a name after the specified exclusiveStartTableName. The underlying collection is paginated with a page size of 100. A network call is made whenever the collection is iterated across a page boundary.
        Specified by:
        listTables in interface ListTablesApi
        Parameters:
        exclusiveStartTableName - The first table name that this operation will evaluate exclusive of the specified exclusiveStartTableName. Use the value that was returned for LastEvaluatedTableName in a previous operation, so that you can obtain the next page of results.
        maxResultSize - A maximum number of table names to return.
      • listTables

        public TableCollection<ListTablesResult> listTables​(int maxResultSize)
        Description copied from interface: ListTablesApi
        Returns a collection of tables (initialized with the respective table names) up to the specified maxResultSize associated with the current account and endpoint. The underlying collection is paginated with a page size of 100. A network call is made whenever the collection is iterated across a page boundary.
        Specified by:
        listTables in interface ListTablesApi
        Parameters:
        maxResultSize - A maximum number of table names to return.
      • listTables

        public TableCollection<ListTablesResult> listTables​(ListTablesSpec spec)
        Description copied from interface: ListTablesApi
        List tables by specifying all the details. The underlying collection is paginated with the specified page size (which defaults to 100). A network call is made whenever the collection is iterated across a page boundary.
        Specified by:
        listTables in interface ListTablesApi
        Parameters:
        spec - can be used to specify all the detailed parameters of listing tables.
        Returns:
        a collection of tables associated with the current account and endpoint.
      • shutdown

        public void shutdown()
        Shuts down and release all resources.