Interface UpdateableItemIndex<I>

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

public interface UpdateableItemIndex<I>
extends es.uam.eps.ir.ranksys.core.index.ItemIndex<I>
Updateable index for a set of items.
  • Method Summary

    Modifier and Type Method Description
    int addItem​(I i)
    Adds a new item.
    default void addItems​(java.util.stream.Stream<I> items)
    Adds a set of items to the index

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

    containsItem, getAllItems, numItems
  • Method Details

    • addItem

      int addItem​(I i)
      Adds a new item.
      Parameters:
      i - the item.
      Returns:
      the identifier of the new item
    • addItems

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