Package es.uam.eps.ir.relison.links.data
Class FastGraphIndex<U>
java.lang.Object
es.uam.eps.ir.relison.links.data.FastGraphIndex<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>
public class FastGraphIndex<U> extends java.lang.Object implements GraphIndex<U>
Class that represents both user and item indexes for a graph.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description FastGraphIndex(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, getAllItems, iidx2item, numItems
-
Field Details
-
index
User index.
-
-
Constructor Details
-
FastGraphIndex
Constructor. Extracts the information from a FastGraph.- 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
-
item2iidx
- Specified by:
item2iidx
in interfacees.uam.eps.ir.ranksys.fast.index.FastItemIndex<U>
- Specified by:
item2iidx
in interfaceGraphIndex<U>
-