|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.dynamodb.model.BatchGetItemRequest
public class BatchGetItemRequest
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.
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 |
---|
public BatchGetItemRequest()
Method Detail |
---|
public Map<String,KeysAndAttributes> getRequestItems()
Constraints:
Length: 1 - 100
public void setRequestItems(Map<String,KeysAndAttributes> requestItems)
Constraints:
Length: 1 - 100
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.public BatchGetItemRequest withRequestItems(Map<String,KeysAndAttributes> requestItems)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
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.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |