Interface Updateable<U,​I>

Type Parameters:
U - Type of the users
I - Type of the items
All Known Subinterfaces:
FastUpdateablePointWisePreferenceData<U,​I>, FastUpdateablePreferenceData<U,​I>, UpdateablePreferenceData<U,​I>
All Known Implementing Classes:
AbstractFastUpdateablePreferenceData, GraphSimpleUpdateableFastPreferenceData, IteratorsAbstractFastUpdateablePreferenceData, SimpleFastUpdateablePreferenceData, StreamsAbstractFastUpdateablePreferenceData, TransposedUpdateablePreferenceData

public interface Updateable<U,​I>
Preference data that allows updating over time
  • Method Summary

    Modifier and Type Method Description
    void update​(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple3<U,​I,​java.lang.Double>> tuples)
    Updates the preference data given a set of preferences.
    void update​(U u, I i, double val)
    Updates an individual preference.
    void updateAddItem​(I i)
    Adds an item
    void updateAddUser​(U u)
    Adds a user
    void updateDelete​(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple2<U,​I>> tuples)
    Updates the preference data given a set of preferences to delete
    void updateDelete​(U u, I i)
    Deletes an invidivual preference
  • Method Details

    • update

      void update​(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple3<U,​I,​java.lang.Double>> tuples)
      Updates the preference data given a set of preferences. It does not add new users/items. Tuples with non-existing users/items will be ignored.
      Parameters:
      tuples - the tuples.
    • update

      void update​(U u, I i, double val)
      Updates an individual preference.
      Parameters:
      u - user
      i - item
      val - preference value
    • updateDelete

      void updateDelete​(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple2<U,​I>> tuples)
      Updates the preference data given a set of preferences to delete
      Parameters:
      tuples - the tuples
    • updateDelete

      void updateDelete​(U u, I i)
      Deletes an invidivual preference
      Parameters:
      u - user
      i - item
    • updateAddUser

      void updateAddUser​(U u)
      Adds a user
      Parameters:
      u - user
    • updateAddItem

      void updateAddItem​(I i)
      Adds an item
      Parameters:
      i - item