Class FileBackedStorageEngine.FileChunk

java.lang.Object
org.terracotta.offheapstore.disk.storage.FileBackedStorageEngine.FileChunk
Enclosing class:
FileBackedStorageEngine<K,V>

class FileBackedStorageEngine.FileChunk extends Object
  • Field Details

    • allocator

      private final AATreeFileAllocator allocator
    • filePosition

      private final long filePosition
    • baseAddress

      private final long baseAddress
    • valid

      private boolean valid
  • Constructor Details

  • Method Details

    • readKeyBuffer

      ByteBuffer readKeyBuffer(long address)
    • readPojoHash

      protected int readPojoHash(long address)
    • readValueBuffer

      ByteBuffer readValueBuffer(long address)
    • readBuffer

      ByteBuffer readBuffer(long position, int length)
    • writeMappingBuffers

      Long writeMappingBuffers(ByteBuffer keyBuffer, ByteBuffer valueBuffer, int pojoHash)
    • getKeyWriteContext

      WriteContext getKeyWriteContext(long address)
    • getValueWriteContext

      WriteContext getValueWriteContext(long address)
    • getDiskWriteContext

      private WriteContext getDiskWriteContext(long address, int max)
    • getQueuedWriteContext

      private WriteContext getQueuedWriteContext(FileBackedStorageEngine<K,V>.FileWriteTask current, ByteBuffer queuedBuffer)
    • free

      void free(long address)
    • clear

      void clear()
    • capacity

      long capacity()
    • occupied

      long occupied()
    • baseAddress

      long baseAddress()
    • persist

      void persist(ObjectOutput output) throws IOException
      Throws:
      IOException
    • isValid

      boolean isValid()
    • encodings

      Set<Long> encodings()
    • evictAll

      void evictAll()