rocksdb/java
Ben Clay 382277d0fe JNI support for ReadOptions::iterate_upper_bound
Summary:
Plumbed ReadOptions::iterate_upper_bound through JNI.

Made the following design choices:
* Used Slice instead of AbstractSlice due to the anticipated usecase (key / key prefix). Can change this if anyone disagrees.
* Used Slice instead of raw byte[] which seemed cleaner but necessitated the package-private handle-based Slice constructor. Followed WriteBatch as an example.
* We need a copy constructor for ReadOptions, as we create one base ReadOptions for a particular usecase and clone -> change the iterate_upper_bound on each slice operation. Shallow copy seemed cleanest.
* Hold a reference to the upper bound slice on ReadOptions, in contrast to Snapshot.

Signed a Facebook CLA this morning.
Closes https://github.com/facebook/rocksdb/pull/2872

Differential Revision: D5824446

Pulled By: sagar0

fbshipit-source-id: 74fc51313a10a81ecd348625e2a50ca5b7766888
2017-09-14 18:28:20 -07:00
..
benchmark/src/main/java/org/rocksdb/benchmark Change RocksDB License 2017-07-15 16:11:23 -07:00
crossbuild Switch from CentOS 5 to CentOS 6 for crossbuilding RocksJava 2017-06-05 12:27:24 -07:00
rocksjni JNI support for ReadOptions::iterate_upper_bound 2017-09-14 18:28:20 -07:00
samples/src/main/java Fix statistics in RocksJava sample 2017-08-01 16:58:26 -07:00
src JNI support for ReadOptions::iterate_upper_bound 2017-09-14 18:28:20 -07:00
CMakeLists.txt garbage collect tombstones in merge operator 2017-08-31 10:11:54 -07:00
HISTORY-JAVA.md Update JAVA-HISTORY.md for v3.13 2015-08-04 18:12:58 -07:00
Makefile Cassandra compaction filter for purge expired columns and rows 2017-07-21 14:57:44 -07:00
RELEASE.md Fixed packaging of java crossbuild jar by forcing all compiled binaries to be output to the java/target directory. The uber crossbuild jar is then assembled within the java/target directory. 2015-10-12 20:29:58 -04:00
jdb_bench.sh Moved Java Benchmark main classes into benchmark/src/main/java 2015-02-01 20:05:10 +00:00
rocksjni.pom Update java/rocksjni.pom 2017-07-18 13:12:23 -07:00