org.apache.jena.atlas.data
Class ThresholdPolicyFactory

java.lang.Object
  extended by org.apache.jena.atlas.data.ThresholdPolicyFactory

public class ThresholdPolicyFactory
extends Object


Constructor Summary
ThresholdPolicyFactory()
           
 
Method Summary
static
<E> ThresholdPolicy<E>
count(long threshold)
          A threshold policy based on the number of tuples added.
static
<E> ThresholdPolicy<E>
never()
          A threshold policy that is never exceeded.
static
<E> ThresholdPolicy<E>
policyFromContext(Context context)
          A threshold policy based on the ARQ.spillToDiskThreshold symbol in the given Context.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThresholdPolicyFactory

public ThresholdPolicyFactory()
Method Detail

never

public static final <E> ThresholdPolicy<E> never()
A threshold policy that is never exceeded.


count

public static <E> ThresholdPolicy<E> count(long threshold)
A threshold policy based on the number of tuples added.


policyFromContext

public static <E> ThresholdPolicy<E> policyFromContext(Context context)
A threshold policy based on the ARQ.spillToDiskThreshold symbol in the given Context. If the symbol is not set, then the never() policy is used by default.



Licenced under the Apache License, Version 2.0