Class PaginatorBatchedLookup<I,O>
java.lang.Object
org.aksw.commons.rx.lookup.PaginatorBatchedLookup<I,O>
- Type Parameters:
I-O-
- All Implemented Interfaces:
Function<com.google.common.collect.Range<Long>, io.reactivex.rxjava3.core.Flowable<O>>, ListPaginator<O>, RangedSupplier<Long,O>, Unwrappable
This paginator maps each item through a lookup service by batching the lookup requests
It does not change the count of items from the base paginator
Note: Retains null values
- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ListPaginator<I> protected intprotected LookupService<I, O> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ListPaginator
batch, fetchList, mapMethods inherited from interface Unwrappable
unwrap
-
Field Details
-
base
-
lookup
-
batchSize
protected int batchSize
-
-
Constructor Details
-
PaginatorBatchedLookup
public PaginatorBatchedLookup()
-
-
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>
-