Package org.apache.iotdb.db.rescon
Class TsFileResourceManager
- java.lang.Object
-
- org.apache.iotdb.db.rescon.TsFileResourceManager
-
public class TsFileResourceManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TsFileResourceManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()function for clearing TsFileManagerstatic TsFileResourceManagergetInstance()longgetPriorityQueueSize()voidregisterSealedTsFileResource(TsFileResource tsFileResource)add the closed TsFileResource into priorityQueue and increase memory cost of timeIndex, once memory cost is larger than threshold, degradation is triggered.voidremoveTsFileResource(TsFileResource tsFileResource)delete the TsFileResource in PriorityQueue when the source file is deletedvoidsetTimeIndexMemoryThreshold(double timeIndexMemoryThreshold)
-
-
-
Method Detail
-
setTimeIndexMemoryThreshold
public void setTimeIndexMemoryThreshold(double timeIndexMemoryThreshold)
-
getPriorityQueueSize
public long getPriorityQueueSize()
-
registerSealedTsFileResource
public void registerSealedTsFileResource(TsFileResource tsFileResource)
add the closed TsFileResource into priorityQueue and increase memory cost of timeIndex, once memory cost is larger than threshold, degradation is triggered.
-
removeTsFileResource
public void removeTsFileResource(TsFileResource tsFileResource)
delete the TsFileResource in PriorityQueue when the source file is deleted
-
clear
public void clear()
function for clearing TsFileManager
-
getInstance
public static TsFileResourceManager getInstance()
-
-