Package org.iq80.leveldb.impl
Class DbConstants
java.lang.Object
org.iq80.leveldb.impl.DbConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intLevel-0 compaction is started when we hit this many files.static final intSoft limit on number of level-0 files.static final intMaximum number of level-0 files.static final intstatic final intMaximum level to which a new compacted memtable is pushed if it does not create overlap.static final intstatic final intMax number of levels -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAJOR_VERSION
public static final int MAJOR_VERSION- See Also:
-
MINOR_VERSION
public static final int MINOR_VERSION- See Also:
-
NUM_LEVELS
public static final int NUM_LEVELSMax number of levels- See Also:
-
L0_COMPACTION_TRIGGER
public static final int L0_COMPACTION_TRIGGERLevel-0 compaction is started when we hit this many files.- See Also:
-
L0_SLOWDOWN_WRITES_TRIGGER
public static final int L0_SLOWDOWN_WRITES_TRIGGERSoft limit on number of level-0 files. We slow down writes at this point.- See Also:
-
L0_STOP_WRITES_TRIGGER
public static final int L0_STOP_WRITES_TRIGGERMaximum number of level-0 files. We stop writes at this point.- See Also:
-
MAX_MEM_COMPACT_LEVEL
public static final int MAX_MEM_COMPACT_LEVELMaximum level to which a new compacted memtable is pushed if it does not create overlap. We try to push to level 2 to avoid the relatively expensive level 0=>1 compactions and to avoid some expensive manifest file operations. We do not push all the way to the largest level since that can generate a lot of wasted disk space if the same key space is being repeatedly overwritten.- See Also:
-
-
Constructor Details
-
DbConstants
private DbConstants()
-