Class LeveledManifest


  • public class LeveledManifest
    extends java.lang.Object
    • Method Detail

      • addSSTables

        public void addSSTables​(java.lang.Iterable<SSTableReader> readers)
      • 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()
      • getSSTables

        public java.util.Set<SSTableReader> getSSTables()
      • getSStablesPerLevelSnapshot

        public java.util.Set<SSTableReader>[] getSStablesPerLevelSnapshot()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getLevelCount

        public int getLevelCount()
      • getEstimatedTasks

        public int getEstimatedTasks()
      • getNextLevel

        public int getNextLevel​(java.util.Collection<SSTableReader> sstables)