Class FastUpdateableGraphIndex<U>
java.lang.Object
es.uam.eps.ir.relison.links.data.updateable.index.fast.FastUpdateableGraphIndex<U>
- Type Parameters:
U- Type of the users.
- All Implemented Interfaces:
es.uam.eps.ir.ranksys.core.index.ItemIndex<U>,es.uam.eps.ir.ranksys.core.index.UserIndex<U>,es.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>,es.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>,GraphIndex<U>,FastUpdateableItemIndex<U>,FastUpdateableUserIndex<U>,UpdateableItemIndex<U>,UpdateableUserIndex<U>
public class FastUpdateableGraphIndex<U> extends java.lang.Object implements GraphIndex<U>, FastUpdateableUserIndex<U>, FastUpdateableItemIndex<U>
Class that represents both user and item indexes for a graph.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FastUpdateableGraphIndex(FastGraph<U> graph)Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastItemIndex
getAllIidx, iidx2item, iidx2item, item2iidx, item2iidxMethods inherited from interface es.uam.eps.ir.ranksys.fast.index.FastUserIndex
getAllUidx, uidx2user, uidx2user, user2uidx, user2uidxMethods inherited from interface es.uam.eps.ir.relison.links.data.GraphIndex
containsItem, iidx2item, numItemsMethods inherited from interface es.uam.eps.ir.relison.links.data.updateable.index.UpdateableItemIndex
addItemsMethods inherited from interface es.uam.eps.ir.relison.links.data.updateable.index.UpdateableUserIndex
addUsers
-
Field Details
-
graph
User index.
-
-
Constructor Details
-
FastUpdateableGraphIndex
Constructor. From a FastGraph, extracts the information.- Parameters:
graph- the graph.
-
-
Method Details
-
user2uidx
- Specified by:
user2uidxin interfacees.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>
-
uidx2user
- Specified by:
uidx2userin interfacees.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>
-
containsUser
-
numUsers
public int numUsers()- Specified by:
numUsersin interfacees.uam.eps.ir.ranksys.core.index.UserIndex<U>
-
getAllUsers
- Specified by:
getAllUsersin interfaceFastUpdateableUserIndex<U>- Specified by:
getAllUsersin interfacees.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>- Specified by:
getAllUsersin interfacees.uam.eps.ir.ranksys.core.index.UserIndex<U>
-
getAllItems
- Specified by:
getAllItemsin interfacees.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>- Specified by:
getAllItemsin interfaceFastUpdateableItemIndex<U>- Specified by:
getAllItemsin interfaceGraphIndex<U>- Specified by:
getAllItemsin interfacees.uam.eps.ir.ranksys.core.index.ItemIndex<U>
-
item2iidx
- Specified by:
item2iidxin interfacees.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>- Specified by:
item2iidxin interfaceGraphIndex<U>
-
addItem
Description copied from interface:UpdateableItemIndexAdds a new item.- Specified by:
addItemin interfaceUpdateableItemIndex<U>- Parameters:
u- the item.- Returns:
- the identifier of the new item
-
addUser
Description copied from interface:UpdateableUserIndexAdds a user to the index.- Specified by:
addUserin interfaceUpdateableUserIndex<U>- Parameters:
u- the user.- Returns:
- the identifier of the new user.
-