Class PaginatorQueryBase<T>

java.lang.Object
org.aksw.jena_sparql_api.lookup.PaginatorQueryBase<T>
All Implemented Interfaces:
Function<com.google.common.collect.Range<Long>,io.reactivex.rxjava3.core.Flowable<T>>, org.aksw.commons.rx.lookup.ListPaginator<T>, org.aksw.commons.rx.range.RangedSupplier<Long,T>, org.aksw.commons.util.delegate.Unwrappable
Direct Known Subclasses:
PaginatorQueryBinding, PaginatorQueryTriple

public abstract class PaginatorQueryBase<T> extends Object implements org.aksw.commons.rx.lookup.ListPaginator<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    protected org.apache.jena.query.Query
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PaginatorQueryBase(QueryExecFactoryQuery qef, org.apache.jena.query.Query query)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.reactivex.rxjava3.core.Flowable<T>
    apply(com.google.common.collect.Range<Long> range)
     
    io.reactivex.rxjava3.core.Single<com.google.common.collect.Range<Long>>
    fetchCount(Long itemLimit, Long rowLimit)
     
    protected abstract io.reactivex.rxjava3.core.Flowable<T>
    obtainResultIterator(Callable<org.apache.jena.sparql.exec.QueryExec> qe)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose

    Methods inherited from interface org.aksw.commons.rx.lookup.ListPaginator

    batch, fetchList, map

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

    unwrap
  • Field Details

  • Constructor Details

    • PaginatorQueryBase

      public PaginatorQueryBase(QueryExecFactoryQuery qef, org.apache.jena.query.Query query)
  • Method Details

    • obtainResultIterator

      protected abstract io.reactivex.rxjava3.core.Flowable<T> obtainResultIterator(Callable<org.apache.jena.sparql.exec.QueryExec> qe)
    • apply

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

      public io.reactivex.rxjava3.core.Single<com.google.common.collect.Range<Long>> fetchCount(Long itemLimit, Long rowLimit)
      Specified by:
      fetchCount in interface org.aksw.commons.rx.lookup.ListPaginator<T>