Package org.grouplens.lenskit.data.dao

Examples of org.grouplens.lenskit.data.dao.ItemEventDAO


        public LongSet apply(@Nullable Recommender input) {
            if (input == null) {
                return LongSets.EMPTY_SET;
            }
            LenskitRecommender rec = (LenskitRecommender) input;
            ItemEventDAO idao = rec.get(ItemEventDAO.class);
            ScoredItemAccumulator accum = new TopNScoredItemAccumulator(count);
            Cursor<ItemEventCollection<Event>> items = idao.streamEventsByItem();
            try {
                for (ItemEventCollection<Event> item: items) {
                    accum.put(item.getItemId(), item.size());
                }
            } finally {
View Full Code Here

TOP

Related Classes of org.grouplens.lenskit.data.dao.ItemEventDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.