Class NativeDB.DBJNI

java.lang.Object
org.fusesource.leveldbjni.internal.NativeDB.DBJNI
Enclosing class:
NativeDB

@JniClass(name="leveldb::DB", flags=CPP) static class NativeDB.DBJNI extends Object
  • Constructor Details

    • DBJNI

      DBJNI()
  • Method Details

    • NewGlobalRef

      @JniMethod(flags={JNI,POINTER_RETURN}, cast="jobject") public static final long NewGlobalRef(Object target)
    • DeleteGlobalRef

      @JniMethod(flags=JNI, cast="jobject") public static final void DeleteGlobalRef(@JniArg(cast="jobject",flags=POINTER_ARG) long target)
    • GetMethodID

      @JniMethod(flags={JNI,POINTER_RETURN}, cast="jmethodID") public static final long GetMethodID(@JniArg(cast="jclass",flags=POINTER_ARG) Class clazz, String name, String signature)
    • delete

      @JniMethod(flags=CPP_DELETE) static final void delete(long self)
    • Open

      @JniMethod(copy="leveldb::Status", accessor="leveldb::DB::Open") static final long Open(@JniArg(flags={BY_VALUE,NO_OUT}) NativeOptions options, @JniArg(cast="const char*") String path, @JniArg(cast="leveldb::DB**") long[] self)
    • Put

      @JniMethod(copy="leveldb::Status", flags=CPP_METHOD) static final long Put(long self, @JniArg(flags={BY_VALUE,NO_OUT}) NativeWriteOptions options, @JniArg(flags={BY_VALUE,NO_OUT}) NativeSlice key, @JniArg(flags={BY_VALUE,NO_OUT}) NativeSlice value)
    • Delete

      @JniMethod(copy="leveldb::Status", flags=CPP_METHOD) static final long Delete(long self, @JniArg(flags={BY_VALUE,NO_OUT}) NativeWriteOptions options, @JniArg(flags={BY_VALUE,NO_OUT}) NativeSlice key)
    • Write

      @JniMethod(copy="leveldb::Status", flags=CPP_METHOD) static final long Write(long self, @JniArg(flags=BY_VALUE) NativeWriteOptions options, @JniArg(cast="leveldb::WriteBatch *") long updates)
    • Get

      @JniMethod(copy="leveldb::Status", flags=CPP_METHOD) static final long Get(long self, @JniArg(flags={NO_OUT,BY_VALUE}) NativeReadOptions options, @JniArg(flags={BY_VALUE,NO_OUT}) NativeSlice key, @JniArg(cast="std::string *") long value)
    • NewIterator

      @JniMethod(cast="leveldb::Iterator *", flags=CPP_METHOD) static final long NewIterator(long self, @JniArg(flags={NO_OUT,BY_VALUE}) NativeReadOptions options)
    • GetSnapshot

      @JniMethod(cast="leveldb::Snapshot *", flags=CPP_METHOD) static final long GetSnapshot(long self)
    • ReleaseSnapshot

      @JniMethod(flags=CPP_METHOD) static final void ReleaseSnapshot(long self, @JniArg(cast="const leveldb::Snapshot *") long snapshot)
    • GetApproximateSizes

      @JniMethod(flags=CPP_METHOD) static final void GetApproximateSizes(long self, @JniArg(cast="const leveldb::Range *") long range, int n, @JniArg(cast="uint64_t*") long[] sizes)
    • GetProperty

      @JniMethod(flags=CPP_METHOD) static final boolean GetProperty(long self, @JniArg(flags={BY_VALUE,NO_OUT}) NativeSlice property, @JniArg(cast="std::string *") long value)
    • DestroyDB

      @JniMethod(copy="leveldb::Status", accessor="leveldb::DestroyDB") static final long DestroyDB(@JniArg(cast="const char*") String path, @JniArg(flags={BY_VALUE,NO_OUT}) NativeOptions options)
    • RepairDB

      @JniMethod(copy="leveldb::Status", accessor="leveldb::RepairDB") static final long RepairDB(@JniArg(cast="const char*") String path, @JniArg(flags={BY_VALUE,NO_OUT}) NativeOptions options)
    • CompactRange

      @JniMethod(flags=CPP_METHOD) static final void CompactRange(long self, @JniArg(flags=NO_OUT) NativeSlice begin, @JniArg(flags=NO_OUT) NativeSlice end)
    • SuspendCompactions

      @JniMethod(flags=CPP_METHOD) static final void SuspendCompactions(long self)
    • ResumeCompactions

      @JniMethod(flags=CPP_METHOD) static final void ResumeCompactions(long self)