public class LeveledManifest
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | LeveledManifest.CompactionCandidate | 
| Modifier and Type | Field and Description | 
|---|---|
| protected java.util.List<SSTableReader>[] | generations | 
| static int | MAX_LEVEL_COUNT | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(SSTableReader reader) | 
| void | calculateLastCompactedKeys()If we want to start compaction in level n, find the newest (by modification time) file in level n+1
 and use its last token for last compacted key in level n; | 
| static LeveledManifest | create(ColumnFamilyStore cfs,
      int maxSSTableSize,
      int fanoutSize,
      java.lang.Iterable<SSTableReader> sstables,
      SizeTieredCompactionStrategyOptions options) | 
| static LeveledManifest | create(ColumnFamilyStore cfs,
      int maxSSTableSize,
      int fanoutSize,
      java.util.List<SSTableReader> sstables) | 
| int[] | getAllLevelSize() | 
| java.lang.Iterable<SSTableReader> | getAllSSTables() | 
| LeveledManifest.CompactionCandidate | getCompactionCandidates() | 
| int | getEstimatedTasks() | 
| java.util.List<SSTableReader> | getLevel(int i) | 
| int | getLevelCount() | 
| int | getLevelSize(int i) | 
| java.util.SortedSet<SSTableReader> | getLevelSorted(int level,
              java.util.Comparator<SSTableReader> comparator) | 
| int | getNextLevel(java.util.Collection<SSTableReader> sstables) | 
| java.util.Set<SSTableReader>[] | getSStablesPerLevelSnapshot() | 
| static long | maxBytesForLevel(int level,
                int levelFanoutSize,
                long maxSSTableSizeInBytes) | 
| long | maxBytesForLevel(int level,
                long maxSSTableSizeInBytes) | 
| int | remove(SSTableReader reader) | 
| void | repairOverlappingSSTables(int level) | 
| void | replace(java.util.Collection<SSTableReader> removed,
       java.util.Collection<SSTableReader> added) | 
| java.lang.String | toString() | 
public static final int MAX_LEVEL_COUNT
protected final java.util.List<SSTableReader>[] generations
public static LeveledManifest create(ColumnFamilyStore cfs, int maxSSTableSize, int fanoutSize, java.util.List<SSTableReader> sstables)
public static LeveledManifest create(ColumnFamilyStore cfs, int maxSSTableSize, int fanoutSize, java.lang.Iterable<SSTableReader> sstables, SizeTieredCompactionStrategyOptions options)
public void calculateLastCompactedKeys()
public void add(SSTableReader reader)
public void replace(java.util.Collection<SSTableReader> removed, java.util.Collection<SSTableReader> added)
public void repairOverlappingSSTables(int level)
public long maxBytesForLevel(int level,
                             long maxSSTableSizeInBytes)
public static long maxBytesForLevel(int level,
                                    int levelFanoutSize,
                                    long maxSSTableSizeInBytes)
public LeveledManifest.CompactionCandidate getCompactionCandidates()
public int getLevelSize(int i)
public int[] getAllLevelSize()
public int remove(SSTableReader reader)
public java.util.Set<SSTableReader>[] getSStablesPerLevelSnapshot()
public java.lang.String toString()
toString in class java.lang.Objectpublic int getLevelCount()
public java.util.SortedSet<SSTableReader> getLevelSorted(int level, java.util.Comparator<SSTableReader> comparator)
public java.util.List<SSTableReader> getLevel(int i)
public int getEstimatedTasks()
public int getNextLevel(java.util.Collection<SSTableReader> sstables)
public java.lang.Iterable<SSTableReader> getAllSSTables()
Copyright © 2018 The Apache Software Foundation