/** * Returns the specified DynamoDB table. No network call is involved. */ public Table getTable(String tableName) { return new Table(client, tableName); }
private static List<Table> toTableList(AmazonDynamoDB client, List<String> tableNames) { if (tableNames == null) return null; List<Table> result = new ArrayList<Table>(tableNames.size()); for (String tableName: tableNames) result.add(new Table(client, tableName)); return result; } }
/** * Creates the specified table in DynamoDB. */ public Table createTable(CreateTableRequest req) { CreateTableResult result = client.createTable(req); return new Table(client, req.getTableName(), result.getTableDescription()); }
/** * Returns the specified DynamoDB table. No network call is involved. */ public Table getTable(String tableName) { return new Table(client, tableName); }
public DeleteDynamoDBTable(AmazonDynamoDB dynamoDB, String tableName, String partitionKeyName) { super(dynamoDB, tableName, partitionKeyName); this.table = new Table(dynamoDB, tableName); }
private static List<Table> toTableList(AmazonDynamoDB client, List<String> tableNames) { if (tableNames == null) return null; List<Table> result = new ArrayList<Table>(tableNames.size()); for (String tableName: tableNames) result.add(new Table(client, tableName)); return result; } }
/** * Creates the specified table in DynamoDB. */ public Table createTable(CreateTableRequest req) { CreateTableResult result = client.createTable(req); return new Table(client, req.getTableName(), result.getTableDescription()); }