[Java] Fixed a bug in Java DB Benchmark where random reads does not consider full key range.
[Java] Fixed a bug in Java DB Benchmark where random reads does not consider full key range.

Summary: Fixed a bug in Java DB Benchmark where random reads does not consider full key range.

Test Plan:
make rocksdbjava
make jdb_bench
cd java
jdb_bench.sh --db=/tmp/rocksdb-test --benchmarks=fillseq --use_existing_db=false --num=100000
jdb_bench.sh --db=/tmp/rocksdb-test --benchmarks=readrandom --use_existing_db=true --num=100000 --reads=1000000

Reviewers: haobo, sdong

Reviewed By: haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D18693

NickCis/rocksdb,biddyweb/rocksdb,kaschaeffer/rocksdb,jalexanderqed/rocksdb,ylong/rocksdb,wenduo/rocksdb,facebook/rocksdb,rDSN-Projects/rocksdb.replicated,bbiao/rocksdb,skunkwerks/rocksdb,caijieming-baidu/rocksdb,jalexanderqed/rocksdb,biddyweb/rocksdb,NickCis/rocksdb,bbiao/rocksdb,JohnPJenkins/rocksdb,OverlordQ/rocksdb,NickCis/rocksdb,vashstorm/rocksdb,JoeWoo/rocksdb,Andymic/rocksdb,lgscofield/rocksdb,flabby/rocksdb,norton/rocksdb,hobinyoon/rocksdb,alihalabyah/rocksdb,JohnPJenkins/rocksdb,makelivedotnet/rocksdb,JoeWoo/rocksdb,SunguckLee/RocksDB,vmx/rocksdb,lgscofield/rocksdb,tsheasha/rocksdb,wenduo/rocksdb,tsheasha/rocksdb,flabby/rocksdb,OverlordQ/rocksdb,caijieming-baidu/rocksdb,anagav/rocksdb,wat-ze-hex/rocksdb,wlqGit/rocksdb,amyvmiwei/rocksdb,JackLian/rocksdb,NickCis/rocksdb,amyvmiwei/rocksdb,alihalabyah/rocksdb,geraldoandradee/rocksdb,Applied-Duality/rocksdb,biddyweb/rocksdb,sorphi/rocksdb,JackLian/rocksdb,bbiao/rocksdb,Vaisman/rocksdb,anagav/rocksdb,sorphi/rocksdb,hobinyoon/rocksdb,NickCis/rocksdb,hobinyoon/rocksdb,OverlordQ/rocksdb,RyanTech/rocksdb,OverlordQ/rocksdb,ylong/rocksdb,alihalabyah/rocksdb,vmx/rocksdb,wenduo/rocksdb,anagav/rocksdb,virtdb/rocksdb,geraldoandradee/rocksdb,Andymic/rocksdb,Andymic/rocksdb,fengshao0907/rocksdb,makelivedotnet/rocksdb,vashstorm/rocksdb,wat-ze-hex/rocksdb,IMCG/RcoksDB,caijieming-baidu/rocksdb,temicai/rocksdb,tizzybec/rocksdb,anagav/rocksdb,lgscofield/rocksdb,tizzybec/rocksdb,dkorolev/rocksdb,SunguckLee/RocksDB,Vaisman/rocksdb,SunguckLee/RocksDB,msb-at-yahoo/rocksdb,JoeWoo/rocksdb,amyvmiwei/rocksdb,Vaisman/rocksdb,biddyweb/rocksdb,luckywhu/rocksdb,biddyweb/rocksdb,SunguckLee/RocksDB,amyvmiwei/rocksdb,flabby/rocksdb,skunkwerks/rocksdb,alihalabyah/rocksdb,zhangpng/rocksdb,alihalabyah/rocksdb,caijieming-baidu/rocksdb,rDSN-Projects/rocksdb.replicated,norton/rocksdb,facebook/rocksdb,IMCG/RcoksDB,tizzybec/rocksdb,ryneli/rocksdb,alihalabyah/rocksdb,vashstorm/rocksdb,wskplho/rocksdb,tsheasha/rocksdb,mbarbon/rocksdb,kaschaeffer/rocksdb,zhangpng/rocksdb,caijieming-baidu/rocksdb,luckywhu/rocksdb,sorphi/rocksdb,skunkwerks/rocksdb,wskplho/rocksdb,jalexanderqed/rocksdb,jalexanderqed/rocksdb,Applied-Duality/rocksdb,facebook/rocksdb,SunguckLee/RocksDB,tsheasha/rocksdb,anagav/rocksdb,IMCG/RcoksDB,dkorolev/rocksdb,vmx/rocksdb,tizzybec/rocksdb,tschottdorf/rocksdb,luckywhu/rocksdb,Applied-Duality/rocksdb,tizzybec/rocksdb,hobinyoon/rocksdb,wskplho/rocksdb,makelivedotnet/rocksdb,fengshao0907/rocksdb,norton/rocksdb,wenduo/rocksdb,tschottdorf/rocksdb,luckywhu/rocksdb,luckywhu/rocksdb,Andymic/rocksdb,tsheasha/rocksdb,makelivedotnet/rocksdb,wlqGit/rocksdb,zhangpng/rocksdb,lgscofield/rocksdb,virtdb/rocksdb,geraldoandradee/rocksdb,ryneli/rocksdb,Vaisman/rocksdb,temicai/rocksdb,temicai/rocksdb,msb-at-yahoo/rocksdb,bbiao/rocksdb,tschottdorf/rocksdb,wat-ze-hex/rocksdb,caijieming-baidu/rocksdb,vmx/rocksdb,tizzybec/rocksdb,ryneli/rocksdb,tschottdorf/rocksdb,siddhartharay007/rocksdb,kaschaeffer/rocksdb,dkorolev/rocksdb,rDSN-Projects/rocksdb.replicated,makelivedotnet/rocksdb,ylong/rocksdb,wat-ze-hex/rocksdb,dkorolev/rocksdb,vmx/rocksdb,JackLian/rocksdb,wlqGit/rocksdb,norton/rocksdb,makelivedotnet/rocksdb,hobinyoon/rocksdb,virtdb/rocksdb,JackLian/rocksdb,geraldoandradee/rocksdb,tschottdorf/rocksdb,skunkwerks/rocksdb,makelivedotnet/rocksdb,mbarbon/rocksdb,rDSN-Projects/rocksdb.replicated,RyanTech/rocksdb,RyanTech/rocksdb,skunkwerks/rocksdb,JoeWoo/rocksdb,Andymic/rocksdb,wskplho/rocksdb,amyvmiwei/rocksdb,rDSN-Projects/rocksdb.replicated,msb-at-yahoo/rocksdb,ryneli/rocksdb,lgscofield/rocksdb,OverlordQ/rocksdb,Andymic/rocksdb,geraldoandradee/rocksdb,jalexanderqed/rocksdb,vashstorm/rocksdb,norton/rocksdb,vmx/rocksdb,jalexanderqed/rocksdb,wat-ze-hex/rocksdb,siddhartharay007/rocksdb,vmx/rocksdb,zhangpng/rocksdb,ryneli/rocksdb,facebook/rocksdb,ylong/rocksdb,mbarbon/rocksdb,mbarbon/rocksdb,rDSN-Projects/rocksdb.replicated,wenduo/rocksdb,temicai/rocksdb,facebook/rocksdb,luckywhu/rocksdb,wat-ze-hex/rocksdb,fengshao0907/rocksdb,anagav/rocksdb,RyanTech/rocksdb,lgscofield/rocksdb,facebook/rocksdb,SunguckLee/RocksDB,Vaisman/rocksdb,vashstorm/rocksdb,kaschaeffer/rocksdb,hobinyoon/rocksdb,NickCis/rocksdb,alihalabyah/rocksdb,wat-ze-hex/rocksdb,Vaisman/rocksdb,sorphi/rocksdb,wskplho/rocksdb,siddhartharay007/rocksdb,JohnPJenkins/rocksdb,biddyweb/rocksdb,facebook/rocksdb,Vaisman/rocksdb,IMCG/RcoksDB,wat-ze-hex/rocksdb,luckywhu/rocksdb,vmx/rocksdb,fengshao0907/rocksdb,temicai/rocksdb,amyvmiwei/rocksdb,Andymic/rocksdb,NickCis/rocksdb,virtdb/rocksdb,fengshao0907/rocksdb,wenduo/rocksdb,virtdb/rocksdb,dkorolev/rocksdb,wskplho/rocksdb,RyanTech/rocksdb,tsheasha/rocksdb,ryneli/rocksdb,anagav/rocksdb,geraldoandradee/rocksdb,fengshao0907/rocksdb,zhangpng/rocksdb,JohnPJenkins/rocksdb,wlqGit/rocksdb,skunkwerks/rocksdb,amyvmiwei/rocksdb,JoeWoo/rocksdb,ylong/rocksdb,wenduo/rocksdb,SunguckLee/RocksDB,lgscofield/rocksdb,flabby/rocksdb,JoeWoo/rocksdb,JackLian/rocksdb,bbiao/rocksdb,virtdb/rocksdb,tschottdorf/rocksdb,JohnPJenkins/rocksdb,skunkwerks/rocksdb,hobinyoon/rocksdb,kaschaeffer/rocksdb,Andymic/rocksdb,zhangpng/rocksdb,wskplho/rocksdb,temicai/rocksdb,fengshao0907/rocksdb,temicai/rocksdb,dkorolev/rocksdb,vashstorm/rocksdb,kaschaeffer/rocksdb,msb-at-yahoo/rocksdb,ryneli/rocksdb,wenduo/rocksdb,geraldoandradee/rocksdb,siddhartharay007/rocksdb,mbarbon/rocksdb,zhangpng/rocksdb,vashstorm/rocksdb,norton/rocksdb,tsheasha/rocksdb,flabby/rocksdb,tizzybec/rocksdb,norton/rocksdb,siddhartharay007/rocksdb,JohnPJenkins/rocksdb,facebook/rocksdb,sorphi/rocksdb,msb-at-yahoo/rocksdb,IMCG/RcoksDB,Applied-Duality/rocksdb,SunguckLee/RocksDB,caijieming-baidu/rocksdb,ylong/rocksdb,kaschaeffer/rocksdb,flabby/rocksdb,bbiao/rocksdb,ylong/rocksdb,mbarbon/rocksdb,wlqGit/rocksdb,hobinyoon/rocksdb,dkorolev/rocksdb,sorphi/rocksdb,JackLian/rocksdb,mbarbon/rocksdb,virtdb/rocksdb,jalexanderqed/rocksdb,JohnPJenkins/rocksdb,JoeWoo/rocksdb,Applied-Duality/rocksdb,norton/rocksdb,flabby/rocksdb,Applied-Duality/rocksdb,siddhartharay007/rocksdb,sorphi/rocksdb,rDSN-Projects/rocksdb.replicated,tsheasha/rocksdb,Applied-Duality/rocksdb,siddhartharay007/rocksdb,RyanTech/rocksdb,wlqGit/rocksdb,bbiao/rocksdb,IMCG/RcoksDB,OverlordQ/rocksdb,biddyweb/rocksdb,msb-at-yahoo/rocksdb,bbiao/rocksdb,wlqGit/rocksdb,IMCG/RcoksDB,JackLian/rocksdb,OverlordQ/rocksdb,RyanTech/rocksdb