Class MapIntegerDBIDDBIDStore

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private it.unimi.dsi.fastutil.ints.Int2IntMap map
      Data storage.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      DBIDVar assignVar​(DBIDRef id, DBIDVar var)
      Retrieves an object from the storage.
      void clear()
      Clear the storage (resetting it to the default value).
      void delete​(DBIDRef id)
      Delete the contents for a particular ID and notifies the registered listeners.
      void destroy()
      Deallocate the storage, freeing the memory and notifies the registered listeners.
      DBID get​(DBIDRef id)
      Deprecated.
      DBID put​(DBIDRef id, DBID value)
      Deprecated.
      void put​(DBIDRef id, DBIDRef value)
      Associates the specified value with the specified id in this storage.
      void putDBID​(DBIDRef id, DBIDRef value)
      Associates the specified value with the specified id in this storage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • map

        private it.unimi.dsi.fastutil.ints.Int2IntMap map
        Data storage.
    • Constructor Detail

      • MapIntegerDBIDDBIDStore

        public MapIntegerDBIDDBIDStore​(int size)
        Constructor.
        Parameters:
        size - Expected size
    • Method Detail

      • get

        @Deprecated
        public DBID get​(DBIDRef id)
        Deprecated.
        Description copied from interface: DBIDDataStore
        Getter, but using objects.
        Specified by:
        get in interface DataStore<DBID>
        Specified by:
        get in interface DBIDDataStore
        Parameters:
        id - Database ID.
        Returns:
        Object or null
      • put

        public void put​(DBIDRef id,
                        DBIDRef value)
        Description copied from interface: WritableDBIDDataStore
        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.
        Specified by:
        put in interface WritableDBIDDataStore
        Parameters:
        id - Database ID.
        value - Value to store.
      • putDBID

        public void putDBID​(DBIDRef id,
                            DBIDRef value)
        Description copied from interface: WritableDBIDDataStore
        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.
        Specified by:
        putDBID in interface WritableDBIDDataStore
        Parameters:
        id - Database ID.
        value - Value to store.
      • delete

        public void delete​(DBIDRef id)
        Description copied from interface: WritableDataStore
        Delete the contents for a particular ID and notifies the registered listeners.
        Specified by:
        delete in interface WritableDataStore<DBID>
        Parameters:
        id - Database ID.
      • destroy

        public void destroy()
        Description copied from interface: WritableDataStore
        Deallocate the storage, freeing the memory and notifies the registered listeners.
        Specified by:
        destroy in interface WritableDataStore<DBID>