Package com.guokr.simbase.store

Examples of com.guokr.simbase.store.SerializerHelper$RecommendationSerializer


            for (String vkey : vectorSets.keySet()) {
                vectorSets.get(vkey).clean();
            }

            output = new Output(new FileOutputStream(filepath));
            SerializerHelper serializerHelper = helper.get();
            serializerHelper.writeB(output, this.base);
            serializerHelper.writeVectorSets(output, this.vectorSets);
            serializerHelper.writeRecommendations(output, this.recommendations);
        } catch (Throwable e) {
            throw new SimException(e);
        } finally {
            if (output != null) {
                output.close();
View Full Code Here


    public void bload(String filepath) {
        Input input = null;
        try {
            input = new Input(new FileInputStream(filepath));
            SerializerHelper serializerHelper = helper.get();
            Basis base = serializerHelper.readB(input);
            Map<String, VectorSet> vecSets = serializerHelper.readVectorSets(input, base);
            Map<String, Recommendation> recs = serializerHelper.readRecommendations(input, vecSets);

            this.base = base;
            this.vectorSets = vecSets;
            this.recommendations = recs;
View Full Code Here

TOP

Related Classes of com.guokr.simbase.store.SerializerHelper$RecommendationSerializer

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.