public class MapIntegerDBIDDoubleStore extends Object implements WritableDoubleDataStore
Modifier and Type | Field and Description |
---|---|
private TIntDoubleMap |
map
Data storage.
|
Constructor and Description |
---|
MapIntegerDBIDDoubleStore(int size)
Constructor.
|
MapIntegerDBIDDoubleStore(int size,
double def)
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.
|
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.
|
void |
increment(DBIDRef id,
double value)
Increment the specified value with the specified id in this storage.
|
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.
|
private TIntDoubleMap map
public MapIntegerDBIDDoubleStore(int size)
size
- Expected sizepublic MapIntegerDBIDDoubleStore(int size, double def)
size
- Expected sizedef
- Default value@Deprecated public Double get(DBIDRef id)
DoubleDataStore
get
in interface DataStore<Double>
get
in interface DoubleDataStore
id
- Database ID.null
public double doubleValue(DBIDRef id)
DoubleDataStore
doubleValue
in interface DoubleDataStore
id
- Database ID.public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result
@Deprecated public Double put(DBIDRef id, Double value)
WritableDoubleDataStore
put
in interface WritableDataStore<Double>
put
in interface WritableDoubleDataStore
id
- Database ID.value
- Value to store.public void delete(DBIDRef id)
WritableDataStore
delete
in interface WritableDataStore<Double>
id
- Database ID.public double putDouble(DBIDRef id, double value)
WritableDoubleDataStore
putDouble
in interface WritableDoubleDataStore
id
- Database ID.value
- Value to store.public double put(DBIDRef id, double value)
WritableDoubleDataStore
put
in interface WritableDoubleDataStore
id
- Database ID.value
- Value to store.public void increment(DBIDRef id, double value)
WritableDoubleDataStore
increment
in interface WritableDoubleDataStore
id
- Database ID.value
- Value to add to the previous value.public void clear()
WritableDataStore
clear
in interface WritableDataStore<Double>
public void destroy()
WritableDataStore
destroy
in interface WritableDataStore<Double>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.