Class RangeCostModel

java.lang.Object
org.aksw.jena_sparql_api.util.collection.RangeCostModel
Type Parameters:
T -

public class RangeCostModel extends Object
Iterator that changes its delegate in case there is a problem with the current one
Author:
raven
  • Field Details

    • waitCostThreshold

      protected double waitCostThreshold
      The maximum cost for waiting for an intersecting interval before the requested range to become available
    • rangeToIterCost

      protected Function<com.google.common.collect.Range<Long>,Double> rangeToIterCost
      The cost of iterating items [TODO this is bull]
    • offsetToQueryCost

      protected Function<Long,Double> offsetToQueryCost
      The cost of starting a request a given offset (independent of the range of items being fetched)
  • Constructor Details

    • RangeCostModel

      public RangeCostModel()