de.lmu.ifi.dbs.elki.database.datastore
Interface DataStoreFactory

All Known Implementing Classes:
MemoryDataStoreFactory

public interface DataStoreFactory

API for a storage factory used for producing larger storage maps. Use FACTORY for a static instance.


Field Summary
static DataStoreFactory FACTORY
          Static storage factory
static int HINT_DB
          Data that is the main database.
static int HINT_HOT
          "Hot" data, that will be used a lot, preferring memory storage.
static int HINT_SORTED
          Data that might require sorted access (so hashmaps are suboptimal)
static int HINT_STATIC
          "static" data, that will not change often
static int HINT_TEMP
          Storage will be used only temporary.
 
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.
 

Field Detail

FACTORY

static final DataStoreFactory FACTORY
Static storage factory


HINT_TEMP

static final int HINT_TEMP
Storage will be used only temporary.

See Also:
Constant Field Values

HINT_HOT

static final int HINT_HOT
"Hot" data, that will be used a lot, preferring memory storage.

See Also:
Constant Field Values

HINT_STATIC

static final int HINT_STATIC
"static" data, that will not change often

See Also:
Constant Field Values

HINT_SORTED

static final int HINT_SORTED
Data that might require sorted access (so hashmaps are suboptimal)

See Also:
Constant Field Values

HINT_DB

static final int HINT_DB
Data that is the main database. Includes HOT, STATIC, SORTED

See Also:
Constant Field Values
Method Detail

makeStorage

<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

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)