Package com.fasterxml.storemate.store.impl

Examples of com.fasterxml.storemate.store.impl.StorableConverter


        if (dbRoot == null) {
            throw new IllegalStateException("Missing LevelDBConfig.dataRoot");
        }
        _verifyDir(dbRoot, canCreate);
       
        StorableConverter storableConv = _storeConfig.createStorableConverter();

        Env env = new Env();
        /* 08-May-2013, tatu: Not 100% sure what the meaning is, but
         *   guessing it might be the size of underlying memory-mapped
         *   file?
View Full Code Here


        File dataDir = new File(dbRoot, DATA_DIR);
        _verifyDir(dataDir, canCreate);
        File lastModDir = new File(dbRoot, LAST_MOD_DIR);
        _verifyDir(lastModDir, canCreate);
       
        StorableConverter storableConv = _storeConfig.createStorableConverter();

        Iq80DBFactory factory = Iq80DBFactory.factory;
        Options options = new Options();
        options = options
                .createIfMissing(canCreate)
View Full Code Here

     */

    public StorableConverter createStorableConverter()
    {
        if (storableConverter == null || storableConverter == StorableConverter.class) {
            return new StorableConverter();
        }
        try {
            return (StorableConverter) storableConverter.newInstance();
        } catch (Exception e) {
            throw new IllegalStateException("Failed to instantiate StorableConverter of type "
View Full Code Here

            if (!dbRoot.mkdirs()) {
                throw new IllegalArgumentException("Directory '"+dbRoot.getAbsolutePath()+"' did not exist: failed to create it");
            }
        }

        StorableConverter storableConv = _storeConfig.createStorableConverter();
        EnvironmentConfig envConfig = envConfigForStore(canCreate, canWrite);
        BDBJEStoreBackend physicalStore;
        try {
            physicalStore = new BDBJEStoreBackend(storableConv, dbRoot, _bdbConfig, envConfig);
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.fasterxml.storemate.store.impl.StorableConverter

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.