|
|
|
@ -73,10 +73,12 @@ void Java_org_rocksdb_Options_setBuiltinComparator( |
|
|
|
|
JNIEnv* env, jobject jobj, jlong jhandle, jint builtinComparator) { |
|
|
|
|
switch (builtinComparator){ |
|
|
|
|
case 1: |
|
|
|
|
reinterpret_cast<rocksdb::Options*>(jhandle)->comparator = rocksdb::ReverseBytewiseComparator(); |
|
|
|
|
reinterpret_cast<rocksdb::Options*>(jhandle)->comparator = |
|
|
|
|
rocksdb::ReverseBytewiseComparator(); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
reinterpret_cast<rocksdb::Options*>(jhandle)->comparator = rocksdb::BytewiseComparator(); |
|
|
|
|
reinterpret_cast<rocksdb::Options*>(jhandle)->comparator = |
|
|
|
|
rocksdb::BytewiseComparator(); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|