com.amazonaws.services.dynamodb.model
Class BatchGetItemRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.dynamodb.model.BatchGetItemRequest

public class BatchGetItemRequest
extends AmazonWebServiceRequest

Container for the parameters to the BatchGetItem operation.

Retrieves the attributes for multiple items from multiple tables using their primary keys.

The maximum number of item attributes that can be retrieved for a single operation is 100. Also, the number of items retrieved is constrained by a 1 MB the size limit. If the response size limit is exceeded or a partial result is returned due to an internal processing failure, Amazon DynamoDB returns an UnprocessedKeys value so you can retry the operation starting with the next item to get.

Amazon DynamoDB automatically adjusts the number of items returned per page to enforce this limit. For example, even if you ask to retrieve 100 items, but each individual item is 50k in size, the system returns 20 items and an appropriate UnprocessedKeys value so you can get the next page of results. If necessary, your application needs its own logic to assemble the pages of results into one set.

See Also:
AmazonDynamoDB.batchGetItem(BatchGetItemRequest)

Constructor Summary
BatchGetItemRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 Map<String,KeysAndAttributes> getRequestItems()
          A map of the table name and corresponding items to get by primary key.
 int hashCode()
           
 void setRequestItems(Map<String,KeysAndAttributes> requestItems)
          A map of the table name and corresponding items to get by primary key.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 BatchGetItemRequest withRequestItems(Map<String,KeysAndAttributes> requestItems)
          A map of the table name and corresponding items to get by primary key.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BatchGetItemRequest

public BatchGetItemRequest()
Method Detail

getRequestItems

public Map<String,KeysAndAttributes> getRequestItems()
A map of the table name and corresponding items to get by primary key. While requesting items, each table name can be invoked only once per operation.

Constraints:
Length: 1 - 100

Returns:
A map of the table name and corresponding items to get by primary key. While requesting items, each table name can be invoked only once per operation.

setRequestItems

public void setRequestItems(Map<String,KeysAndAttributes> requestItems)
A map of the table name and corresponding items to get by primary key. While requesting items, each table name can be invoked only once per operation.

Constraints:
Length: 1 - 100

Parameters:
requestItems - A map of the table name and corresponding items to get by primary key. While requesting items, each table name can be invoked only once per operation.

withRequestItems

public BatchGetItemRequest withRequestItems(Map<String,KeysAndAttributes> requestItems)
A map of the table name and corresponding items to get by primary key. While requesting items, each table name can be invoked only once per operation.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 100

Parameters:
requestItems - A map of the table name and corresponding items to get by primary key. While requesting items, each table name can be invoked only once per operation.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.