Package org.voltdb.types

Examples of org.voltdb.types.AntiCacheDBType


    @Override
    public void antiCacheInitialize(File dbDir, long blockSize) throws EEException {
        assert(m_anticache == false);

        HStoreConf hstore_conf = executor.getHStoreConf();
        AntiCacheDBType dbtype = AntiCacheDBType.get(hstore_conf.site.anticache_dbtype);


        // TODO: Switch to LOG.debug
        if (debug.val) {
            LOG.debug("Initializing anti-cache feature at partition " + this.executor.getPartitionId());
            LOG.debug("****************");
            LOG.debug(String.format("Partition #%d AntiCache Directory: %s",
                      this.executor.getPartitionId(), dbDir.getAbsolutePath()));
            LOG.debug(String.format("AntiCacheDBType: %d", dbtype.ordinal()));
        }
     
        final int errorCode = nativeAntiCacheInitialize(this.pointer, dbDir.getAbsolutePath(), blockSize, dbtype.ordinal());
        checkErrorCode(errorCode);
        m_anticache = true;
    }
View Full Code Here

TOP

Related Classes of org.voltdb.types.AntiCacheDBType

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.