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 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