@Immutable public interface Table
To get data from the table use frame() method. To
create a new item in the table (or replace the existing one) use
Table#put(Attributes) method. For example:
Region region = new Region.Simple(...);
Table table = region.table("employees");
table.put(new Attributes().with("name", "John Smith"));
for (Item item : table.frame()) {
System.out.println("Name: " + item.get("name").getS());
}
table.frame()
.where("name", Conditions.equalTo("John Smith"))
.iterator().next().remove();| Modifier and Type | Method and Description |
|---|---|
void |
delete(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributes)
Delete item from aws table.
|
Frame |
frame()
Make a new frame, in order to retrieve items.
|
String |
name()
Get real table name.
|
Item |
put(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributes)
Put new item there.
|
Region |
region()
Get back to the entire region.
|
Item put(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributes) throws IOException
It is recommended to use Attributes supplementary class,
instead of a raw Map.
attributes - Attributes to saveIOException - In case of DynamoDB failureAttributesFrame frame()
Region region()
String name()
void delete(Map<String,com.amazonaws.services.dynamodbv2.model.AttributeValue> attributes) throws IOException
It is recommended to use Attributes supplementary class,
instead of a raw Map.
attributes - Attributes containing item key and valueIOException - In case of DynamoDB failureAttributesCopyright © 2012–2018 jcabi.com. All rights reserved.