Package org.aksw.commons.rx.lookup
Class ListPaginatorBatch<I>
java.lang.Object
org.aksw.commons.rx.lookup.ListPaginatorBatch<I>
- Type Parameters:
I-
- All Implemented Interfaces:
Function<com.google.common.collect.Range<Long>,,io.reactivex.rxjava3.core.Flowable<List<I>>> ListPaginator<List<I>>,RangedSupplier<Long,,List<I>> Unwrappable
A wrapper for a paginator which groups items into batches
A batch is now a first class citizen, and retrievals and counts refer to the batches
- Author:
- raven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.rx.lookup.ListPaginator
batch, fetchList, mapMethods inherited from interface org.aksw.commons.util.delegate.Unwrappable
unwrap
-
Field Details
-
base
-
batchSize
protected long batchSize
-
-
Constructor Details
-
ListPaginatorBatch
-
-
Method Details
-
apply
-
fetchCount
public io.reactivex.rxjava3.core.Single<com.google.common.collect.Range<Long>> fetchCount(Long itemLimit, Long rowLimit) - Specified by:
fetchCountin interfaceListPaginator<I>
-