@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;
}