Package org.grouplens.lenskit.collections

Examples of org.grouplens.lenskit.collections.CompactableLongArrayList$SerialProxy


    public ScoredIdListBuilder(int cap) {
        initialize(cap);
    }

    private void initialize(int cap) {
        ids = new CompactableLongArrayList(cap);
        scores = new DoubleArrayList(cap);
        channels = new Reference2ObjectArrayMap<Symbol, ChannelStorage>();
        typedChannels = new Reference2ObjectArrayMap<TypedSymbol<?>, TypedChannelStorage<?>>();
    }
View Full Code Here


            builtIds = ids;
            scores.trim();
            builtScores = scores;
            clear();
        } else {
            builtIds = new CompactableLongArrayList(ids);
            builtScores = new DoubleArrayList(scores);
        }
        return new PackedScoredIdList(builtIds, builtScores, typedChans, chans);
    }
View Full Code Here

        if (items == null) {
            int isize = findInitialSize(count + 1);

            scores = new DoubleArrayList(isize);
            items = new CompactableLongArrayList(isize);
        }

        assert items.size() == scores.size();

        /*
 
View Full Code Here

TOP

Related Classes of org.grouplens.lenskit.collections.CompactableLongArrayList$SerialProxy

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.