Class SimpleDynamoDBPagingAndSortingRepository<T,​ID>

  • Type Parameters:
    T - the type of the entity to handle
    ID - the type of the entity's identifier
    All Implemented Interfaces:
    DynamoDBCrudRepository<T,​ID>, DynamoDBPagingAndSortingRepository<T,​ID>, ExceptionHandler, SortHandler, org.springframework.data.repository.CrudRepository<T,​ID>, org.springframework.data.repository.PagingAndSortingRepository<T,​ID>, org.springframework.data.repository.Repository<T,​ID>

    public class SimpleDynamoDBPagingAndSortingRepository<T,​ID>
    extends SimpleDynamoDBCrudRepository<T,​ID>
    implements DynamoDBPagingAndSortingRepository<T,​ID>
    Default implementation of the 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!
    Author:
    Michael Lavelle, Sebastian Just
    • Method Detail

      • findAll

        public java.lang.Iterable<T> findAll​(org.springframework.data.domain.Sort sort)
        Specified by:
        findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,​ID>
      • findAll

        public org.springframework.data.domain.Page<T> findAll​(org.springframework.data.domain.Pageable pageable)
        Specified by:
        findAll in interface org.springframework.data.repository.PagingAndSortingRepository<T,​ID>
      • assertScanCountEnabled

        public void assertScanCountEnabled​(boolean countScanEnabled,
                                           java.lang.String methodName)