Class ByteArrayIndex

java.lang.Object
org.teamapps.universaldb.index.binary.ByteArrayIndex

public class ByteArrayIndex
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    ByteArrayIndex​(java.io.File path, java.lang.String name, boolean compressContent)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    static byte[] compress​(byte[] data)  
    static byte[] decompress​(byte[] data)  
    void drop()  
    byte[] getByteArray​(long index)  
    int getByteArrayLength​(long index)  
    void removeByteArray​(long index)  
    long setByteArray​(byte[] bytes)  

    Methods inherited from class java.lang.Object

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

    • ByteArrayIndex

      public ByteArrayIndex​(java.io.File path, java.lang.String name, boolean compressContent)
  • Method Details

    • getByteArrayLength

      public int getByteArrayLength​(long index)
    • getByteArray

      public byte[] getByteArray​(long index)
    • setByteArray

      public long setByteArray​(byte[] bytes)
    • removeByteArray

      public void removeByteArray​(long index)
    • compress

      public static byte[] compress​(byte[] data)
    • decompress

      public static byte[] decompress​(byte[] data)
    • close

      public void close()
    • drop

      public void drop()