com.amazonaws.mobileconnectors.cognito
Class DatasetMetadata

java.lang.Object
  extended by com.amazonaws.mobileconnectors.cognito.DatasetMetadata

public final class DatasetMetadata
extends java.lang.Object

The metadata of a Dataset, including name, server sync count, last modified date. The is the cached information of a dataset. It might not reflect the most up-to-date information stored remotely. Please call CognitoSyncManager.refreshDatasetMetadata() to pull the latest information.


Nested Class Summary
static class DatasetMetadata.Builder
          The builder to construct DatasetMetadata object.
 
Method Summary
 java.util.Date getCreationDate()
          Gets the creation date of this dataset.
 java.lang.String getDatasetName()
          Gets the name of this dataset.
 java.lang.String getLastModifiedBy()
          Gets the device that made the last modification to the dataset.
 java.util.Date getLastModifiedDate()
          Gets last modified date of this dataset.
 long getRecordCount()
          Gets the number of records in this dataset.
 long getStorageSizeBytes()
          Gets the storage size in bytes of this dataset.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDatasetName

public java.lang.String getDatasetName()
Gets the name of this dataset.

Returns:
non empty String name of this dataset

getCreationDate

public java.util.Date getCreationDate()
Gets the creation date of this dataset.

Returns:
creation date

getLastModifiedDate

public java.util.Date getLastModifiedDate()
Gets last modified date of this dataset.

Returns:
date when this dataset is last modified

getLastModifiedBy

public java.lang.String getLastModifiedBy()
Gets the device that made the last modification to the dataset.

Returns:
the device that made the last modification, or null if unknown.

getStorageSizeBytes

public long getStorageSizeBytes()
Gets the storage size in bytes of this dataset. It equals the sum of UTF-8 encoded string length of record keys and values.

Returns:
storage size in bytes

getRecordCount

public long getRecordCount()
Gets the number of records in this dataset.

Returns:
number of records

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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