org.openjena.atlas.data
Class BagFactory

java.lang.Object
  extended by org.openjena.atlas.data.BagFactory

public class BagFactory
extends Object

Factory for constructing different types of DataBag instances.


Constructor Summary
BagFactory()
           
 
Method Summary
static
<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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BagFactory

public BagFactory()
Method Detail

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.



Licenced under the Apache License, Version 2.0