Package elki.database.datastore
Interface WritableDataStore<T>
-
- Type Parameters:
T
- Data type
- All Superinterfaces:
DataStore<T>
- All Known Subinterfaces:
WritableDBIDDataStore
,WritableDoubleDataStore
,WritableIntegerDataStore
- All Known Implementing Classes:
ArrayDBIDStore
,ArrayDoubleStore
,ArrayIntegerStore
,ArrayRecordStore.StorageAccessor
,ArrayStore
,MapIntegerDBIDDBIDStore
,MapIntegerDBIDDoubleStore
,MapIntegerDBIDIntegerStore
,MapIntegerDBIDRecordStore.StorageAccessor
,MapIntegerDBIDStore
,MapRecordStore.StorageAccessor
,MapStore
public interface WritableDataStore<T> extends DataStore<T>
Writable data store.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clear the storage (resetting it to the default value).void
delete(DBIDRef id)
Delete the contents for a particular ID and notifies the registered listeners.void
destroy()
Deallocate the storage, freeing the memory and notifies the registered listeners.T
put(DBIDRef id, T value)
Associates the specified value with the specified id in this storage.
-
-
-
Method Detail
-
put
T put(DBIDRef id, T 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.- Returns:
- previous value
-
destroy
void destroy()
Deallocate the storage, freeing the memory and notifies the registered listeners.
-
delete
void delete(DBIDRef id)
Delete the contents for a particular ID and notifies the registered listeners.- Parameters:
id
- Database ID.
-
clear
void clear()
Clear the storage (resetting it to the default value).
-
-