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

public class PaginatorBatchedLookup<I,O> extends Object implements ListPaginator<O>
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 Details

  • Constructor Details

    • PaginatorBatchedLookup

      public PaginatorBatchedLookup()
  • Method Details

    • apply

      public io.reactivex.rxjava3.core.Flowable<O> apply(com.google.common.collect.Range<Long> range)
      Specified by:
      apply in interface Function<I,O>
    • fetchCount

      public io.reactivex.rxjava3.core.Single<com.google.common.collect.Range<Long>> fetchCount(Long itemLimit, Long rowLimit)
      Specified by:
      fetchCount in interface ListPaginator<I>