IDynamoDbMapperDynamoDbMapperpublic class AbstractDynamoDbMapper extends Object implements IDynamoDbMapper
IDynamoDBMapper. Convenient method forms pass through to the
corresponding overload that takes a request object, which throws an
UnsupportedOperationException.| Modifier and Type | Method | Description |
|---|---|---|
List<DynamoDbMapper.FailedBatch> |
batchDelete(Iterable<? extends Object> objectsToDelete) |
Deletes the objects given using one or more calls to the
DynamoDBClient.batchWriteItem(BatchWriteItemRequest) API. |
List<DynamoDbMapper.FailedBatch> |
batchDelete(Object... objectsToDelete) |
Deletes the objects given using one or more calls to the
DynamoDBClient.batchWriteItem(BatchWriteItemRequest) API. |
Map<String,List<Object>> |
batchLoad(Iterable<? extends Object> itemsToGet) |
Retrieves multiple items from multiple tables using their primary keys.
|
Map<String,List<Object>> |
batchLoad(Iterable<? extends Object> itemsToGet,
DynamoDbMapperConfig config) |
Retrieves multiple items from multiple tables using their primary keys.
|
Map<String,List<Object>> |
batchLoad(Map<Class<?>,List<KeyPair>> itemsToGet) |
Retrieves the attributes for multiple items from multiple tables using their primary keys.
|
Map<String,List<Object>> |
batchLoad(Map<Class<?>,List<KeyPair>> itemsToGet,
DynamoDbMapperConfig config) |
Retrieves multiple items from multiple tables using their primary keys.
|
List<DynamoDbMapper.FailedBatch> |
batchSave(Iterable<? extends Object> objectsToSave) |
Saves the objects given using one or more calls to the
DynamoDBClient.batchWriteItem(BatchWriteItemRequest) API. |
List<DynamoDbMapper.FailedBatch> |
batchSave(Object... objectsToSave) |
Saves the objects given using one or more calls to the
DynamoDBClient.batchWriteItem(BatchWriteItemRequest) API. |
List<DynamoDbMapper.FailedBatch> |
batchWrite(Iterable<? extends Object> objectsToWrite,
Iterable<? extends Object> objectsToDelete) |
Saves and deletes the objects given using one or more calls to the
DynamoDBClient.batchWriteItem(BatchWriteItemRequest) API. |
List<DynamoDbMapper.FailedBatch> |
batchWrite(Iterable<? extends Object> objectsToWrite,
Iterable<? extends Object> objectsToDelete,
DynamoDbMapperConfig config) |
Saves and deletes the objects given using one or more calls to the
DynamoDBClient.batchWriteItem(BatchWriteItemRequest) API. |
int |
count(Class<?> clazz,
DynamoDbScanExpression scanExpression) |
Evaluates the specified scan expression and returns the count of matching items, without
returning any of the actual item data, using the default configuration.
|
int |
count(Class<?> clazz,
DynamoDbScanExpression scanExpression,
DynamoDbMapperConfig config) |
Evaluates the specified scan expression and returns the count of matching items, without
returning any of the actual item data.
|
<T> int |
count(Class<T> clazz,
DynamoDbQueryExpression<T> queryExpression) |
Evaluates the specified query expression and returns the count of matching items, without
returning any of the actual item data, using the default configuration.
|
<T> int |
count(Class<T> clazz,
DynamoDbQueryExpression<T> queryExpression,
DynamoDbMapperConfig config) |
Evaluates the specified query expression and returns the count of matching items, without
returning any of the actual item data.
|
S3Link |
createS3Link(String bucketName,
String key) |
Creates an S3Link with the specified bucket name and key using the default S3 region.
|
S3Link |
createS3Link(String s3region,
String bucketName,
String key) |
Creates an S3Link with the specified region, bucket name and key.
|
S3Link |
createS3Link(Region s3region,
String bucketName,
String key) |
Creates an S3Link with the specified region, bucket name and key.
|
void |
delete(Object object) |
Deletes the given object from its DynamoDB table using the default configuration.
|
void |
delete(Object object,
DynamoDbDeleteExpression deleteExpression) |
Deletes the given object from its DynamoDB table using the specified deleteExpression and
default configuration.
|
void |
delete(Object object,
DynamoDbMapperConfig config) |
Deletes the given object from its DynamoDB table using the specified configuration.
|
<T> void |
delete(T object,
DynamoDbDeleteExpression deleteExpression,
DynamoDbMapperConfig config) |
Deletes the given object from its DynamoDB table using the provided deleteExpression and
provided configuration.
|
CreateTableRequest |
generateCreateTableRequest(Class<?> clazz) |
Parse the given POJO class and return the CreateTableRequest for the DynamoDB table it
represents.
|
<T> CreateTableRequest |
generateCreateTableRequest(Class<T> clazz,
DynamoDbMapperConfig config) |
|
DeleteTableRequest |
generateDeleteTableRequest(Class<?> clazz) |
Parse the given POJO class and return the DeleteTableRequest for the DynamoDB table it
represents.
|
<T> DeleteTableRequest |
generateDeleteTableRequest(Class<T> clazz,
DynamoDbMapperConfig config) |
|
<T> DynamoDbMapperTableModel<T> |
getTableModel(Class<T> clazz) |
Get the table model for the class, using the default configuration.
|
<T> DynamoDbMapperTableModel<T> |
getTableModel(Class<T> clazz,
DynamoDbMapperConfig config) |
Get the table model for the class using the provided configuration override.
|
<T> T |
load(Class<T> clazz,
Object hashKey) |
Loads an object with the hash key given, using the default configuration.
|
<T> T |
load(Class<T> clazz,
Object hashKey,
Object rangeKey) |
Loads an object with a hash and range key, using the default configuration.
|
<T> T |
load(Class<T> clazz,
Object hashKey,
Object rangeKey,
DynamoDbMapperConfig config) |
Returns an object with the given hash key, or null if no such object exists.
|
<T> T |
load(Class<T> clazz,
Object hashKey,
DynamoDbMapperConfig config) |
Loads an object with the hash key given and a configuration override.
|
<T> T |
load(T keyObject) |
Returns an object whose keys match those of the prototype key object given, or null if no
such item exists.
|
<T> T |
load(T keyObject,
DynamoDbMapperConfig config) |
Returns an object whose keys match those of the prototype key object given, or null if no
such item exists.
|
<T> T |
marshallIntoObject(Class<T> clazz,
Map<String,AttributeValue> itemAttributes) |
Creates and fills in the attributes on an instance of the class given with the attributes
given.
|
<T> T |
marshallIntoObject(Class<T> clazz,
Map<String,AttributeValue> itemAttributes,
DynamoDbMapperConfig config) |
|
<T> List<T> |
marshallIntoObjects(Class<T> clazz,
List<Map<String,AttributeValue>> itemAttributes) |
Unmarshalls the list of item attributes into objects of type clazz.
|
<T> List<T> |
marshallIntoObjects(Class<T> clazz,
List<Map<String,AttributeValue>> itemAttributes,
DynamoDbMapperConfig config) |
|
<T> PaginatedParallelScanList<T> |
parallelScan(Class<T> clazz,
DynamoDbScanExpression scanExpression,
int totalSegments) |
Scans through an Amazon DynamoDB table on logically partitioned segments in parallel and
returns the matching results in one unmodifiable list of instantiated objects, using the
default configuration.
|
<T> PaginatedParallelScanList<T> |
parallelScan(Class<T> clazz,
DynamoDbScanExpression scanExpression,
int totalSegments,
DynamoDbMapperConfig config) |
Scans through an Amazon DynamoDB table on logically partitioned segments in parallel.
|
<T> PaginatedQueryList<T> |
query(Class<T> clazz,
DynamoDbQueryExpression<T> queryExpression) |
Queries an Amazon DynamoDB table and returns the matching results as an unmodifiable list of
instantiated objects, using the default configuration.
|
<T> PaginatedQueryList<T> |
query(Class<T> clazz,
DynamoDbQueryExpression<T> queryExpression,
DynamoDbMapperConfig config) |
Queries an Amazon DynamoDB table and returns the matching results as an unmodifiable list of
instantiated objects.
|
<T> QueryResultPage<T> |
queryPage(Class<T> clazz,
DynamoDbQueryExpression<T> queryExpression) |
Queries an Amazon DynamoDB table and returns a single page of matching results.
|
<T> QueryResultPage<T> |
queryPage(Class<T> clazz,
DynamoDbQueryExpression<T> queryExpression,
DynamoDbMapperConfig config) |
Queries an Amazon DynamoDB table and returns a single page of matching results.
|
S3ClientCache |
s3ClientCache() |
Returns the underlying
S3ClientCache for accessing S3. |
<T> void |
save(T object) |
Saves the object given into DynamoDB, using the default configuration.
|
<T> void |
save(T object,
DynamoDbMapperConfig config) |
Saves the object given into DynamoDB, using the specified configuration.
|
<T> void |
save(T object,
DynamoDbSaveExpression saveExpression) |
Saves the object given into DynamoDB, using the default configuration and the specified
saveExpression.
|
<T> void |
save(T object,
DynamoDbSaveExpression saveExpression,
DynamoDbMapperConfig config) |
Saves an item in DynamoDB.
|
<T> PaginatedScanList<T> |
scan(Class<T> clazz,
DynamoDbScanExpression scanExpression) |
Scans through an Amazon DynamoDB table and returns the matching results as an unmodifiable
list of instantiated objects, using the default configuration.
|
<T> PaginatedScanList<T> |
scan(Class<T> clazz,
DynamoDbScanExpression scanExpression,
DynamoDbMapperConfig config) |
Scans through an Amazon DynamoDB table and returns the matching results as an unmodifiable
list of instantiated objects.
|
<T> ScanResultPage<T> |
scanPage(Class<T> clazz,
DynamoDbScanExpression scanExpression) |
Scans through an Amazon DynamoDB table and returns a single page of matching results.
|
<T> ScanResultPage<T> |
scanPage(Class<T> clazz,
DynamoDbScanExpression scanExpression,
DynamoDbMapperConfig config) |
Scans through an Amazon DynamoDB table and returns a single page of matching results.
|
public <T> DynamoDbMapperTableModel<T> getTableModel(Class<T> clazz)
IDynamoDbMappergetTableModel in interface IDynamoDbMapperDynamoDbMapper.getTableModel(Class, DynamoDbMapperConfig)public <T> DynamoDbMapperTableModel<T> getTableModel(Class<T> clazz, DynamoDbMapperConfig config)
IDynamoDbMappergetTableModel in interface IDynamoDbMapperpublic <T> T load(Class<T> clazz, Object hashKey, DynamoDbMapperConfig config)
IDynamoDbMapperload in interface IDynamoDbMapperDynamoDbMapper.load(Class, Object, Object, DynamoDbMapperConfig)public <T> T load(Class<T> clazz, Object hashKey)
IDynamoDbMapperload in interface IDynamoDbMapperDynamoDbMapper.load(Class, Object, Object, DynamoDbMapperConfig)public <T> T load(Class<T> clazz, Object hashKey, Object rangeKey)
IDynamoDbMapperload in interface IDynamoDbMapperDynamoDbMapper.load(Class, Object, Object, DynamoDbMapperConfig)public <T> T load(Class<T> clazz, Object hashKey, Object rangeKey, DynamoDbMapperConfig config)
IDynamoDbMapperload in interface IDynamoDbMapperclazz - The class to load, corresponding to a DynamoDB table.hashKey - The key of the object.rangeKey - The range key of the object, or null for tables without a range key.config - Configuration for the service call to retrieve the object from DynamoDB. This
configuration overrides the default given at construction.public <T> T load(T keyObject)
IDynamoDbMapperload in interface IDynamoDbMapperkeyObject - An object of the class to load with the keys values to match.DynamoDbMapper.load(Object, DynamoDbMapperConfig)public <T> T load(T keyObject,
DynamoDbMapperConfig config)
IDynamoDbMapperload in interface IDynamoDbMapperkeyObject - An object of the class to load with the keys values to match.config - Configuration for the service call to retrieve the object from DynamoDB. This
configuration overrides the default given at construction.public <T> T marshallIntoObject(Class<T> clazz, Map<String,AttributeValue> itemAttributes)
IDynamoDbMapperThis is accomplished by looking for getter methods annotated with an appropriate annotation, then looking for matching attribute names in the item attribute map.
This method is no longer called by load/scan/query methods. If you are overriding this method, please switch to using an AttributeTransformer
marshallIntoObject in interface IDynamoDbMapperclazz - The class to instantiate and hydrateitemAttributes - The set of item attributes, keyed by attribute name.public <T> T marshallIntoObject(Class<T> clazz, Map<String,AttributeValue> itemAttributes, DynamoDbMapperConfig config)
public <T> List<T> marshallIntoObjects(Class<T> clazz, List<Map<String,AttributeValue>> itemAttributes)
IDynamoDbMapperThis method is no longer called by load/scan/query methods. If you are overriding this method, please switch to using an AttributeTransformer
marshallIntoObjects in interface IDynamoDbMappermarshallIntoObject(Class, Map)public <T> List<T> marshallIntoObjects(Class<T> clazz, List<Map<String,AttributeValue>> itemAttributes, DynamoDbMapperConfig config)
public <T> void save(T object)
IDynamoDbMappersave in interface IDynamoDbMapperDynamoDbMapper.save(Object, DynamoDbSaveExpression, DynamoDbMapperConfig)public <T> void save(T object,
DynamoDbSaveExpression saveExpression)
IDynamoDbMappersave in interface IDynamoDbMapperDynamoDbMapper.save(Object, DynamoDbSaveExpression, DynamoDbMapperConfig)public <T> void save(T object,
DynamoDbMapperConfig config)
IDynamoDbMappersave in interface IDynamoDbMapperDynamoDbMapper.save(Object, DynamoDbSaveExpression, DynamoDbMapperConfig)public <T> void save(T object,
DynamoDbSaveExpression saveExpression,
DynamoDbMapperConfig config)
IDynamoDbMapperDynamoDbMapperConfig.saveBehavior() value, to use either
DynamoDBClient.putItem(PutItemRequest) or
DynamoDBClient.updateItem(UpdateItemRequest):
save in interface IDynamoDbMapperobject - The object to save into DynamoDBsaveExpression - The options to apply to this save requestconfig - The configuration to use, which overrides the default provided at object
construction.DynamoDbMapperConfig.SaveBehaviorpublic void delete(Object object)
IDynamoDbMapperdelete in interface IDynamoDbMapperpublic void delete(Object object, DynamoDbDeleteExpression deleteExpression)
IDynamoDbMapperdelete in interface IDynamoDbMapperpublic void delete(Object object, DynamoDbMapperConfig config)
IDynamoDbMapperdelete in interface IDynamoDbMapperpublic <T> void delete(T object,
DynamoDbDeleteExpression deleteExpression,
DynamoDbMapperConfig config)
IDynamoDbMapperdelete in interface IDynamoDbMapperdeleteExpression - The options to apply to this delete requestconfig - Config override object. If DynamoDbMapperConfig.SaveBehavior.CLOBBER is supplied, version
fields will not be considered when deleting the object.public List<DynamoDbMapper.FailedBatch> batchDelete(Iterable<? extends Object> objectsToDelete)
IDynamoDbMapperDynamoDBClient.batchWriteItem(BatchWriteItemRequest) API. No version checks are
performed, as required by the API.batchDelete in interface IDynamoDbMapperbatchWrite(Iterable, Iterable)public List<DynamoDbMapper.FailedBatch> batchDelete(Object... objectsToDelete)
IDynamoDbMapperDynamoDBClient.batchWriteItem(BatchWriteItemRequest) API. No version checks are
performed, as required by the API.batchDelete in interface IDynamoDbMapperbatchWrite(Iterable, Iterable)public List<DynamoDbMapper.FailedBatch> batchSave(Iterable<? extends Object> objectsToSave)
IDynamoDbMapperDynamoDBClient.batchWriteItem(BatchWriteItemRequest) API. No version checks are
performed, as required by the API.
This method ignores any SaveBehavior set on the mapper, and always behaves as if
SaveBehavior.CLOBBER was specified, as the DynamoDBClient.batchWriteItem() request does not
support updating existing items.
This method fails to save the batch if the size of an individual object in the batch exceeds 400 KB. For more information on batch restrictions see, http://docs.aws.amazon .com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html
batchSave in interface IDynamoDbMapperbatchWrite(Iterable, Iterable)public List<DynamoDbMapper.FailedBatch> batchSave(Object... objectsToSave)
IDynamoDbMapperDynamoDBClient.batchWriteItem(BatchWriteItemRequest) API. No version checks are
performed, as required by the API.
This method ignores any SaveBehavior set on the mapper, and always behaves as if
SaveBehavior.CLOBBER was specified, as the DynamoDBClient.batchWriteItem() request does not
support updating existing items. *
This method fails to save the batch if the size of an individual object in the batch exceeds 400 KB. For more information on batch restrictions see, http://docs.aws.amazon .com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html
batchSave in interface IDynamoDbMapperbatchWrite(Iterable, Iterable)public List<DynamoDbMapper.FailedBatch> batchWrite(Iterable<? extends Object> objectsToWrite, Iterable<? extends Object> objectsToDelete)
IDynamoDbMapperDynamoDBClient.batchWriteItem(BatchWriteItemRequest) API. No version checks are
performed, as required by the API.
This method ignores any SaveBehavior set on the mapper, and always behaves as if
SaveBehavior.CLOBBER was specified, as the DynamoDBClient.batchWriteItem() request does not
support updating existing items.
This method fails to save the batch if the size of an individual object in the batch exceeds 400 KB. For more information on batch restrictions see, http://docs.aws.amazon .com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html
If one of the write requests is for a table that is not present, this method does not throw a ResourceNotFoundException but returns a FailedBatch which includes this exception and the unprocessed items.
batchWrite in interface IDynamoDbMapperbatchWrite(Iterable, Iterable)public List<DynamoDbMapper.FailedBatch> batchWrite(Iterable<? extends Object> objectsToWrite, Iterable<? extends Object> objectsToDelete, DynamoDbMapperConfig config)
IDynamoDbMapperDynamoDBClient.batchWriteItem(BatchWriteItemRequest) API. Use mapper config to
control the retry strategy when UnprocessedItems are returned by the BatchWriteItem API
This method fails to save the batch if the size of an individual object in the batch exceeds 400 KB. For more information on batch restrictions see, http://docs.aws.amazon .com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html
If one of the write requests is for a table that is not present, this method does not throw a ResourceNotFoundException but returns a FailedBatch which includes this exception and the unprocessed items.
batchWrite in interface IDynamoDbMapperobjectsToWrite - A list of objects to save to DynamoDB. No version checks are performed, as
required by the DynamoDBClient.batchWriteItem(BatchWriteItemRequest) API.objectsToDelete - A list of objects to delete from DynamoDB. No version checks are performed,
as required by the DynamoDBClient.batchWriteItem(BatchWriteItemRequest)
API.config - Only DynamoDbMapperConfig.getTableNameOverride() and
DynamoDbMapperConfig.batchWriteRetryStrategy() are considered. If
TableNameOverride is specified, all objects in the two parameter lists will be
considered to belong to the given table override. In particular, this method
always acts as if SaveBehavior.CLOBBER was specified regardless of the
value of the config parameter.DynamoDbMapperConfig.getTableNameOverride(),
DynamoDbMapperConfig.batchWriteRetryStrategy()public Map<String,List<Object>> batchLoad(Iterable<? extends Object> itemsToGet)
IDynamoDbMapperbatchLoad in interface IDynamoDbMapperDynamoDbMapper#batchLoad(List, DynamoDbMapperConfig)public Map<String,List<Object>> batchLoad(Iterable<? extends Object> itemsToGet, DynamoDbMapperConfig config)
IDynamoDbMapperbatchLoad in interface IDynamoDbMapperitemsToGet - Key objects, corresponding to the class to fetch, with their primary key values
set.config - Only DynamoDbMapperConfig.getTableNameOverride() and
DynamoDbMapperConfig.getConsistentReads() are considered.public Map<String,List<Object>> batchLoad(Map<Class<?>,List<KeyPair>> itemsToGet)
IDynamoDbMapperDynamoDBClient.batchGetItem(BatchGetItemRequest) API.batchLoad in interface IDynamoDbMapper#batchLoad(List, DynamoDbMapperConfig),
IDynamoDbMapper.batchLoad(Map, DynamoDbMapperConfig)public Map<String,List<Object>> batchLoad(Map<Class<?>,List<KeyPair>> itemsToGet, DynamoDbMapperConfig config)
IDynamoDbMapperDynamoDbMapper#batchLoad(List, DynamoDbMapperConfig)batchLoad in interface IDynamoDbMapperitemsToGet - Map from class to load to list of primary key attributes.config - Only DynamoDbMapperConfig.getTableNameOverride() and
DynamoDbMapperConfig.getConsistentReads() are considered.public <T> PaginatedScanList<T> scan(Class<T> clazz, DynamoDbScanExpression scanExpression)
IDynamoDbMapperscan in interface IDynamoDbMapperDynamoDbMapper.scan(Class, DynamoDbScanExpression, DynamoDbMapperConfig)public <T> PaginatedScanList<T> scan(Class<T> clazz, DynamoDbScanExpression scanExpression, DynamoDbMapperConfig config)
IDynamoDbMapperCallers should be aware that the returned list is unmodifiable, and any attempts to modify the list will result in an UnsupportedOperationException.
You can specify the pagination loading strategy for this scan operation. By default, the list returned is lazily loaded when possible.
scan in interface IDynamoDbMapperT - The type of the objects being returned.clazz - The class annotated with DynamoDB annotations describing how to store the object
data in Amazon DynamoDB.scanExpression - Details on how to run the scan, including any filters to apply to limit results.config - The configuration to use for this scan, which overrides the default provided at
object construction.PaginatedScanList,
DynamoDbMapperConfig.PaginationLoadingStrategypublic <T> PaginatedParallelScanList<T> parallelScan(Class<T> clazz, DynamoDbScanExpression scanExpression, int totalSegments)
IDynamoDbMapperparallelScan in interface IDynamoDbMapperDynamoDbMapper.parallelScan(Class, DynamoDbScanExpression, int, DynamoDbMapperConfig)public <T> PaginatedParallelScanList<T> parallelScan(Class<T> clazz, DynamoDbScanExpression scanExpression, int totalSegments, DynamoDbMapperConfig config)
IDynamoDbMapperCallers should be aware that the returned list is unmodifiable, and any attempts to modify the list will result in an UnsupportedOperationException.
You can specify the pagination loading strategy for this parallel scan operation. By default, the list returned is lazily loaded when possible.
parallelScan in interface IDynamoDbMapperT - The type of the objects being returned.clazz - The class annotated with DynamoDB annotations describing how to store the object
data in Amazon DynamoDB.scanExpression - Details on how to run the scan, including any filters to apply to limit results.totalSegments - Number of total parallel scan segments. Range: 1 - 4096config - The configuration to use for this scan, which overrides the default provided at
object construction.PaginatedParallelScanList,
DynamoDbMapperConfig.PaginationLoadingStrategypublic <T> ScanResultPage<T> scanPage(Class<T> clazz, DynamoDbScanExpression scanExpression)
IDynamoDbMapperscanPage in interface IDynamoDbMapperDynamoDbMapper.scanPage(Class, DynamoDbScanExpression, DynamoDbMapperConfig)public <T> ScanResultPage<T> scanPage(Class<T> clazz, DynamoDbScanExpression scanExpression, DynamoDbMapperConfig config)
IDynamoDbMapperscanPage in interface IDynamoDbMapperT - The type of the objects being returned.clazz - The class annotated with DynamoDB annotations describing how to store the object
data in Amazon DynamoDB.scanExpression - Details on how to run the scan, including any filters to apply to limit results.config - The configuration to use for this scan, which overrides the default provided at
object construction.public int count(Class<?> clazz, DynamoDbScanExpression scanExpression)
IDynamoDbMappercount in interface IDynamoDbMapperDynamoDbMapper.count(Class, DynamoDbScanExpression, DynamoDbMapperConfig)public int count(Class<?> clazz, DynamoDbScanExpression scanExpression, DynamoDbMapperConfig config)
IDynamoDbMapperThis operation will scan your entire table, and can therefore be very expensive. Use with caution.
count in interface IDynamoDbMapperclazz - The class mapped to a DynamoDB table.scanExpression - The parameters for running the scan.config - The configuration to use for this scan, which overrides the default provided at
object construction.public <T> int count(Class<T> clazz, DynamoDbQueryExpression<T> queryExpression)
IDynamoDbMappercount in interface IDynamoDbMapperDynamoDbMapper.count(Class, DynamoDbQueryExpression, DynamoDbMapperConfig)public <T> int count(Class<T> clazz, DynamoDbQueryExpression<T> queryExpression, DynamoDbMapperConfig config)
IDynamoDbMappercount in interface IDynamoDbMapperclazz - The class mapped to a DynamoDB table.queryExpression - The parameters for running the scan.config - The mapper configuration to use for the query, which overrides the default
provided at object construction.public <T> PaginatedQueryList<T> query(Class<T> clazz, DynamoDbQueryExpression<T> queryExpression)
IDynamoDbMapperquery in interface IDynamoDbMapperDynamoDbMapper.query(Class, DynamoDbQueryExpression, DynamoDbMapperConfig)public <T> PaginatedQueryList<T> query(Class<T> clazz, DynamoDbQueryExpression<T> queryExpression, DynamoDbMapperConfig config)
IDynamoDbMapperWhen the query is on any local/global secondary index, callers should be aware that the returned object(s) will only contain item attributes that are projected into the index. All the other unprojected attributes will be saved as type default values.
Callers should also be aware that the returned list is unmodifiable, and any attempts to modify the list will result in an UnsupportedOperationException.
You can specify the pagination loading strategy for this query operation. By default, the list returned is lazily loaded when possible.
query in interface IDynamoDbMapperT - The type of the objects being returned.clazz - The class annotated with DynamoDB annotations describing how to store the object
data in Amazon DynamoDB.queryExpression - Details on how to run the query, including any conditions on the key valuesconfig - The configuration to use for this query, which overrides the default provided at
object construction.PaginatedQueryList,
DynamoDbMapperConfig.PaginationLoadingStrategypublic <T> QueryResultPage<T> queryPage(Class<T> clazz, DynamoDbQueryExpression<T> queryExpression)
IDynamoDbMapperqueryPage in interface IDynamoDbMapperDynamoDbMapper.queryPage(Class, DynamoDbQueryExpression, DynamoDbMapperConfig)public <T> QueryResultPage<T> queryPage(Class<T> clazz, DynamoDbQueryExpression<T> queryExpression, DynamoDbMapperConfig config)
IDynamoDbMapperqueryPage in interface IDynamoDbMapperT - The type of the objects being returned.clazz - The class annotated with DynamoDB annotations describing how to store the object
data in AWS DynamoDB.queryExpression - Details on how to run the query, including any conditions on the key valuesconfig - The configuration to use for this query, which overrides the default provided at
object construction.public S3ClientCache s3ClientCache()
IDynamoDbMapperS3ClientCache for accessing S3.s3ClientCache in interface IDynamoDbMapperpublic S3Link createS3Link(String bucketName, String key)
IDynamoDbMappercreateS3Link in interface IDynamoDbMapperpublic S3Link createS3Link(Region s3region, String bucketName, String key)
IDynamoDbMappercreateS3Link in interface IDynamoDbMapperpublic S3Link createS3Link(String s3region, String bucketName, String key)
IDynamoDbMappercreateS3Link in interface IDynamoDbMapperpublic CreateTableRequest generateCreateTableRequest(Class<?> clazz)
IDynamoDbMappergenerateCreateTableRequest in interface IDynamoDbMapperpublic <T> CreateTableRequest generateCreateTableRequest(Class<T> clazz, DynamoDbMapperConfig config)
public DeleteTableRequest generateDeleteTableRequest(Class<?> clazz)
IDynamoDbMappergenerateDeleteTableRequest in interface IDynamoDbMapperpublic <T> DeleteTableRequest generateDeleteTableRequest(Class<T> clazz, DynamoDbMapperConfig config)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.