Package elki.database
Interface UpdatableDatabase
-
- All Superinterfaces:
Database
- All Known Implementing Classes:
HashmapDatabase
public interface UpdatableDatabase extends Database
Database API with updates. Static databases allow for certain optimizations that cannot be done in dynamic databases.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SingleObjectBundle
delete(DBIDRef id)
Removes and returns the specified objects with the given ids from the database.ObjectBundle
delete(DBIDs ids)
Removes and returns the specified objects with the given ids from the database.DBIDs
insert(ObjectBundle objpackages)
Inserts the given object(s) and their associations into the database.-
Methods inherited from interface elki.database.Database
accumulateDataStoreEvents, addDataStoreListener, flushDataStoreEvents, getBundle, getRelation, getRelations, initialize, removeDataStoreListener
-
-
-
-
Method Detail
-
insert
DBIDs insert(ObjectBundle objpackages)
Inserts the given object(s) and their associations into the database.- Parameters:
objpackages
- the objects to be inserted- Returns:
- the IDs assigned to the inserted objects
-
delete
ObjectBundle delete(DBIDs ids)
Removes and returns the specified objects with the given ids from the database.- Parameters:
ids
- the ids of the object to be removed from the database- Returns:
- the objects that have been removed
-
delete
SingleObjectBundle delete(DBIDRef id)
Removes and returns the specified objects with the given ids from the database.- Parameters:
id
- the id of the object to be removed from the database- Returns:
- the object that have been removed
-
-