public class Level extends Object
| Modifier and Type | Field and Description |
|---|---|
static Comparator<FileMetaData> |
NEWEST_FIRST |
| Constructor and Description |
|---|
Level(int levelNumber,
Collection<FileMetaData> files,
TableCache tableCache,
InternalKeyComparator internalKeyComparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(FileMetaData fileMetaData) |
static InternalIterator |
createLevelConcatIterator(TableCache tableCache,
List<FileMetaData> files,
InternalKeyComparator internalKeyComparator,
ReadOptions options) |
LookupResult |
get(ReadOptions options,
LookupKey key,
ReadStats readStats,
ReadStats lasReadFile) |
List<FileMetaData> |
getFiles() |
List<FileMetaData> |
getFilesForKey(Slice userKey,
InternalKey internalKey) |
int |
getLevelNumber() |
InternalIterator |
iterator(ReadOptions options) |
boolean |
someFileOverlapsRange(boolean disjointSortedFiles,
Slice smallestUserKey,
Slice largestUserKey) |
String |
toString() |
public static final Comparator<FileMetaData> NEWEST_FIRST
public Level(int levelNumber,
Collection<FileMetaData> files,
TableCache tableCache,
InternalKeyComparator internalKeyComparator)
public int getLevelNumber()
public List<FileMetaData> getFiles()
public InternalIterator iterator(ReadOptions options) throws IOException
IOExceptionpublic static InternalIterator createLevelConcatIterator(TableCache tableCache, List<FileMetaData> files, InternalKeyComparator internalKeyComparator, ReadOptions options)
public LookupResult get(ReadOptions options, LookupKey key, ReadStats readStats, ReadStats lasReadFile)
public List<FileMetaData> getFilesForKey(Slice userKey, InternalKey internalKey)
public boolean someFileOverlapsRange(boolean disjointSortedFiles,
Slice smallestUserKey,
Slice largestUserKey)
public void addFile(FileMetaData fileMetaData)
Copyright © 2011–2020. All rights reserved.