de.lmu.ifi.dbs.elki.database.datastore.memory
Class MemoryDataStoreFactory

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.database.datastore.memory.MemoryDataStoreFactory
All Implemented Interfaces:
DataStoreFactory

public class MemoryDataStoreFactory
extends Object
implements DataStoreFactory

Simple factory class that will store all data in memory using object arrays or hashmaps. Hints are currently not used by this implementation, since everything is in-memory.


Field Summary
 
Fields inherited from interface de.lmu.ifi.dbs.elki.database.datastore.DataStoreFactory
FACTORY, HINT_DB, HINT_HOT, HINT_SORTED, HINT_STATIC, HINT_TEMP
 
Constructor Summary
MemoryDataStoreFactory()
           
 
Method Summary
 WritableRecordStore makeRecordStorage(DBIDs ids, int hints, Class<?>... dataclasses)
          Make a new record storage, to associate the given ids with an object of class dataclass.
<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

MemoryDataStoreFactory

public MemoryDataStoreFactory()
Method Detail

makeStorage

public <T> WritableDataStore<T> makeStorage(DBIDs ids,
                                            int hints,
                                            Class<? super T> dataclass)
Description copied from interface: DataStoreFactory
Make a new storage, to associate the given ids with an object of class dataclass.

Specified by:
makeStorage in interface DataStoreFactory
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 WritableRecordStore makeRecordStorage(DBIDs ids,
                                             int hints,
                                             Class<?>... dataclasses)
Description copied from interface: DataStoreFactory
Make a new record storage, to associate the given ids with an object of class dataclass.

Specified by:
makeRecordStorage in interface DataStoreFactory
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)