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) |
static LeveledManifest |
create(ColumnFamilyStore cfs,
int maxSSTableSize,
java.lang.Iterable<SSTableReader> sstables,
SizeTieredCompactionStrategyOptions options) |
static LeveledManifest |
create(ColumnFamilyStore cfs,
int maxSSTableSize,
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) |
static 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, java.util.List<SSTableReader> sstables)
public static LeveledManifest create(ColumnFamilyStore cfs, int maxSSTableSize, java.lang.Iterable<SSTableReader> sstables, SizeTieredCompactionStrategyOptions options)
public void add(SSTableReader reader)
public void replace(java.util.Collection<SSTableReader> removed, java.util.Collection<SSTableReader> added)
public void repairOverlappingSSTables(int level)
public static long maxBytesForLevel(int level, long maxSSTableSizeInBytes)
public LeveledManifest.CompactionCandidate getCompactionCandidates()
public int getLevelSize(int i)
public int[] getAllLevelSize()
public int remove(SSTableReader reader)
public java.lang.String toString()
toString
in class java.lang.Object
public 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 © 2016 The Apache Software Foundation