Package com.guokr.simbase.store

Examples of com.guokr.simbase.store.Basis


                    del(null, bkey);
                }

                logger.info(String.format("loading basis[%s]", bkey));

                Basis basis = new Basis(bkey);
                SimBasis simBasis = new SimBasis(context.getSub("basis", bkey), basis);
                bases.put(bkey, simBasis);
                basisOf.put(bkey, bkey);
                kindOf.put(bkey, Kind.BASIS);
                simBasis.addListener(SimEngineImpl.this);
View Full Code Here


        mngmExec.execute(new SafeRunner("bmk", callback) {
            @Override
            public void invoke() {
                validateKeyFormat(bkey);
                validateNotExistence(bkey);
                Basis basis = new Basis(bkey, base);
                SimBasis simbasis = new SimBasis(context.getSub("basis", bkey), basis);
                bases.put(bkey, simbasis);
                basisOf.put(bkey, bkey);
                kindOf.put(bkey, Kind.BASIS);
                simbasis.addListener(SimEngineImpl.this);
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;
View Full Code Here

TOP

Related Classes of com.guokr.simbase.store.Basis

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.