Package krati.core

Examples of krati.core.StoreConfig.validate()


       
        double hashLoadFactor = StoreParams.HASH_LOAD_FACTOR_DEFAULT - 0.07;
        config.setHashLoadFactor(hashLoadFactor);
        assertEquals(hashLoadFactor, config.getHashLoadFactor());
       
        config.validate();
        config.save();
       
        StoreConfig config2 = new StoreConfig(getHomeDir(), getInitialCapacity());
       
        assertEquals(config.isIndexesCached(), config2.isIndexesCached());
View Full Code Here


        assertEquals(Fnv1aHash64.class.getName(), config2.getProperty(StoreParams.PARAM_HASH_FUNCTION_CLASS));
        assertEquals(StoreParams.SEGMENT_FILE_SIZE_MB_MIN, config2.getSegmentFileSizeMB());
        assertEquals(StoreParams.NUM_SYNC_BATCHES_MIN, config2.getNumSyncBatches());
        assertEquals(StoreParams.BATCH_SIZE_MIN, config2.getBatchSize());
       
        config2.validate();
    }
   
    public void testNewInstance() throws IOException {
        StoreConfig config = new StoreConfig(getHomeDir(), getInitialCapacity());
        StoreConfig config1 = StoreConfig.newInstance(new File(getHomeDir(), StoreConfig.CONFIG_PROPERTIES_FILE));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.