Interface WritableIntegerDataStore

    • Method Detail

      • put

        @Deprecated
        java.lang.Integer put​(DBIDRef id,
                              java.lang.Integer value)
        Deprecated.
        Use putInt(elki.database.ids.DBIDRef, int) instead, to avoid boxing/unboxing cost.
        Setter, but using objects.
        Specified by:
        put in interface WritableDataStore<java.lang.Integer>
        Parameters:
        id - Database ID.
        value - Value to store.
        Returns:
        previous value
      • putInt

        int putInt​(DBIDRef id,
                   int value)
        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.
        Parameters:
        id - Database ID.
        value - Value to store.
        Returns:
        previous value
      • put

        int put​(DBIDRef id,
                int value)
        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.
        Parameters:
        id - Database ID.
        value - Value to store.
        Returns:
        previous value
      • increment

        void increment​(DBIDRef id,
                       int adjust)
        Increment a value.
        Parameters:
        id - Database ID.
        adjust - Value to add to the previous value.