public class Level0 extends Object implements SeekingIterable<InternalKey,Slice>
Modifier and Type | Field and Description |
---|---|
static Comparator<FileMetaData> |
NEWEST_FIRST |
Constructor and Description |
---|
Level0(List<FileMetaData> files,
TableCache tableCache,
InternalKeyComparator internalKeyComparator) |
Modifier and Type | Method and Description |
---|---|
void |
addFile(FileMetaData fileMetaData) |
LookupResult |
get(LookupKey key,
ReadStats readStats) |
List<FileMetaData> |
getFiles() |
int |
getLevelNumber() |
Level0Iterator |
iterator() |
boolean |
someFileOverlapsRange(Slice smallestUserKey,
Slice largestUserKey) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final Comparator<FileMetaData> NEWEST_FIRST
public Level0(List<FileMetaData> files, TableCache tableCache, InternalKeyComparator internalKeyComparator)
public int getLevelNumber()
public List<FileMetaData> getFiles()
public Level0Iterator iterator()
iterator
in interface Iterable<Map.Entry<InternalKey,Slice>>
iterator
in interface SeekingIterable<InternalKey,Slice>
public LookupResult get(LookupKey key, ReadStats readStats)
public boolean someFileOverlapsRange(Slice smallestUserKey, Slice largestUserKey)
public void addFile(FileMetaData fileMetaData)
Copyright © 2011–2019. All rights reserved.