Class LeveledManifest
java.lang.Object
org.apache.cassandra.db.compaction.LeveledManifest
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSSTables(Iterable<SSTableReader> readers) static LeveledManifestcreate(ColumnFamilyStore cfs, int maxSSTableSize, int fanoutSize, Iterable<SSTableReader> sstables, SizeTieredCompactionStrategyOptions options) static LeveledManifestcreate(ColumnFamilyStore cfs, int maxSSTableSize, int fanoutSize, List<SSTableReader> sstables) int[]long[]intintintgetLevelSize(int i) intgetNextLevel(Collection<SSTableReader> sstables) Set<SSTableReader>[]static longmaxBytesForLevel(int level, int levelFanoutSize, long maxSSTableSizeInBytes) longmaxBytesForLevel(int level, long maxSSTableSizeInBytes) intremove(SSTableReader reader) voidreplace(Collection<SSTableReader> removed, Collection<SSTableReader> added) toString()
-
Method Details
-
create
public static LeveledManifest create(ColumnFamilyStore cfs, int maxSSTableSize, int fanoutSize, List<SSTableReader> sstables) -
create
public static LeveledManifest create(ColumnFamilyStore cfs, int maxSSTableSize, int fanoutSize, Iterable<SSTableReader> sstables, SizeTieredCompactionStrategyOptions options) -
addSSTables
-
replace
-
maxBytesForLevel
public long maxBytesForLevel(int level, long maxSSTableSizeInBytes) -
maxBytesForLevel
public static long maxBytesForLevel(int level, int levelFanoutSize, long maxSSTableSizeInBytes) -
getCompactionCandidates
- Returns:
- highest-priority sstables to compact, and level to compact them to If no compactions are necessary, will return null
-
getLevelSize
public int getLevelSize(int i) -
getAllLevelSize
public int[] getAllLevelSize() -
getAllLevelSizeBytes
public long[] getAllLevelSizeBytes() -
remove
-
getSSTables
-
getSStablesPerLevelSnapshot
-
toString
-
getLevelCount
public int getLevelCount() -
getEstimatedTasks
public int getEstimatedTasks() -
getNextLevel
-