de.lmu.ifi.dbs.elki.database.datastore
Interface WritableDataStore<T>

Type Parameters:
T -
All Superinterfaces:
DataStore<T>, Result
All Known Implementing Classes:
ArrayRecordStore.StorageAccessor, ArrayStore, MapRecordStore.StorageAccessor, MapStore

public interface WritableDataStore<T>
extends DataStore<T>

Writable data store.


Method Summary
 void delete(DBID 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(DBID id, T value)
          Associates the specified value with the specified id in this storage.
 
Methods inherited from interface de.lmu.ifi.dbs.elki.database.datastore.DataStore
get
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result
getLongName, getShortName
 

Method Detail

put

T put(DBID 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(DBID id)
Delete the contents for a particular ID and notifies the registered listeners.

Parameters:
id - Database ID.

Release 0.4.0 (2011-09-20_1324)