|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
|
|
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 |
---|
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
Method Detail |
---|
<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 store
WritableRecordStore makeRecordStorage(DBIDs ids, int hints, Class<?>... dataclasses)
ids
- DBIDs to store data forhints
- Hints for the storage managerdataclasses
- classes to store
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |