Package krati.store

Examples of krati.store.IndexedDataStore


                        int storeSegmentFileSizeMB, SegmentFactory storeSegmentFactory) throws Exception {
    int indexInitLevel = getInitLevel(initialCapacity);
    int storeInitLevel = Math.max(1, indexInitLevel/2);
    this.updateBatchSize = updateBatchSize;
    this.storeHomeDir = storeDir;
    this.indexedStore = new IndexedDataStore(
        storeDir,
        updateBatchSize,
        numSyncBatches,
        indexInitLevel,
        indexSegmentFileSizeMB,
View Full Code Here


*/
public class TestIndexedDataStoreIterator extends AbstractTestDataStoreIterator {
   
    @Override
    protected DataStore<byte[], byte[]> createStore(File homeDir) throws Exception {
        return new IndexedDataStore(
                homeDir,
                1 << 16, /* initialCapacity */
                100,     /* batchSize */
                5,       /* numSyncBatches */
                8,       /* index segmentFileSizeMB */
 
View Full Code Here

     * @param config - DataStore configuration
     * @return A dynamic DataStore with growing capacity as needed.
     * @throws Exception if the store cannot be created.
     */
    public static IndexedDataStore createIndexedDataStore(StoreConfig config) throws Exception {
        return new IndexedDataStore(config);
    }
View Full Code Here

            int numSyncBatches,
            int indexSegmentFileSizeMB,
            SegmentFactory indexSegmentFactory,
            int storeSegmentFileSizeMB,
            SegmentFactory storeSegmentFactory) throws Exception {
        return new IndexedDataStore(
                homeDir,
                initialCapacity,
                batchSize,
                numSyncBatches,
                indexSegmentFileSizeMB,
View Full Code Here

*/
public class TestIndexedDataStoreApi extends AbstractTestDataStoreApi {

    @Override
    protected DataStore<byte[], byte[]> createStore(File homeDir) throws Exception {
        return new IndexedDataStore(
                homeDir,
                1 << 16, /* initialCapacity */
                100,     /* batchSize */
                5,       /* numSyncBatches */
                8,       /* index segmentFileSizeMB */
 
View Full Code Here

            config.setSegmentFileSizeMB(32);
            config.setSegmentFactory(new WriteBufferSegmentFactory());
            config.setInt(StoreParams.PARAM_INDEX_SEGMENT_FILE_SIZE_MB, 8);
            config.setClass(StoreParams.PARAM_SEGMENT_FACTORY_CLASS, MemorySegmentFactory.class);
           
            _store = new IndexedDataStore(config);
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

TOP

Related Classes of krati.store.IndexedDataStore

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.