Package org.rocksdb
Enum Class CompactionReason
- All Implemented Interfaces:
Serializable,Comparable<CompactionReason>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription[Level] Automatic compaction within bottommost level to cleanup duplicate versions of same user key, usually due to a released snapshot.Compaction in order to move files to temperatureCompaction caused by external sst file ingestion[FIFO] total size > max_table_files_size[FIFO] reduce number of files.[FIFO] files with creation time < (current_time - interval)DB::SuggestCompactRange() marked files for compactionAccording to the comments in flush_job.cc, RocksDB treats flush as a level 0 compaction in internal stats.Compaction scheduled to force garbage collection of blob files[Level] number of L0 files > level0_file_num_compaction_trigger[Level] total size of level > MaxBytesForLevel()Manual compactionCompaction due to SST file being too oldCompaction by calling DBImpl::ReFitLevelA special TTL compaction for RoundRobin policy, which basically the same as kLevelMaxLevelSize, but the goal is to compact TTLed files.Compaction based on TTL[Universal] Compacting for size amplification[Universal] Compacting for size ratio[Universal] number of sorted runs > level0_file_num_compaction_trigger -
Method Summary
Modifier and TypeMethodDescriptionstatic CompactionReasonReturns the enum constant of this class with the specified name.static CompactionReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
kUnknown
-
kLevelL0FilesNum
[Level] number of L0 files > level0_file_num_compaction_trigger -
kLevelMaxLevelSize
[Level] total size of level > MaxBytesForLevel() -
kUniversalSizeAmplification
[Universal] Compacting for size amplification -
kUniversalSizeRatio
[Universal] Compacting for size ratio -
kUniversalSortedRunNum
[Universal] number of sorted runs > level0_file_num_compaction_trigger -
kFIFOMaxSize
[FIFO] total size > max_table_files_size -
kFIFOReduceNumFiles
[FIFO] reduce number of files. -
kFIFOTtl
[FIFO] files with creation time < (current_time - interval) -
kManualCompaction
Manual compaction -
kFilesMarkedForCompaction
DB::SuggestCompactRange() marked files for compaction -
kBottommostFiles
[Level] Automatic compaction within bottommost level to cleanup duplicate versions of same user key, usually due to a released snapshot. -
kTtl
Compaction based on TTL -
kFlush
According to the comments in flush_job.cc, RocksDB treats flush as a level 0 compaction in internal stats. -
kExternalSstIngestion
Compaction caused by external sst file ingestion -
kPeriodicCompaction
Compaction due to SST file being too old -
kChangeTemperature
Compaction in order to move files to temperature -
kForcedBlobGC
Compaction scheduled to force garbage collection of blob files -
kRoundRobinTtl
A special TTL compaction for RoundRobin policy, which basically the same as kLevelMaxLevelSize, but the goal is to compact TTLed files. -
kRefitLevel
Compaction by calling DBImpl::ReFitLevel
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-