Class LazyWriteBuffer
java.lang.Object
org.apache.sysds.runtime.controlprogram.caching.LazyWriteBuffer
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcleanup()static voiddeleteBlock(String fname) static voidEvicts all buffer pool entries.static longgetCacheBlockSize(CacheBlock<?> cb) static intstatic ExecutorServicestatic longstatic longstatic longstatic voidinit()static voidprintStatus(String position) Print current status of buffer pool, including all entries.static CacheBlock<?>static voidsetWriteBufferLimit(long limit) static intwriteBlock(String fname, CacheBlock<?> cb)
-
Constructor Details
-
LazyWriteBuffer
public LazyWriteBuffer()
-
-
Method Details
-
writeBlock
- Throws:
IOException
-
deleteBlock
-
readBlock
- Throws:
IOException
-
init
public static void init() -
cleanup
public static void cleanup() -
getWriteBufferLimit
public static long getWriteBufferLimit() -
setWriteBufferLimit
public static void setWriteBufferLimit(long limit) -
getWriteBufferSize
public static long getWriteBufferSize() -
getWriteBufferFree
public static long getWriteBufferFree() -
getQueueSize
public static int getQueueSize() -
getCacheBlockSize
-
printStatus
Print current status of buffer pool, including all entries. NOTE: use only for debugging or testing.- Parameters:
position- the position
-
forceEviction
Evicts all buffer pool entries. NOTE: use only for debugging or testing.- Throws:
IOException- if IOException occurs
-
getUtilThreadPool
-