Package org.apache.jena.atlas.data
Class ThresholdPolicyFactory
- java.lang.Object
-
- org.apache.jena.atlas.data.ThresholdPolicyFactory
-
public class ThresholdPolicyFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ThresholdPolicyFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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 theARQ.spillToDiskThresholdsymbol in the given Context.
-
-
-
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 theARQ.spillToDiskThresholdsymbol in the given Context. If the symbol is not set, then thenever()policy is used by default.
-
-