Package elki.database.datastore
Interface WritableDoubleDataStore
-
- All Superinterfaces:
DataStore<java.lang.Double>
,DoubleDataStore
,WritableDataStore<java.lang.Double>
- All Known Implementing Classes:
ArrayDoubleStore
,MapIntegerDBIDDoubleStore
public interface WritableDoubleDataStore extends DoubleDataStore, WritableDataStore<java.lang.Double>
Data store specialized for doubles. Avoids boxing/unboxing.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description 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.java.lang.Double
put(DBIDRef id, java.lang.Double value)
Deprecated.UseputDouble(elki.database.ids.DBIDRef, double)
instead, to avoid boxing/unboxing cost.double
putDouble(DBIDRef id, double value)
Associates the specified value with the specified id in this storage.-
Methods inherited from interface elki.database.datastore.DoubleDataStore
doubleValue, get
-
Methods inherited from interface elki.database.datastore.WritableDataStore
clear, delete, destroy
-
-
-
-
Method Detail
-
put
@Deprecated java.lang.Double put(DBIDRef id, java.lang.Double value)
Deprecated.UseputDouble(elki.database.ids.DBIDRef, double)
instead, to avoid boxing/unboxing cost.Setter, but using objects.- Specified by:
put
in interfaceWritableDataStore<java.lang.Double>
- Parameters:
id
- Database ID.value
- Value to store.- Returns:
- previous value
-
putDouble
double putDouble(DBIDRef id, double 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
-
put
double put(DBIDRef id, double 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
-
increment
void increment(DBIDRef id, double value)
Increment the specified value with the specified id in this storage.- Parameters:
id
- Database ID.value
- Value to add to the previous value.
-
-