JNI for rocksdb