Interface ModifiableRelation<O>

  • Type Parameters:
    O - Data type.
    All Superinterfaces:
    Relation<O>
    All Known Subinterfaces:
    DoubleRelation
    All Known Implementing Classes:
    MaterializedDoubleRelation, MaterializedRelation

    public interface ModifiableRelation<O>
    extends Relation<O>
    Relations that allow modification. Important: Relations are now responsible for maintaining their indexes after creation (i.e. notifying them of inserts and deletions).
    Since:
    0.7.0
    Author:
    Erich Schubert
    • Method Detail

      • insert

        void insert​(DBIDRef id,
                    O val)
        Set (or insert) an object representation.
        Parameters:
        id - Object ID
        val - Value
      • delete

        void delete​(DBIDRef id)
        Delete an objects values.
        Parameters:
        id - ID to delete