Class FileBackedStorageEngine.FileChunk

    • Field Detail

      • filePosition

        private final long filePosition
      • baseAddress

        private final long baseAddress
      • valid

        private boolean valid
    • Constructor Detail

      • FileChunk

        FileChunk​(long size,
                  long baseAddress)
      • FileChunk

        FileChunk​(java.io.ObjectInput input)
           throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • readKeyBuffer

        java.nio.ByteBuffer readKeyBuffer​(long address)
      • readPojoHash

        protected int readPojoHash​(long address)
      • readValueBuffer

        java.nio.ByteBuffer readValueBuffer​(long address)
      • readBuffer

        java.nio.ByteBuffer readBuffer​(long position,
                                       int length)
      • writeMappingBuffers

        java.lang.Long writeMappingBuffers​(java.nio.ByteBuffer keyBuffer,
                                           java.nio.ByteBuffer valueBuffer,
                                           int pojoHash)
      • getKeyWriteContext

        WriteContext getKeyWriteContext​(long address)
      • getValueWriteContext

        WriteContext getValueWriteContext​(long address)
      • getDiskWriteContext

        private WriteContext getDiskWriteContext​(long address,
                                                 int max)
      • free

        void free​(long address)
      • clear

        void clear()
      • capacity

        long capacity()
      • occupied

        long occupied()
      • baseAddress

        long baseAddress()
      • persist

        void persist​(java.io.ObjectOutput output)
              throws java.io.IOException
        Throws:
        java.io.IOException
      • isValid

        boolean isValid()
      • encodings

        java.util.Set<java.lang.Long> encodings()
      • evictAll

        void evictAll()