Class | AWS::SimpleDB::ItemData |
In: |
lib/aws/simple_db/item_data.rb
|
Parent: | Object |
Holds the data for a SimpleDB item. While {Item} only proxies requests to return data, this class actually stores data returned by a query. For example, you can use this to get the list of items whose titles are palindromes using only a single request to SimpleDB (not counting pagination):
items.enum_for(:select). select { |data| data.title == data.title.to_s.reverse }. map { |data| data.item }
The {ItemCollection#select} call yields instances of ItemData, and the `map` call in the example above gets the list of corresponding {Item} instances.