Class MMFBytez

java.lang.Object
org.nustaq.offheap.bytez.malloc.MemoryBytez
org.nustaq.offheap.bytez.malloc.MMFBytez
All Implemented Interfaces:
BasicBytez, ByteSink, ByteSource, Bytez

public class MMFBytez
extends MemoryBytez
Bytez allocated inside a memory mapped file. Some Mmap file stuff handling is copied from OpenHFT library (too big to depend on for fst), a great tool for all kind of binary/low level java stuff. Check it out at github.
  • Constructor Details

    • MMFBytez

      public MMFBytez​(java.lang.String filePath, long length, boolean clearFile) throws java.lang.Exception
      Throws:
      java.lang.Exception
  • Method Details

    • init

      protected void init​(java.lang.String file, long length, boolean clearFile) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • freeAndClose

      public void freeAndClose()
    • getFile

      public java.io.File getFile()