Class LazyWriteBuffer

java.lang.Object
org.apache.sysds.runtime.controlprogram.caching.LazyWriteBuffer

public class LazyWriteBuffer extends Object
  • Constructor Details

    • LazyWriteBuffer

      public LazyWriteBuffer()
  • Method Details

    • writeBlock

      public static int writeBlock(String fname, CacheBlock<?> cb) throws IOException
      Throws:
      IOException
    • deleteBlock

      public static void deleteBlock(String fname)
    • readBlock

      public static CacheBlock<?> readBlock(String fname, boolean matrix) throws IOException
      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

      public static long getCacheBlockSize(CacheBlock<?> cb)
    • printStatus

      public static void printStatus(String position)
      Print current status of buffer pool, including all entries. NOTE: use only for debugging or testing.
      Parameters:
      position - the position
    • forceEviction

      public static void forceEviction() throws IOException
      Evicts all buffer pool entries. NOTE: use only for debugging or testing.
      Throws:
      IOException - if IOException occurs
    • getUtilThreadPool

      public static ExecutorService getUtilThreadPool()