|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.database.datastore.memory.MapStore<T>
T
- Representation object typepublic class MapStore<T>
A class to answer representation queries using a map. Basically, it is just a wrapper around a regular map.
Field Summary | |
---|---|
private Map<DBID,T> |
data
Storage Map |
Constructor Summary | |
---|---|
MapStore()
Constructor. |
|
MapStore(Map<DBID,T> data)
Constructor. |
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 |
get(DBID id)
Retrieves an object from the storage. |
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus. |
String |
getShortName()
A short name for the result, useful for file names. |
T |
put(DBID id,
T value)
Associates the specified value with the specified id in this storage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Map<DBID,T> data
Constructor Detail |
---|
public MapStore(Map<DBID,T> data)
data
- Existing mappublic MapStore()
Method Detail |
---|
public T get(DBID id)
DataStore
get
in interface DataStore<T>
id
- Database ID.
null
public T put(DBID id, T value)
WritableDataStore
put
in interface WritableDataStore<T>
id
- Database ID.value
- Value to store.
public void destroy()
WritableDataStore
destroy
in interface WritableDataStore<T>
public void delete(DBID id)
WritableDataStore
delete
in interface WritableDataStore<T>
id
- Database ID.public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |