de.lmu.ifi.dbs.elki.database.datastore
Class DataStoreUtil
java.lang.Object
de.lmu.ifi.dbs.elki.database.datastore.DataStoreUtil
public final class DataStoreUtil
- extends Object
Storage utility class. Mostly a shorthand for DataStoreFactory.FACTORY.
|
Method Summary |
static WritableRecordStore |
makeRecordStorage(DBIDs ids,
int hints,
Class<?>... dataclasses)
Make a new record storage, to associate the given ids with an object of class dataclass. |
static
|
makeStorage(DBIDs ids,
int hints,
Class<? super T> dataclass)
Make a new storage, to associate the given ids with an object of class dataclass. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataStoreUtil
public DataStoreUtil()
makeStorage
public static <T> WritableDataStore<T> makeStorage(DBIDs ids,
int hints,
Class<? super T> dataclass)
- Make a new storage, to associate the given ids with an object of class dataclass.
- Type Parameters:
T - stored data type- Parameters:
ids - DBIDs to store data forhints - Hints for the storage managerdataclass - class to store
- Returns:
- new data store
makeRecordStorage
public static WritableRecordStore makeRecordStorage(DBIDs ids,
int hints,
Class<?>... dataclasses)
- Make a new record storage, to associate the given ids with an object of class dataclass.
- Parameters:
ids - DBIDs to store data forhints - Hints for the storage managerdataclasses - classes to store
- Returns:
- new record store