Package elki.database.datastore
Interface WritableDBIDDataStore
-
- All Superinterfaces:
DataStore<DBID>
,DBIDDataStore
,WritableDataStore<DBID>
- All Known Implementing Classes:
ArrayDBIDStore
,MapIntegerDBIDDBIDStore
public interface WritableDBIDDataStore extends DBIDDataStore, WritableDataStore<DBID>
Data store specialized for doubles. Avoids boxing/unboxing.- Since:
- 0.5.5
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description DBID
put(DBIDRef id, DBID value)
Deprecated.UseputDBID(elki.database.ids.DBIDRef, elki.database.ids.DBIDRef)
instead, to avoid boxing/unboxing cost.void
put(DBIDRef id, DBIDRef value)
Associates the specified value with the specified id in this storage.void
putDBID(DBIDRef id, DBIDRef value)
Associates the specified value with the specified id in this storage.-
Methods inherited from interface elki.database.datastore.DBIDDataStore
assignVar, get
-
Methods inherited from interface elki.database.datastore.WritableDataStore
clear, delete, destroy
-
-
-
-
Method Detail
-
put
@Deprecated DBID put(DBIDRef id, DBID value)
Deprecated.UseputDBID(elki.database.ids.DBIDRef, elki.database.ids.DBIDRef)
instead, to avoid boxing/unboxing cost.Setter, but using materialized DBIDs.- Specified by:
put
in interfaceWritableDataStore<DBID>
- Parameters:
id
- Database ID.value
- Value to store.- Returns:
- previous value
-
putDBID
void putDBID(DBIDRef id, DBIDRef value)
Associates the specified value with the specified id in this storage. If the storage previously contained a value for the id, the previous value is replaced by the specified value.- Parameters:
id
- Database ID.value
- Value to store.
-
-