@Override protected LongList recommend(long user, int n, @Nullable LongSet candidates, @Nullable LongSet exclude) { if (exclude == null) { exclude = data.query(statistics.getEntityType()) .withAttribute(CommonAttributes.USER_ID, user) .valueSet(CommonAttributes.ITEM_ID); } return recommendWithSets(n, candidates, exclude); }
@Override protected LongList recommend(long user, int n, @Nullable LongSet candidates, @Nullable LongSet exclude) { if (exclude == null) { exclude = data.query(statistics.getEntityType()) .withAttribute(CommonAttributes.USER_ID, user) .valueSet(CommonAttributes.ITEM_ID); } return recommendWithSets(n, candidates, exclude); }