T
- Representation object typepublic class MapIntegerDBIDStore<T> extends java.lang.Object implements WritableDataStore<T>
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> |
data
Storage Map.
|
Constructor and Description |
---|
MapIntegerDBIDStore()
Constructor.
|
MapIntegerDBIDStore(int size)
Constructor.
|
MapIntegerDBIDStore(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> data)
Constructor.
|
Modifier and Type | Method and 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 |
get(DBIDRef id)
Retrieves an object from the storage.
|
T |
put(DBIDRef id,
T value)
Associates the specified value with the specified id in this storage.
|
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> data
public MapIntegerDBIDStore(it.unimi.dsi.fastutil.ints.Int2ObjectMap<T> data)
data
- Existing mappublic MapIntegerDBIDStore()
public MapIntegerDBIDStore(int size)
size
- Expected sizepublic T get(DBIDRef id)
DataStore
public T put(DBIDRef 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(DBIDRef id)
WritableDataStore
delete
in interface WritableDataStore<T>
id
- Database ID.public void clear()
WritableDataStore
clear
in interface WritableDataStore<T>
Copyright © 2019 ELKI Development Team. License information.