U
- type of the userspublic class CachedUserNeighborhood<U> extends UserNeighborhood<U>
CachedNeighborhood
.neighborhood, uIndex
Constructor and Description |
---|
CachedUserNeighborhood(FastUserIndex<U> uIndex,
Stream<org.jooq.lambda.tuple.Tuple2<U,Stream<Tuple2od<U>>>> neighborhoods)
Constructor that caches a stream of previously calculated neighborhoods.
|
CachedUserNeighborhood(UserNeighborhood<U> neighborhood)
Constructor that calculates and caches user neighborhoods.
|
getNeighbors, getNeighbors, numUsers, uidx2user, user2uidx
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsUser, getAllUidx, getAllUsers, uidx2user, uidx2user, user2uidx, user2uidx
public CachedUserNeighborhood(UserNeighborhood<U> neighborhood)
neighborhood
- user neighborhood to be cachedpublic CachedUserNeighborhood(FastUserIndex<U> uIndex, Stream<org.jooq.lambda.tuple.Tuple2<U,Stream<Tuple2od<U>>>> neighborhoods)
uIndex
- fast user indexneighborhoods
- stream of already calculated neighborhoodsCopyright © 2016. All rights reserved.