Package krati.core.segment

Examples of krati.core.segment.MappedSegmentFactory


        int initialLength = DynamicConstants.SUB_ARRAY_SIZE << 2;
        int batchSize = StoreParams.BATCH_SIZE_DEFAULT;
        int numSyncBatches = StoreParams.NUM_SYNC_BATCHES_DEFAULT;
        int segmentFileSizeMB = StoreParams.SEGMENT_FILE_SIZE_MB_MIN;
        double segmentCompactFactor = StoreParams.SEGMENT_COMPACT_FACTOR_DEFAULT;
        SegmentFactory segmentFactory = new MappedSegmentFactory();
       
        /**
         * DynamicArrayStore only grows its capacity/length after the store has been created.
         */
        ArrayStore store = StoreFactory.createDynamicArrayStore(
View Full Code Here


        int capacity = 1000 + _rand.nextInt(1000000);
        int batchSize = StoreParams.BATCH_SIZE_DEFAULT;
        int numSyncBatches = StoreParams.NUM_SYNC_BATCHES_DEFAULT;
        int segmentFileSizeMB = StoreParams.SEGMENT_FILE_SIZE_MB_MIN;
        double segmentCompactFactor = StoreParams.SEGMENT_COMPACT_FACTOR_DEFAULT;
        SegmentFactory segmentFactory = new MappedSegmentFactory();

        DataStore<byte[], byte[]> store;
        byte[] key = RandomBytes.getBytes(32);
        byte[] value = RandomBytes.getBytes(1024);
       
View Full Code Here

        int batchSize = StoreParams.BATCH_SIZE_DEFAULT;
        int numSyncBatches = StoreParams.NUM_SYNC_BATCHES_DEFAULT;
        int segmentFileSizeMB = StoreParams.SEGMENT_FILE_SIZE_MB_MIN;
        double segmentCompactFactor = StoreParams.SEGMENT_COMPACT_FACTOR_DEFAULT;
        double hashLoadFactor = StoreParams.HASH_LOAD_FACTOR_DEFAULT;
        SegmentFactory segmentFactory = new MappedSegmentFactory();
       
        DataStore<byte[], byte[]> store;
        byte[] key = RandomBytes.getBytes(32);
        byte[] value = RandomBytes.getBytes(1024);
       
View Full Code Here

                100,     /* batchSize */
                5,       /* numSyncBatches */
                8,       /* index segmentFileSizeMB */
                new MemorySegmentFactory(),
                16,      /* store segmentFileSizeMB */
                new MappedSegmentFactory());
    }
View Full Code Here

*
*/
public class TestDynamicDataSetMapped extends TestDynamicDataSet {
    @Override
    protected SegmentFactory getSegmentFactory() {
        return new MappedSegmentFactory();
    }
View Full Code Here

        this._homeDir = homeDir;
        this._initialCapacity = initialCapacity;
        this._properties.setProperty(StoreParams.PARAM_INITIAL_CAPACITY, _initialCapacity + "");
       
        // Set the default segment factory
        this.setSegmentFactory(new MappedSegmentFactory());
       
        // Set the default hash function
        this.setHashFunction(new FnvHashFunction());
       
        // Load properties from the default configuration file
View Full Code Here

        this._properties.setProperty(StoreParams.PARAM_INITIAL_CAPACITY, _initialCapacity + "");
        this._properties.setProperty(StoreParams.PARAM_PARTITION_START, partitionStart + "");
        this._properties.setProperty(StoreParams.PARAM_PARTITION_COUNT, partitionCount + "");
       
        // Set the default segment factory
        this.setSegmentFactory(new MappedSegmentFactory());
       
        // Set the default hash function
        this.setHashFunction(new FnvHashFunction());
       
        // Load properties from the default configuration file
View Full Code Here

            } catch(Exception e) {
                _logger.warn("Invalid SegmentFactory class: " + paramValue);
            }
        }
        if(segmentFactory == null) {
            segmentFactory = new MappedSegmentFactory();
        }
        setSegmentFactory(segmentFactory);
       
        // Create _hashFunction
        paramName = StoreParams.PARAM_HASH_FUNCTION_CLASS;
View Full Code Here

*
*/
public class TestStaticDataSetMapped extends TestStaticDataSet {
    @Override
    protected SegmentFactory getSegmentFactory() {
        return new MappedSegmentFactory();
    }
View Full Code Here

    protected int getSegmentFileSizeMB() {
        return AbstractTest._segFileSizeMB;
    }
   
    protected SegmentFactory createSegmentFactory() {
        return new MappedSegmentFactory();
    }
View Full Code Here

TOP

Related Classes of krati.core.segment.MappedSegmentFactory

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.