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, wait
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
getAllUidx, uidx2user, uidx2user, user2uidx, user2uidx
Methods inherited from interface es.uam.eps.ir.relison.links.data.GraphIndex
containsItem, iidx2item, numItems
Methods inherited from interface es.uam.eps.ir.relison.links.data.updateable.index.UpdateableItemIndex
addItems
Methods 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:
user2uidx
in interfacees.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>
-
uidx2user
- Specified by:
uidx2user
in interfacees.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>
-
containsUser
-
numUsers
public int numUsers()- Specified by:
numUsers
in interfacees.uam.eps.ir.ranksys.core.index.UserIndex<U>
-
getAllUsers
- Specified by:
getAllUsers
in interfaceFastUpdateableUserIndex<U>
- Specified by:
getAllUsers
in interfacees.uam.eps.ir.ranksys.fast.index.FastUserIndex<U>
- Specified by:
getAllUsers
in interfacees.uam.eps.ir.ranksys.core.index.UserIndex<U>
-
getAllItems
- Specified by:
getAllItems
in interfacees.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>
- Specified by:
getAllItems
in interfaceFastUpdateableItemIndex<U>
- Specified by:
getAllItems
in interfaceGraphIndex<U>
- Specified by:
getAllItems
in interfacees.uam.eps.ir.ranksys.core.index.ItemIndex<U>
-
item2iidx
- Specified by:
item2iidx
in interfacees.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>
- Specified by:
item2iidx
in interfaceGraphIndex<U>
-
addItem
Description copied from interface:UpdateableItemIndex
Adds a new item.- Specified by:
addItem
in interfaceUpdateableItemIndex<U>
- Parameters:
u
- the item.- Returns:
- the identifier of the new item
-
addUser
Description copied from interface:UpdateableUserIndex
Adds a user to the index.- Specified by:
addUser
in interfaceUpdateableUserIndex<U>
- Parameters:
u
- the user.- Returns:
- the identifier of the new user.
-