Interface Updateable<U,I>
- Type Parameters:
U
- Type of the usersI
- 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 itemvoid
updateAddUser(U u)
Adds a uservoid
updateDelete(java.util.stream.Stream<org.jooq.lambda.tuple.Tuple2<U,I>> tuples)
Updates the preference data given a set of preferences to deletevoid
updateDelete(U u, I i)
Deletes an invidivual preference
-
Method Details
-
update
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
Updates an individual preference.- Parameters:
u
- useri
- itemval
- preference value
-
updateDelete
Updates the preference data given a set of preferences to delete- Parameters:
tuples
- the tuples
-
updateDelete
Deletes an invidivual preference- Parameters:
u
- useri
- item
-
updateAddUser
Adds a user- Parameters:
u
- user
-
updateAddItem
Adds an item- Parameters:
i
- item
-