edu.stanford.math.plex4.streams.storage_structures
public class StreamStorageStructureFactory extends java.lang.Object
Constructor and Description |
---|
StreamStorageStructureFactory() |
Modifier and Type | Method and Description |
---|---|
static <T extends PrimitiveBasisElement> |
getDefaultStorageStructure(java.util.Comparator<T> comparator)
This function returns the default stream storage structure for the type T.
|
static <T extends PrimitiveBasisElement> |
getHashedStorageStructure(java.util.Comparator<T> comparator)
This function creates a new hashed storage structure.
|
static <T> StreamStorageStructure<T> |
getSortedStorageStructure(java.util.Comparator<T> comparator)
This function creates a new sorted storage structure.
|
public static <T extends PrimitiveBasisElement> StreamStorageStructure<T> getDefaultStorageStructure(java.util.Comparator<T> comparator)
T
- the underlying basis typecomparator
- a comparator for comparing basis elementspublic static <T> StreamStorageStructure<T> getSortedStorageStructure(java.util.Comparator<T> comparator)
T
- the underlying basis typecomparator
- a comparator for comparing basis elementspublic static <T extends PrimitiveBasisElement> StreamStorageStructure<T> getHashedStorageStructure(java.util.Comparator<T> comparator)
T
- the underlying basis typecomparator
- a comparator for comparing basis elements