Class JniDBFactory

java.lang.Object
org.fusesource.leveldbjni.JniDBFactory
All Implemented Interfaces:
org.iq80.leveldb.DBFactory

public class JniDBFactory extends Object implements org.iq80.leveldb.DBFactory
  • Field Details

    • factory

      public static final JniDBFactory factory
    • VERSION

      public static final String VERSION
  • Constructor Details

    • JniDBFactory

      public JniDBFactory()
  • Method Details

    • bytes

      public static byte[] bytes(String value)
    • asString

      public static String asString(byte[] value)
    • open

      public org.iq80.leveldb.DB open(File path, org.iq80.leveldb.Options options) throws IOException
      Specified by:
      open in interface org.iq80.leveldb.DBFactory
      Throws:
      IOException
    • destroy

      public void destroy(File path, org.iq80.leveldb.Options options) throws IOException
      Specified by:
      destroy in interface org.iq80.leveldb.DBFactory
      Throws:
      IOException
    • repair

      public void repair(File path, org.iq80.leveldb.Options options) throws IOException
      Specified by:
      repair in interface org.iq80.leveldb.DBFactory
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • pushMemoryPool

      public static void pushMemoryPool(int size)
    • popMemoryPool

      public static void popMemoryPool()