Class LeveledManifest
- java.lang.Object
-
- org.apache.cassandra.db.compaction.LeveledManifest
-
public class LeveledManifest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLeveledManifest.CompactionCandidate
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSSTables(java.lang.Iterable<SSTableReader> readers)static LeveledManifestcreate(ColumnFamilyStore cfs, int maxSSTableSize, int fanoutSize, java.lang.Iterable<SSTableReader> sstables, SizeTieredCompactionStrategyOptions options)static LeveledManifestcreate(ColumnFamilyStore cfs, int maxSSTableSize, int fanoutSize, java.util.List<SSTableReader> sstables)int[]getAllLevelSize()long[]getAllLevelSizeBytes()LeveledManifest.CompactionCandidategetCompactionCandidates()intgetEstimatedTasks()intgetLevelCount()intgetLevelSize(int i)intgetNextLevel(java.util.Collection<SSTableReader> sstables)java.util.Set<SSTableReader>getSSTables()java.util.Set<SSTableReader>[]getSStablesPerLevelSnapshot()static longmaxBytesForLevel(int level, int levelFanoutSize, long maxSSTableSizeInBytes)longmaxBytesForLevel(int level, long maxSSTableSizeInBytes)intremove(SSTableReader reader)voidreplace(java.util.Collection<SSTableReader> removed, java.util.Collection<SSTableReader> added)java.lang.StringtoString()
-
-
-
Method Detail
-
create
public static LeveledManifest create(ColumnFamilyStore cfs, int maxSSTableSize, int fanoutSize, java.util.List<SSTableReader> sstables)
-
create
public static LeveledManifest create(ColumnFamilyStore cfs, int maxSSTableSize, int fanoutSize, java.lang.Iterable<SSTableReader> sstables, SizeTieredCompactionStrategyOptions options)
-
addSSTables
public void addSSTables(java.lang.Iterable<SSTableReader> readers)
-
replace
public void replace(java.util.Collection<SSTableReader> removed, java.util.Collection<SSTableReader> added)
-
maxBytesForLevel
public long maxBytesForLevel(int level, long maxSSTableSizeInBytes)
-
maxBytesForLevel
public static long maxBytesForLevel(int level, int levelFanoutSize, long maxSSTableSizeInBytes)
-
getCompactionCandidates
public LeveledManifest.CompactionCandidate 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
public int remove(SSTableReader reader)
-
getSSTables
public java.util.Set<SSTableReader> getSSTables()
-
getSStablesPerLevelSnapshot
public java.util.Set<SSTableReader>[] getSStablesPerLevelSnapshot()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getLevelCount
public int getLevelCount()
-
getEstimatedTasks
public int getEstimatedTasks()
-
getNextLevel
public int getNextLevel(java.util.Collection<SSTableReader> sstables)
-
-