
public class MapIntegerDBIDDoubleStore extends Object implements WritableDoubleDataStore
| Modifier and Type | Field and Description |
|---|---|
private gnu.trove.map.TIntDoubleMap |
map
Data storage.
|
| Constructor and Description |
|---|
MapIntegerDBIDDoubleStore(int size)
Constructor.
|
MapIntegerDBIDDoubleStore(int size,
double def)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
double |
doubleValue(DBIDRef id)
Retrieves an object from the storage.
|
Double |
get(DBIDRef id)
Deprecated.
|
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.
|
double |
put(DBIDRef id,
double value)
Associates the specified value with the specified id in this storage.
|
Double |
put(DBIDRef id,
Double value)
Deprecated.
|
double |
putDouble(DBIDRef id,
double value)
Associates the specified value with the specified id in this storage.
|
public MapIntegerDBIDDoubleStore(int size)
size - Expected sizepublic MapIntegerDBIDDoubleStore(int size,
double def)
size - Expected sizedef - Default value@Deprecated public Double get(DBIDRef id)
DoubleDataStoreget in interface DataStore<Double>get in interface DoubleDataStoreid - Database ID.nullpublic double doubleValue(DBIDRef id)
DoubleDataStoredoubleValue in interface DoubleDataStoreid - Database ID.public String getLongName()
ResultgetLongName in interface Resultpublic String getShortName()
ResultgetShortName in interface Result@Deprecated public Double put(DBIDRef id, Double value)
WritableDoubleDataStoreput in interface WritableDataStore<Double>put in interface WritableDoubleDataStoreid - Database ID.value - Value to store.public void destroy()
WritableDataStoredestroy in interface WritableDataStore<Double>public void delete(DBIDRef id)
WritableDataStoredelete in interface WritableDataStore<Double>id - Database ID.public double putDouble(DBIDRef id, double value)
WritableDoubleDataStoreputDouble in interface WritableDoubleDataStoreid - Database ID.value - Value to store.public double put(DBIDRef id, double value)
WritableDoubleDataStoreput in interface WritableDoubleDataStoreid - Database ID.value - Value to store.