Interface ListPaginator<T>

All Superinterfaces:
Function<com.google.common.collect.Range<Long>,io.reactivex.rxjava3.core.Flowable<T>>, RangedSupplier<Long,T>, org.aksw.commons.util.delegate.Unwrappable
All Known Subinterfaces:
MapPaginator<K,V>
All Known Implementing Classes:
ListPaginatorBatch, ListPaginatorFromList, ListPaginatorMapWrapper, ListPaginatorWithAdvancedCache, ListPaginatorWithSimpleCache, ListServiceFromList.ListPaginatorList, MapPaginatorTransformItem, MapServiceFromListService.MapPaginatorFromListService, PaginatorBatchedLookup

public interface ListPaginator<T> extends RangedSupplier<Long,T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default ListPaginator<List<T>>
    batch(long chunkSize)
     
    io.reactivex.rxjava3.core.Single<com.google.common.collect.Range<Long>>
    fetchCount(Long itemLimit, Long rowLimit)
     
    default List<T>
    fetchList(com.google.common.collect.Range<Long> range)
     
    default <U> ListPaginator<U>
    map(Function<? super T,U> mapper)
     

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose

    Methods inherited from interface org.aksw.commons.util.delegate.Unwrappable

    unwrap
  • Method Details

    • fetchCount

      io.reactivex.rxjava3.core.Single<com.google.common.collect.Range<Long>> fetchCount(Long itemLimit, Long rowLimit)
    • fetchList

      default List<T> fetchList(com.google.common.collect.Range<Long> range)
    • batch

      default ListPaginator<List<T>> batch(long chunkSize)
    • map

      default <U> ListPaginator<U> map(Function<? super T,U> mapper)