Interface GraphIndex<U>

Type Parameters:
U - Type of the users.
All Superinterfaces:
es.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>, es.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>, es.uam.eps.ir.ranksys.core.index.ItemIndex<U>, es.uam.eps.ir.ranksys.core.index.UserIndex<U>
All Known Implementing Classes:
FastGraphIndex, FastUpdateableGraphIndex

public interface GraphIndex<U>
extends es.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>, es.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>
Class that represents both user and item indexes for a graph.
  • Method Summary

    Modifier and Type Method Description
    default boolean containsItem​(U i)  
    default java.util.stream.Stream<U> getAllItems()  
    default U iidx2item​(int i)  
    default int item2iidx​(U i)  
    default int numItems()  

    Methods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastItemIndex

    getAllIidx, iidx2item, iidx2item, item2iidx, item2iidx

    Methods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastUserIndex

    containsUser, getAllUidx, getAllUsers, uidx2user, uidx2user, uidx2user, user2uidx, user2uidx, user2uidx

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

    numUsers
  • Method Details

    • item2iidx

      default int item2iidx​(U i)
      Specified by:
      item2iidx in interface es.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>
    • iidx2item

      default U iidx2item​(int i)
      Specified by:
      iidx2item in interface es.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>
    • containsItem

      default boolean containsItem​(U i)
      Specified by:
      containsItem in interface es.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>
      Specified by:
      containsItem in interface es.uam.eps.ir.ranksys.core.index.ItemIndex<U>
    • numItems

      default int numItems()
      Specified by:
      numItems in interface es.uam.eps.ir.ranksys.core.index.ItemIndex<U>
    • getAllItems

      default java.util.stream.Stream<U> getAllItems()
      Specified by:
      getAllItems in interface es.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>
      Specified by:
      getAllItems in interface es.uam.eps.ir.ranksys.core.index.ItemIndex<U>