com.amazonaws.services.dynamodbv2.model
Class ItemCollectionMetrics

java.lang.Object
  extended by com.amazonaws.services.dynamodbv2.model.ItemCollectionMetrics
All Implemented Interfaces:
java.io.Serializable

public class ItemCollectionMetrics
extends java.lang.Object
implements java.io.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.

See Also:
Serialized Form

Constructor Summary
ItemCollectionMetrics()
           
 
Method Summary
 ItemCollectionMetrics addItemCollectionKeyEntry(java.lang.String key, AttributeValue value)
          The hash key value of the item collection.
 ItemCollectionMetrics clearItemCollectionKeyEntries()
          Removes all the entries added into ItemCollectionKey.
 boolean equals(java.lang.Object obj)
           
 java.util.Map<java.lang.String,AttributeValue> getItemCollectionKey()
          The hash key value of the item collection.
 java.util.List<java.lang.Double> getSizeEstimateRangeGB()
          An estimate of item collection size, measured in gigabytes.
 int hashCode()
           
 void setItemCollectionKey(java.util.Map<java.lang.String,AttributeValue> itemCollectionKey)
          The hash key value of the item collection.
 void setSizeEstimateRangeGB(java.util.Collection<java.lang.Double> sizeEstimateRangeGB)
          An estimate of item collection size, measured in gigabytes.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ItemCollectionMetrics withItemCollectionKey(java.util.Map<java.lang.String,AttributeValue> itemCollectionKey)
          The hash key value of the item collection.
 ItemCollectionMetrics withSizeEstimateRangeGB(java.util.Collection<java.lang.Double> sizeEstimateRangeGB)
          An estimate of item collection size, measured in gigabytes.
 ItemCollectionMetrics withSizeEstimateRangeGB(java.lang.Double... sizeEstimateRangeGB)
          An estimate of item collection size, measured in gigabytes.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ItemCollectionMetrics

public ItemCollectionMetrics()
Method Detail

getItemCollectionKey

public java.util.Map<java.lang.String,AttributeValue> getItemCollectionKey()
The hash key value of the item collection. This is the same as the hash key of the item.

Returns:
The hash key value of the item collection. This is the same as the hash key of the item.

setItemCollectionKey

public void setItemCollectionKey(java.util.Map<java.lang.String,AttributeValue> itemCollectionKey)
The hash key value of the item collection. This is the same as the hash key of the item.

Parameters:
itemCollectionKey - The hash key value of the item collection. This is the same as the hash key of the item.

withItemCollectionKey

public ItemCollectionMetrics withItemCollectionKey(java.util.Map<java.lang.String,AttributeValue> itemCollectionKey)
The hash key value of the item collection. This is the same as the hash key of the item.

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

Parameters:
itemCollectionKey - The hash key value of the item collection. This is the same as the hash key of the item.
Returns:
A reference to this updated object so that method calls can be chained together.

addItemCollectionKeyEntry

public ItemCollectionMetrics addItemCollectionKeyEntry(java.lang.String key,
                                                       AttributeValue value)
The hash key value of the item collection. This is the same as the hash key of the item.

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.

Parameters:
key - The key of the entry to be added into ItemCollectionKey.
value - The corresponding value of the entry to be added into ItemCollectionKey.

clearItemCollectionKeyEntries

public ItemCollectionMetrics clearItemCollectionKeyEntries()
Removes all the entries added into ItemCollectionKey.

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


getSizeEstimateRangeGB

public java.util.List<java.lang.Double> getSizeEstimateRangeGB()
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.

Returns:
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.


setSizeEstimateRangeGB

public void setSizeEstimateRangeGB(java.util.Collection<java.lang.Double> 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.

Parameters:
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.


withSizeEstimateRangeGB

public ItemCollectionMetrics withSizeEstimateRangeGB(java.lang.Double... 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.

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

Parameters:
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.

Returns:
A reference to this updated object so that method calls can be chained together.

withSizeEstimateRangeGB

public ItemCollectionMetrics withSizeEstimateRangeGB(java.util.Collection<java.lang.Double> 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.

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

Parameters:
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.

Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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