Class MappedStoreUtil

java.lang.Object
org.teamapps.universaldb.util.MappedStoreUtil

public class MappedStoreUtil
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.nio.ByteOrder BYTE_ORDER  
  • Constructor Summary

    Constructors 
    Constructor Description
    MappedStoreUtil()  
  • Method Summary

    Modifier and Type Method Description
    static org.agrona.concurrent.AtomicBuffer createAtomicBuffer​(java.io.File file, int bufferSize)  
    static java.nio.MappedByteBuffer createBuffer​(java.io.File file, int bufferSize)  
    static void deleteBufferAndData​(java.io.File file, java.nio.MappedByteBuffer buffer)  
    static void deleteBufferAndData​(java.io.File file, org.agrona.concurrent.AtomicBuffer atomicBuffer)  
    static void releaseBufferUnsafe​(java.nio.MappedByteBuffer buffer)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BYTE_ORDER

      public static java.nio.ByteOrder BYTE_ORDER
  • Constructor Details

  • Method Details

    • createAtomicBuffer

      public static org.agrona.concurrent.AtomicBuffer createAtomicBuffer​(java.io.File file, int bufferSize)
    • createBuffer

      public static java.nio.MappedByteBuffer createBuffer​(java.io.File file, int bufferSize)
    • deleteBufferAndData

      public static void deleteBufferAndData​(java.io.File file, java.nio.MappedByteBuffer buffer)
    • deleteBufferAndData

      public static void deleteBufferAndData​(java.io.File file, org.agrona.concurrent.AtomicBuffer atomicBuffer)
    • releaseBufferUnsafe

      public static void releaseBufferUnsafe​(java.nio.MappedByteBuffer buffer)