public class ItemCollectionMetrics extends Object implements Serializable
Information about item collections, if any, that were affected by the operation. ItemCollectionMetrics is only returned if it was asked for in the request. If the table does not have any local secondary indexes, this information is not returned in the response.
Constructor and Description |
---|
ItemCollectionMetrics() |
Modifier and Type | Method and Description |
---|---|
ItemCollectionMetrics |
addItemCollectionKeyEntry(String key,
AttributeValue value)
The hash key value of the item collection.
|
ItemCollectionMetrics |
clearItemCollectionKeyEntries()
Removes all the entries added into ItemCollectionKey.
|
boolean |
equals(Object obj) |
Map<String,AttributeValue> |
getItemCollectionKey()
The hash key value of the item collection.
|
List<Double> |
getSizeEstimateRangeGB()
An estimate of item collection size, measured in gigabytes.
|
int |
hashCode() |
void |
setItemCollectionKey(Map<String,AttributeValue> itemCollectionKey)
The hash key value of the item collection.
|
void |
setSizeEstimateRangeGB(Collection<Double> sizeEstimateRangeGB)
An estimate of item collection size, measured in gigabytes.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ItemCollectionMetrics |
withItemCollectionKey(Map<String,AttributeValue> itemCollectionKey)
The hash key value of the item collection.
|
ItemCollectionMetrics |
withSizeEstimateRangeGB(Collection<Double> sizeEstimateRangeGB)
An estimate of item collection size, measured in gigabytes.
|
ItemCollectionMetrics |
withSizeEstimateRangeGB(Double... sizeEstimateRangeGB)
An estimate of item collection size, measured in gigabytes.
|
public Map<String,AttributeValue> getItemCollectionKey()
public void setItemCollectionKey(Map<String,AttributeValue> itemCollectionKey)
itemCollectionKey
- The hash key value of the item collection. This is the same as the
hash key of the item.public ItemCollectionMetrics withItemCollectionKey(Map<String,AttributeValue> itemCollectionKey)
Returns a reference to this object so that method calls can be chained together.
itemCollectionKey
- The hash key value of the item collection. This is the same as the
hash key of the item.public ItemCollectionMetrics addItemCollectionKeyEntry(String key, AttributeValue value)
The method adds a new key-value pair into ItemCollectionKey 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 ItemCollectionKey.value
- The corresponding value of the entry to be added into ItemCollectionKey.public ItemCollectionMetrics clearItemCollectionKeyEntries()
Returns a reference to this object so that method calls can be chained together.
public List<Double> getSizeEstimateRangeGB()
The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
public void setSizeEstimateRangeGB(Collection<Double> sizeEstimateRangeGB)
The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
sizeEstimateRangeGB
- An estimate of item collection size, measured in gigabytes. This is a
two-element array containing a lower bound and an upper bound for the
estimate. The estimate includes the size of all the items in the
table, plus the size of all attributes projected into all of the local
secondary indexes on that table. Use this estimate to measure whether
a local secondary index is approaching its size limit. The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
public ItemCollectionMetrics withSizeEstimateRangeGB(Double... sizeEstimateRangeGB)
The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
Returns a reference to this object so that method calls can be chained together.
sizeEstimateRangeGB
- An estimate of item collection size, measured in gigabytes. This is a
two-element array containing a lower bound and an upper bound for the
estimate. The estimate includes the size of all the items in the
table, plus the size of all attributes projected into all of the local
secondary indexes on that table. Use this estimate to measure whether
a local secondary index is approaching its size limit. The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
public ItemCollectionMetrics withSizeEstimateRangeGB(Collection<Double> sizeEstimateRangeGB)
The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
Returns a reference to this object so that method calls can be chained together.
sizeEstimateRangeGB
- An estimate of item collection size, measured in gigabytes. This is a
two-element array containing a lower bound and an upper bound for the
estimate. The estimate includes the size of all the items in the
table, plus the size of all attributes projected into all of the local
secondary indexes on that table. Use this estimate to measure whether
a local secondary index is approaching its size limit. The estimate is subject to change over time; therefore, do not rely on the precision or accuracy of the estimate.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.