de.lmu.ifi.dbs.elki.database
Interface UpdatableDatabase

All Superinterfaces:
Database, HierarchicalResult, Result
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.


Method Summary
 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 de.lmu.ifi.dbs.elki.database.Database
accumulateDataStoreEvents, addDataStoreListener, addIndex, flushDataStoreEvents, getBundle, getDBIDs, getDistanceQuery, getIndexes, getKNNQuery, getRangeQuery, getRelation, getRelations, getRKNNQuery, getSimilarityQuery, initialize, removeDataStoreListener, removeIndex, size
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.HierarchicalResult
getHierarchy, setHierarchy
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result
getLongName, getShortName
 

Method Detail

insert

DBIDs insert(ObjectBundle objpackages)
             throws UnableToComplyException
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
Throws:
UnableToComplyException - if insertion is not possible

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
Throws:
UnableToComplyException - if deletion is not possible

Release 0.4.0 (2011-09-20_1324)