#include "include/org_rocksdb_HashSkipListMemTableConfig.h"
#include "include/org_rocksdb_HashLinkedListMemTableConfig.h"
#include "include/org_rocksdb_VectorMemTableConfig.h"
#include "include/org_rocksdb_SkipListMemTableConfig.h"
#include "rocksdb/memtablerep.h"
jlong Java_org_rocksdb_HashSkipListMemTableConfig_newMemTableFactoryHandle(
JNIEnv* env, jobject jobj, jlong jbucket_count,
jint jheight, jint jbranching_factor) {
return
reinterpret_cast
<jlong>(rocksdb::NewHashSkipListRepFactory(
static_cast
<
size_t
>(jbucket_count),
static_cast
<int32_t>(jheight),
static_cast
<int32_t>(jbranching_factor)));
}
jlong Java_org_rocksdb_HashLinkedListMemTableConfig_newMemTableFactoryHandle(
JNIEnv* env, jobject jobj, jlong jbucket_count) {
return
reinterpret_cast
<jlong>(rocksdb::NewHashLinkListRepFactory(
static_cast
<
size_t
>(jbucket_count)));
}
jlong Java_org_rocksdb_VectorMemTableConfig_newMemTableFactoryHandle(
JNIEnv* env, jobject jobj, jlong jreserved_size) {
return
reinterpret_cast
<jlong>(
new
rocksdb::VectorRepFactory(
static_cast
<
size_t
>(jreserved_size)));
}
jlong Java_org_rocksdb_SkipListMemTableConfig_newMemTableFactoryHandle0(
JNIEnv* env, jobject jobj) {
return
reinterpret_cast
<jlong>(
new
rocksdb::SkipListFactory());
}