Examples of StorePartitionConfig


Examples of krati.core.StorePartitionConfig

     * @param idStart    the start of member IDs.
     * @param idCount    the count of member IDs.
     * @throws Exception if a partition instance can not be created.
     */
    public KratiDataPartition(File homeDir, int idStart, int idCount) throws Exception {
        StorePartitionConfig config = new StorePartitionConfig(homeDir, idStart, idCount);
        config.setSegmentFactory(new MemorySegmentFactory());
        config.setSegmentFileSizeMB(64);
       
        _partition = StoreFactory.createArrayStorePartition(config);
    }
View Full Code Here

Examples of krati.core.StorePartitionConfig

        return value1.equals(value2);
    }
   
    @Override
    protected DataStore<Integer, String> createStore() throws Exception {
        StoreConfig config = new StorePartitionConfig(new File(getHomeDir(), "store"), _indexStart, _indexCount);
        config.setSegmentFileSizeMB(16);
        config.setNumSyncBatches(10);
        config.setBatchSize(100);
       
        ObjectStoreFactory<Integer, String> factory = new StaticObjectArrayFactory<String>();
        return factory.create(config, new IntSerializer(), new StringSerializerUtf8());
    }
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.