|
|
|
@ -935,6 +935,27 @@ void Java_org_rocksdb_Options_setBlockRestartInterval( |
|
|
|
|
static_cast<int>(jblock_restart_interval); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Class: org_rocksdb_Options |
|
|
|
|
* Method: setCompressionType |
|
|
|
|
* Signature: (JI)V |
|
|
|
|
*/ |
|
|
|
|
void Java_org_rocksdb_Options_setCompressionType( |
|
|
|
|
JNIEnv* env, jobject jobj, jlong jhandle, jint compression) { |
|
|
|
|
reinterpret_cast<rocksdb::Options*>(jhandle)->compression = |
|
|
|
|
static_cast<rocksdb::CompressionType>(compression); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Class: org_rocksdb_Options |
|
|
|
|
* Method: compressionType |
|
|
|
|
* Signature: (J)I |
|
|
|
|
*/ |
|
|
|
|
jint Java_org_rocksdb_Options_compressionType( |
|
|
|
|
JNIEnv* env, jobject jobj, jlong jhandle) { |
|
|
|
|
return reinterpret_cast<rocksdb::Options*>(jhandle)->compression; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Class: org_rocksdb_Options |
|
|
|
|
* Method: wholeKeyFiltering |
|
|
|
|