public class Levels extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Levels.DropFileCallback
A callback to notify dropping file.
|
Constructor and Description |
---|
Levels(Comparator<InternalRow> keyComparator,
List<DataFileMeta> inputFiles,
int numLevels) |
Modifier and Type | Method and Description |
---|---|
void |
addDropFileCallback(Levels.DropFileCallback callback) |
void |
addLevel0File(DataFileMeta file) |
List<DataFileMeta> |
allFiles() |
TreeSet<DataFileMeta> |
level0() |
List<LevelSortedRun> |
levelSortedRuns() |
int |
maxLevel() |
int |
nonEmptyHighestLevel() |
int |
numberOfLevels() |
int |
numberOfSortedRuns() |
SortedRun |
runOfLevel(int level) |
void |
update(List<DataFileMeta> before,
List<DataFileMeta> after) |
public Levels(Comparator<InternalRow> keyComparator, List<DataFileMeta> inputFiles, int numLevels)
public TreeSet<DataFileMeta> level0()
public void addDropFileCallback(Levels.DropFileCallback callback)
public void addLevel0File(DataFileMeta file)
public SortedRun runOfLevel(int level)
public int numberOfLevels()
public int maxLevel()
public int numberOfSortedRuns()
public int nonEmptyHighestLevel()
public List<DataFileMeta> allFiles()
public List<LevelSortedRun> levelSortedRuns()
public void update(List<DataFileMeta> before, List<DataFileMeta> after)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.