public class BatchGetItemResult
extends java.lang.Object
implements java.io.Serializable
Represents the output of a BatchGetItem operation.
Constructor and Description |
---|
BatchGetItemResult() |
Modifier and Type | Method and Description |
---|---|
BatchGetItemResult |
addResponsesEntry(java.lang.String key,
java.util.List<java.util.Map<java.lang.String,AttributeValue>> value)
A map of table name to a list of items.
|
BatchGetItemResult |
addUnprocessedKeysEntry(java.lang.String key,
KeysAndAttributes value)
A map of tables and their respective keys that were not processed with
the current response.
|
BatchGetItemResult |
clearResponsesEntries()
Removes all the entries added into Responses.
|
BatchGetItemResult |
clearUnprocessedKeysEntries()
Removes all the entries added into UnprocessedKeys.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<ConsumedCapacity> |
getConsumedCapacity()
The read capacity units consumed by the operation.
|
java.util.Map<java.lang.String,java.util.List<java.util.Map<java.lang.String,AttributeValue>>> |
getResponses()
A map of table name to a list of items.
|
java.util.Map<java.lang.String,KeysAndAttributes> |
getUnprocessedKeys()
A map of tables and their respective keys that were not processed with
the current response.
|
int |
hashCode() |
void |
setConsumedCapacity(java.util.Collection<ConsumedCapacity> consumedCapacity)
The read capacity units consumed by the operation.
|
void |
setResponses(java.util.Map<java.lang.String,java.util.List<java.util.Map<java.lang.String,AttributeValue>>> responses)
A map of table name to a list of items.
|
void |
setUnprocessedKeys(java.util.Map<java.lang.String,KeysAndAttributes> unprocessedKeys)
A map of tables and their respective keys that were not processed with
the current response.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BatchGetItemResult |
withConsumedCapacity(java.util.Collection<ConsumedCapacity> consumedCapacity)
The read capacity units consumed by the operation.
|
BatchGetItemResult |
withConsumedCapacity(ConsumedCapacity... consumedCapacity)
The read capacity units consumed by the operation.
|
BatchGetItemResult |
withResponses(java.util.Map<java.lang.String,java.util.List<java.util.Map<java.lang.String,AttributeValue>>> responses)
A map of table name to a list of items.
|
BatchGetItemResult |
withUnprocessedKeys(java.util.Map<java.lang.String,KeysAndAttributes> unprocessedKeys)
A map of tables and their respective keys that were not processed with
the current response.
|
public java.util.Map<java.lang.String,java.util.List<java.util.Map<java.lang.String,AttributeValue>>> getResponses()
A map of table name to a list of items. Each object in Responses consists of a table name, along with a map of attribute data consisting of the data type and attribute value.
A map of table name to a list of items. Each object in Responses consists of a table name, along with a map of attribute data consisting of the data type and attribute value.
public void setResponses(java.util.Map<java.lang.String,java.util.List<java.util.Map<java.lang.String,AttributeValue>>> responses)
A map of table name to a list of items. Each object in Responses consists of a table name, along with a map of attribute data consisting of the data type and attribute value.
responses
- A map of table name to a list of items. Each object in Responses consists of a table name, along with a map of attribute data consisting of the data type and attribute value.
public BatchGetItemResult withResponses(java.util.Map<java.lang.String,java.util.List<java.util.Map<java.lang.String,AttributeValue>>> responses)
A map of table name to a list of items. Each object in Responses consists of a table name, along with a map of attribute data consisting of the data type and attribute value.
Returns a reference to this object so that method calls can be chained together.
responses
- A map of table name to a list of items. Each object in Responses consists of a table name, along with a map of attribute data consisting of the data type and attribute value.
public BatchGetItemResult addResponsesEntry(java.lang.String key, java.util.List<java.util.Map<java.lang.String,AttributeValue>> value)
A map of table name to a list of items. Each object in Responses consists of a table name, along with a map of attribute data consisting of the data type and attribute value.
The method adds a new key-value pair into Responses parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Responses.value
- The corresponding value of the entry to be added into
Responses.public BatchGetItemResult clearResponsesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.util.Map<java.lang.String,KeysAndAttributes> getUnprocessedKeys()
A map of tables and their respective keys that were not processed with the current response. The UnprocessedKeys value is in the same form as RequestItems, so the value can be provided directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.
Each element consists of:
Keys - An array of primary key attribute values that define specific items in the table.
AttributesToGet - One or more attributes to be retrieved from the table or index. By default, all attributes are returned. If a requested attribute is not found, it does not appear in the result.
ConsistentRead - The consistency of a read operation. If set to
true
, then a strongly consistent read is used; otherwise, an
eventually consistent read is used.
If there are no unprocessed keys remaining, the response contains an empty UnprocessedKeys map.
A map of tables and their respective keys that were not processed with the current response. The UnprocessedKeys value is in the same form as RequestItems, so the value can be provided directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.
Each element consists of:
Keys - An array of primary key attribute values that define specific items in the table.
AttributesToGet - One or more attributes to be retrieved from the table or index. By default, all attributes are returned. If a requested attribute is not found, it does not appear in the result.
ConsistentRead - The consistency of a read operation. If
set to true
, then a strongly consistent read is
used; otherwise, an eventually consistent read is used.
If there are no unprocessed keys remaining, the response contains an empty UnprocessedKeys map.
public void setUnprocessedKeys(java.util.Map<java.lang.String,KeysAndAttributes> unprocessedKeys)
A map of tables and their respective keys that were not processed with the current response. The UnprocessedKeys value is in the same form as RequestItems, so the value can be provided directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.
Each element consists of:
Keys - An array of primary key attribute values that define specific items in the table.
AttributesToGet - One or more attributes to be retrieved from the table or index. By default, all attributes are returned. If a requested attribute is not found, it does not appear in the result.
ConsistentRead - The consistency of a read operation. If set to
true
, then a strongly consistent read is used; otherwise, an
eventually consistent read is used.
If there are no unprocessed keys remaining, the response contains an empty UnprocessedKeys map.
unprocessedKeys
- A map of tables and their respective keys that were not processed with the current response. The UnprocessedKeys value is in the same form as RequestItems, so the value can be provided directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.
Each element consists of:
Keys - An array of primary key attribute values that define specific items in the table.
AttributesToGet - One or more attributes to be retrieved from the table or index. By default, all attributes are returned. If a requested attribute is not found, it does not appear in the result.
ConsistentRead - The consistency of a read operation.
If set to true
, then a strongly consistent read
is used; otherwise, an eventually consistent read is used.
If there are no unprocessed keys remaining, the response contains an empty UnprocessedKeys map.
public BatchGetItemResult withUnprocessedKeys(java.util.Map<java.lang.String,KeysAndAttributes> unprocessedKeys)
A map of tables and their respective keys that were not processed with the current response. The UnprocessedKeys value is in the same form as RequestItems, so the value can be provided directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.
Each element consists of:
Keys - An array of primary key attribute values that define specific items in the table.
AttributesToGet - One or more attributes to be retrieved from the table or index. By default, all attributes are returned. If a requested attribute is not found, it does not appear in the result.
ConsistentRead - The consistency of a read operation. If set to
true
, then a strongly consistent read is used; otherwise, an
eventually consistent read is used.
If there are no unprocessed keys remaining, the response contains an empty UnprocessedKeys map.
Returns a reference to this object so that method calls can be chained together.
unprocessedKeys
- A map of tables and their respective keys that were not processed with the current response. The UnprocessedKeys value is in the same form as RequestItems, so the value can be provided directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.
Each element consists of:
Keys - An array of primary key attribute values that define specific items in the table.
AttributesToGet - One or more attributes to be retrieved from the table or index. By default, all attributes are returned. If a requested attribute is not found, it does not appear in the result.
ConsistentRead - The consistency of a read operation.
If set to true
, then a strongly consistent read
is used; otherwise, an eventually consistent read is used.
If there are no unprocessed keys remaining, the response contains an empty UnprocessedKeys map.
public BatchGetItemResult addUnprocessedKeysEntry(java.lang.String key, KeysAndAttributes value)
A map of tables and their respective keys that were not processed with the current response. The UnprocessedKeys value is in the same form as RequestItems, so the value can be provided directly to a subsequent BatchGetItem operation. For more information, see RequestItems in the Request Parameters section.
Each element consists of:
Keys - An array of primary key attribute values that define specific items in the table.
AttributesToGet - One or more attributes to be retrieved from the table or index. By default, all attributes are returned. If a requested attribute is not found, it does not appear in the result.
ConsistentRead - The consistency of a read operation. If set to
true
, then a strongly consistent read is used; otherwise, an
eventually consistent read is used.
If there are no unprocessed keys remaining, the response contains an empty UnprocessedKeys map.
The method adds a new key-value pair into UnprocessedKeys parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into UnprocessedKeys.value
- The corresponding value of the entry to be added into
UnprocessedKeys.public BatchGetItemResult clearUnprocessedKeysEntries()
Returns a reference to this object so that method calls can be chained together.
public java.util.List<ConsumedCapacity> getConsumedCapacity()
The read capacity units consumed by the operation.
Each element consists of:
TableName - The table that consumed the provisioned throughput.
CapacityUnits - The total number of capacity units consumed.
The read capacity units consumed by the operation.
Each element consists of:
TableName - The table that consumed the provisioned throughput.
CapacityUnits - The total number of capacity units consumed.
public void setConsumedCapacity(java.util.Collection<ConsumedCapacity> consumedCapacity)
The read capacity units consumed by the operation.
Each element consists of:
TableName - The table that consumed the provisioned throughput.
CapacityUnits - The total number of capacity units consumed.
consumedCapacity
- The read capacity units consumed by the operation.
Each element consists of:
TableName - The table that consumed the provisioned throughput.
CapacityUnits - The total number of capacity units consumed.
public BatchGetItemResult withConsumedCapacity(ConsumedCapacity... consumedCapacity)
The read capacity units consumed by the operation.
Each element consists of:
TableName - The table that consumed the provisioned throughput.
CapacityUnits - The total number of capacity units consumed.
Returns a reference to this object so that method calls can be chained together.
consumedCapacity
- The read capacity units consumed by the operation.
Each element consists of:
TableName - The table that consumed the provisioned throughput.
CapacityUnits - The total number of capacity units consumed.
public BatchGetItemResult withConsumedCapacity(java.util.Collection<ConsumedCapacity> consumedCapacity)
The read capacity units consumed by the operation.
Each element consists of:
TableName - The table that consumed the provisioned throughput.
CapacityUnits - The total number of capacity units consumed.
Returns a reference to this object so that method calls can be chained together.
consumedCapacity
- The read capacity units consumed by the operation.
Each element consists of:
TableName - The table that consumed the provisioned throughput.
CapacityUnits - The total number of capacity units consumed.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.