de.lmu.ifi.dbs.elki.database.datastore
Class DataStoreUtil

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.database.datastore.DataStoreUtil

public final class DataStoreUtil
extends Object

Storage utility class. Mostly a shorthand for DataStoreFactory.FACTORY.


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

Constructor Detail

DataStoreUtil

public DataStoreUtil()
Method Detail

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 for
hints - Hints for the storage manager
dataclass - 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 for
hints - Hints for the storage manager
dataclasses - classes to store
Returns:
new record store

Release 0.4.0 (2011-09-20_1324)