Package elki.database.datastore
Interface WritableIntegerDataStore
-
- All Superinterfaces:
DataStore<java.lang.Integer>,IntegerDataStore,WritableDataStore<java.lang.Integer>
- All Known Implementing Classes:
ArrayIntegerStore,MapIntegerDBIDIntegerStore
public interface WritableIntegerDataStore extends IntegerDataStore, WritableDataStore<java.lang.Integer>
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 voidincrement(DBIDRef id, int adjust)Increment a value.intput(DBIDRef id, int value)Associates the specified value with the specified id in this storage.java.lang.Integerput(DBIDRef id, java.lang.Integer value)Deprecated.UseputInt(elki.database.ids.DBIDRef, int)instead, to avoid boxing/unboxing cost.intputInt(DBIDRef id, int value)Associates the specified value with the specified id in this storage.-
Methods inherited from interface elki.database.datastore.IntegerDataStore
get, intValue
-
Methods inherited from interface elki.database.datastore.WritableDataStore
clear, delete, destroy
-
-
-
-
Method Detail
-
put
@Deprecated java.lang.Integer put(DBIDRef id, java.lang.Integer value)
Deprecated.UseputInt(elki.database.ids.DBIDRef, int)instead, to avoid boxing/unboxing cost.Setter, but using objects.- Specified by:
putin interfaceWritableDataStore<java.lang.Integer>- Parameters:
id- Database ID.value- Value to store.- Returns:
- previous value
-
putInt
int putInt(DBIDRef id, int 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
int put(DBIDRef id, int 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, int adjust)
Increment a value.- Parameters:
id- Database ID.adjust- Value to add to the previous value.
-
-