Package krati.store

Examples of krati.store.StaticDataArray


*/
public class TestStaticDataArrayApi extends AbstractTestArrayStoreApi {

    @Override
    protected ArrayStore createStore(File homeDir) throws Exception {
        return new StaticDataArray(
                _rand.nextInt(1 << 20), /* length */
                100,                    /* batchSize */
                5,                      /* numSyncBatches */
                homeDir,
                new MappedSegmentFactory(),
View Full Code Here


     * @param config - ArrayStore configuration
     * @return A fixed-length ArrayStore.
     * @throws Exception if the store cannot be created.
     */
    public static ArrayStore createStaticArrayStore(StoreConfig config) throws Exception {
        return new StaticDataArray(config);
    }
View Full Code Here

            int batchSize,
            int numSyncBatches,
            int segmentFileSizeMB,
            SegmentFactory segmentFactory,
            double segmentCompactFactor) throws Exception {
        return new StaticDataArray(
                length,
                batchSize,
                numSyncBatches,
                homeDir,
                segmentFactory,
View Full Code Here

        return new krati.core.segment.MappedSegmentFactory();
    }
   
    @Override
    protected AbstractDataArray createDataArray(File homeDir) throws Exception {
        return new StaticDataArray(_idCount,
                                   homeDir,
                                   createSegmentFactory(),
                                   _segFileSizeMB);
    }
View Full Code Here

TOP

Related Classes of krati.store.StaticDataArray

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.