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 |
---|---|
WritableDBIDDataStore |
makeDBIDStorage(DBIDs ids,
int hints)
Make a new storage, to associate the given ids with an object of class
dataclass.
|
WritableDoubleDataStore |
makeDoubleStorage(DBIDs ids,
int hints)
Make a new storage, to associate the given ids with an object of class
dataclass.
|
WritableDoubleDataStore |
makeDoubleStorage(DBIDs ids,
int hints,
double def)
Make a new storage, to associate the given ids with an object of class
dataclass.
|
WritableIntegerDataStore |
makeIntegerStorage(DBIDs ids,
int hints)
Make a new storage, to associate the given ids with an object of class
dataclass.
|
WritableIntegerDataStore |
makeIntegerStorage(DBIDs ids,
int hints,
int def)
Make a new storage, to associate the given ids with an object of class
dataclass.
|
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 storeWritableDBIDDataStore makeDBIDStorage(DBIDs ids, int hints)
ids
- DBIDs to store data forhints
- Hints for the storage managerWritableDoubleDataStore makeDoubleStorage(DBIDs ids, int hints)
ids
- DBIDs to store data forhints
- Hints for the storage managerWritableDoubleDataStore makeDoubleStorage(DBIDs ids, int hints, double def)
ids
- DBIDs to store data forhints
- Hints for the storage managerdef
- Default valueWritableIntegerDataStore makeIntegerStorage(DBIDs ids, int hints)
ids
- DBIDs to store data forhints
- Hints for the storage managerWritableIntegerDataStore makeIntegerStorage(DBIDs ids, int hints, int def)
ids
- DBIDs to store data forhints
- Hints for the storage managerdef
- Default valueWritableRecordStore makeRecordStorage(DBIDs ids, int hints, Class<?>... dataclasses)
ids
- DBIDs to store data forhints
- Hints for the storage managerdataclasses
- classes to store