public interface DataStoreFactory
FACTORY
for a static instance.Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static final DataStoreFactory FACTORY
static final int HINT_TEMP
static final int HINT_HOT
static final int HINT_STATIC
static final int HINT_SORTED
static final int HINT_DB
<T> WritableDataStore<T> makeStorage(DBIDs ids, int hints, Class<? super T> dataclass)
T
- stored data typeids
- DBIDs to store data forhints
- Hints for the storage managerdataclass
- class to storeWritableRecordStore makeRecordStorage(DBIDs ids, int hints, Class<?>... dataclasses)
ids
- DBIDs to store data forhints
- Hints for the storage managerdataclasses
- classes to store