java.lang.Object
org.apache.jena.atlas.data.BagFactory
Factory for constructing different types of
DataBag
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> DefaultDataBag<T>
newDefaultBag
(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory) Get a default (unordered, not distinct) data bag.static <T extends Comparable<? super T>>
DistinctDataBag<T>newDistinctBag
(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory) Get a distinct data bag.static <T> DistinctDataBag<T>
newDistinctBag
(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory, Comparator<T> comparator) Get a distinct data bag.static <T extends Comparable<? super T>>
DistinctDataNet<T>newDistinctNet
(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory) Get a distinct data net.static <T> DistinctDataNet<T>
newDistinctNet
(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory, Comparator<T> comparator) Get a distinct data net.static <T extends Comparable<? super T>>
SortedDataBag<T>newSortedBag
(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory) Get a sorted data bag.static <T> SortedDataBag<T>
newSortedBag
(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory, Comparator<T> comparator) Get a sorted data bag.
-
Constructor Details
-
BagFactory
public BagFactory()
-
-
Method Details
-
newDefaultBag
public static <T> DefaultDataBag<T> newDefaultBag(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory) Get a default (unordered, not distinct) data bag. -
newSortedBag
public static <T extends Comparable<? super T>> SortedDataBag<T> newSortedBag(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory) Get a sorted data bag. -
newSortedBag
public static <T> SortedDataBag<T> newSortedBag(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory, Comparator<T> comparator) Get a sorted data bag. -
newDistinctBag
public static <T extends Comparable<? super T>> DistinctDataBag<T> newDistinctBag(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory) Get a distinct data bag. -
newDistinctBag
public static <T> DistinctDataBag<T> newDistinctBag(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory, Comparator<T> comparator) Get a distinct data bag. -
newDistinctNet
public static <T extends Comparable<? super T>> DistinctDataNet<T> newDistinctNet(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory) Get a distinct data net. -
newDistinctNet
public static <T> DistinctDataNet<T> newDistinctNet(ThresholdPolicy<T> policy, SerializationFactory<T> serializerFactory, Comparator<T> comparator) Get a distinct data net.
-