Package org.iq80.leveldb.impl
Class Version
java.lang.Object
org.iq80.leveldb.impl.Version
- All Implemented Interfaces:
Iterable<Map.Entry<InternalKey,,Slice>> SeekingIterable<InternalKey,Slice>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate doubleprivate FileMetaDataprivate intprivate final Level0private final AtomicIntegerprivate final VersionSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFile(int level, FileMetaData fileMetaData) voidvoidassertNoOverlappingFiles(int level) longintdoublecom.google.common.collect.Multimap<Integer, FileMetaData> getFiles()getFiles(int level) intfinal InternalKeyComparator(package private) List<InternalTableIterator> (package private) List<LevelIterator> private TableCachebooleaniterator()intnumberOfFilesInLevel(int level) intbooleanoverlapInLevel(int level, Slice smallestUserKey, Slice largestUserKey) (package private) intpickLevelForMemTableOutput(Slice smallestUserKey, Slice largestUserKey) voidrelease()voidretain()voidsetCompactionLevel(int compactionLevel) voidsetCompactionScore(double compactionScore) private booleanupdateStats(int seekFileLevel, FileMetaData seekFile) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
retained
-
versionSet
-
level0
-
levels
-
compactionLevel
private int compactionLevel -
compactionScore
private double compactionScore -
fileToCompact
-
fileToCompactLevel
private int fileToCompactLevel
-
-
Constructor Details
-
Version
-
-
Method Details
-
assertNoOverlappingFiles
public void assertNoOverlappingFiles() -
assertNoOverlappingFiles
public void assertNoOverlappingFiles(int level) -
getTableCache
-
getInternalKeyComparator
-
getCompactionLevel
public int getCompactionLevel() -
setCompactionLevel
public void setCompactionLevel(int compactionLevel) -
getCompactionScore
public double getCompactionScore() -
setCompactionScore
public void setCompactionScore(double compactionScore) -
iterator
- Specified by:
iteratorin interfaceIterable<Map.Entry<InternalKey,Slice>> - Specified by:
iteratorin interfaceSeekingIterable<InternalKey,Slice>
-
getLevel0Files
List<InternalTableIterator> getLevel0Files() -
getLevelIterators
List<LevelIterator> getLevelIterators() -
get
-
pickLevelForMemTableOutput
-
overlapInLevel
-
numberOfLevels
public int numberOfLevels() -
numberOfFilesInLevel
public int numberOfFilesInLevel(int level) -
getFiles
-
getFiles
-
addFile
-
updateStats
-
getFileToCompact
-
getFileToCompactLevel
public int getFileToCompactLevel() -
getApproximateOffsetOf
-
retain
public void retain() -
release
public void release() -
isDisposed
public boolean isDisposed()
-