Interface UpdateableUserIndex<U>

Type Parameters:
U - type of the users
All Superinterfaces:
es.uam.eps.ir.ranksys.core.index.UserIndex<U>
All Known Subinterfaces:
FastUpdateablePointWisePreferenceData<U,​I>, FastUpdateablePreferenceData<U,​I>, FastUpdateableUserIndex<U>
All Known Implementing Classes:
AbstractFastUpdateablePreferenceData, FastUpdateableGraphIndex, GraphSimpleUpdateableFastPreferenceData, IteratorsAbstractFastUpdateablePreferenceData, SimpleFastUpdateablePreferenceData, SimpleFastUpdateableUserIndex, StreamsAbstractFastUpdateablePreferenceData, TransposedUpdateablePreferenceData, UpdateableFactorization

public interface UpdateableUserIndex<U>
extends es.uam.eps.ir.ranksys.core.index.UserIndex<U>
Updateable index for a set of users.
  • Method Summary

    Modifier and Type Method Description
    int addUser​(U u)
    Adds a user to the index.
    default void addUsers​(java.util.stream.Stream<U> users)
    Adds a set of users to the index

    Methods inherited from interface es.uam.eps.ir.ranksys.core.index.UserIndex

    containsUser, getAllUsers, numUsers
  • Method Details

    • addUser

      int addUser​(U u)
      Adds a user to the index.
      Parameters:
      u - the user.
      Returns:
      the identifier of the new user.
    • addUsers

      default void addUsers​(java.util.stream.Stream<U> users)
      Adds a set of users to the index
      Parameters:
      users - a stream containing the users to add.