org.mapdb.CC Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mapdb Show documentation
Show all versions of mapdb Show documentation
MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap memory. It is a fast, scalable and easy to use embedded Java database.
package org.mapdb;
import net.jpountz.xxhash.XXHashFactory;
import org.mapdb.volume.ByteArrayVol;
import org.mapdb.volume.RandomAccessFileVol;
import org.mapdb.volume.VolumeFactory;
/**
* Compilation Configuration. Uses dead code elimination to remove `if(CONSTANT){code}` blocks
*/
public interface CC{
boolean LOG = true;
/** compile MapDB with assertions enabled */
boolean ASSERT = true;
/** compile MapDB with paranoid mode enabled */
boolean PARANOID = false;
boolean ZEROS = false;
boolean FAIR_LOCK = true;
int PAGE_SHIFT = 20; // 1 MB
long PAGE_SIZE = 1<