T - the type of the entity to handleID - the type of the entity's identifierpublic class SimpleDynamoDBPagingAndSortingRepository<T,ID extends Serializable> extends SimpleDynamoDBCrudRepository<T,ID> implements DynamoDBPagingAndSortingRepository<T,ID>
PagingAndSortingRepository
interface.
Due to DynamoDB limitations, sorting is not supported for find-all operations
Due to DynamoDB limitations, paging for find-all queries is not possible
using an integer page number For paged requests, attempt to approximate
paging behavior by limiting the number of items which will be scanned, and by
returning a sublist of the result-set.
NB: Number of results scanned for a given page request is proportional to the
page number requested!domainType, dynamoDBOperations, enableScanPermissions, entityInformation| Constructor and Description |
|---|
SimpleDynamoDBPagingAndSortingRepository(DynamoDBEntityInformation<T,ID> entityInformation,
DynamoDBOperations dynamoDBOperations,
EnableScanPermissions enableScanPermissions) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertScanCountEnabled(boolean countScanEnabled,
String methodName) |
org.springframework.data.domain.Page<T> |
findAll(org.springframework.data.domain.Pageable pageable) |
Iterable<T> |
findAll(org.springframework.data.domain.Sort sort) |
assertScanEnabled, count, delete, delete, delete, deleteAll, exists, findAll, findAll, findOne, load, loadBatch, save, savepublic SimpleDynamoDBPagingAndSortingRepository(DynamoDBEntityInformation<T,ID> entityInformation, DynamoDBOperations dynamoDBOperations, EnableScanPermissions enableScanPermissions)
public Iterable<T> findAll(org.springframework.data.domain.Sort sort)
findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>public org.springframework.data.domain.Page<T> findAll(org.springframework.data.domain.Pageable pageable)
findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,ID extends Serializable>public void assertScanCountEnabled(boolean countScanEnabled,
String methodName)
Copyright © 2016. All rights reserved.