Interface Frame
-
- All Superinterfaces:
Collection<Item>,Iterable<Item>
- All Known Implementing Classes:
ReFrame
@Immutable public interface Frame extends Collection<Item>
DynamoDB frame (subset of a table).Frameis a subset of a Dynamo table, and is used to retrieve items and remove them.Frameacts as an iterable immutable collection of items. You can't useCollection.remove(Object)method directly. Instead, find the right item using iterator and than remove it withIterator.remove().To fetch items from Dynamo DB,
FrameusesQueryoperation, with "consistent read" mode turned ON. It fetches twenty items on every request.Keep in mind that Frame object provides a very limited functionality and is intended to be used in most cases, but not in all of them. When you need something specific, just get an Amazon DynamoDB client from a
Regionand use Amazon SDK methods directly.- Since:
- 0.1
- See Also:
Item, Query and Scan
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tabletable()Get back to the table this frame came from.Framethrough(Valve valve)Change valve for items fetching.Framewhere(String name, com.amazonaws.services.dynamodbv2.model.Condition condition)Refine using this condition.Framewhere(String name, String value)Refine using this EQ condition argument.Framewhere(Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions)Refine using these conditions.
-
-
-
Method Detail
-
where
Frame where(String name, String value)
Refine using this EQ condition argument.- Parameters:
name- Attribute namevalue- String value expected- Returns:
- New frame
- Since:
- 0.7.21
-
where
Frame where(String name, com.amazonaws.services.dynamodbv2.model.Condition condition)
Refine using this condition.It is recommended to use a utility static method
Conditions.equalTo(Object), when condition is simply an equation to a plain string value.- Parameters:
name- Attribute namecondition- The condition- Returns:
- New frame
-
where
Frame where(Map<String,com.amazonaws.services.dynamodbv2.model.Condition> conditions)
Refine using these conditions.It is recommended to use
Conditionssupplementary class instead of a rawMap.- Parameters:
conditions- The conditions- Returns:
- New frame
- See Also:
Conditions
-
table
Table table()
Get back to the table this frame came from.- Returns:
- The table
-
-