diff options
author | Adam Retter <adam.retter@googlemail.com> | 2018-03-08 11:16:46 -0800 |
---|---|---|
committer | Zhongyi Xie <xiez@fb.com> | 2018-03-08 14:53:40 -0800 |
commit | cda424239691e7501125096920a21cc041c16224 (patch) | |
tree | 611d79e30a145d4eb0d2f14a68c75d2c18f14e0c /util | |
parent | cfbba44c50af5461d29db5979ee9bf1b6f1eae6f (diff) |
Java wrapper for Native Comparatorsv5.11.2rocksdb-5.11.2
Summary:
This is an abstraction for working with custom Comparators implemented in native C++ code from Java. Native code must directly extend `rocksdb::Comparator`. When the native code comparator is compiled into the RocksDB codebase, you can then create a Java Class, and JNI stub to wrap it.
Useful if the C++/JNI barrier overhead is too much for your applications comparator performance.
An example is provided in `java/rocksjni/native_comparator_wrapper_test.cc` and `java/src/main/java/org/rocksdb/NativeComparatorWrapperTest.java`.
Closes https://github.com/facebook/rocksdb/pull/3334
Differential Revision: D7172605
Pulled By: miasantreble
fbshipit-source-id: e24b7eb267a3bcb6afa214e0379a1d5e8a2ceabe
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions