Package io.datarouter.bytes.kvfile
Class KvFileCompactorFileCache
java.lang.Object
io.datarouter.bytes.kvfile.KvFileCompactorFileCache
Keeps track of files during a compaction.
Can be enhanced with different selection strategies for efficient compaction.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionKvFileCompactorFileCache(int targetNumFiles, boolean prune, ByteLength readBufferSize, int memoryFanIn, int streamingFanIn, List<KvFileNameAndSize> files) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(KvFileNameAndSize file) booleanintnumFiles()voidremove(KvFileNameAndSize file)
-
Constructor Details
-
KvFileCompactorFileCache
public KvFileCompactorFileCache(int targetNumFiles, boolean prune, ByteLength readBufferSize, int memoryFanIn, int streamingFanIn, List<KvFileNameAndSize> files)
-
-
Method Details
-
numFiles
public int numFiles() -
totalSize
-
add
-
remove
-
hasMoreToMerge
public boolean hasMoreToMerge() -
findNextMergePlan
-