Class ArrayDBIDStore

    • Constructor Detail

      • ArrayDBIDStore

        public ArrayDBIDStore​(int size,
                              DataStoreIDMap idmap)
        Constructor.
        Parameters:
        size - Size
        idmap - ID map
    • 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
      • 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.
      • 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.
      • 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>
      • 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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object