1. 29 5月, 2014 1 次提交
    • Y
      [Java] Generalize dis-own native handle and refine dispose framework. · ab3e5666
      Yueh-Hsuan Chiang 提交于
      Summary:
      1. Move disOwnNativeHandle() function from RocksDB to RocksObject
      to allow other RocksObject to use disOwnNativeHandle() when its
      ownership of native handle has been transferred.
      
      2. RocksObject now has an abstract implementation of dispose(),
      which does the following two things.  First, it checks whether
      both isOwningNativeHandle() and isInitialized() return true.
      If so, it will call the protected abstract function dispose0(),
      which all the subclasses of RocksObject should implement.  Second,
      it sets nativeHandle_ = 0.  This redesign ensure all subclasses
      of RocksObject have the same dispose behavior.
      
      3. All subclasses of RocksObject now should implement dispose0()
      instead of dispose(), and dispose0() will be called only when
      isInitialized() returns true.
      
      Test Plan:
      make rocksdbjava
      make jtest
      
      Reviewers: dhruba, sdong, ankgup87, rsumbaly, swapnilghike, zzbennett, haobo
      
      Reviewed By: haobo
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D18801
      ab3e5666
  2. 28 4月, 2014 1 次提交
  3. 25 4月, 2014 1 次提交
    • Y
      [Java] Enable filluniquerandom, readseq, BloomFilter, and 70+ command-line... · 05979493
      Yueh-Hsuan Chiang 提交于
      [Java] Enable filluniquerandom, readseq, BloomFilter, and 70+ command-line options to DbBenchmark.java
      
      Summary:
      * Add filluniquerandom
      * Add readseq, implemented using iterator.
      * Realize most command-line-arguments from db_bench.cc (70+).
      * Some code are commented out as some of the options in Options
        not yet have Java bindings.
      * Add default option to DbBenchmark.
      * RocksDB will now take the ownership of all c++ raw-pointers from Options, which includes a c++ raw-pointer for Filter.
      
      Test Plan: ./jdb_bench.sh --db=/tmp/rocksjava-bench/db --num_levels=6 --key_size=20 --prefix_size=20 --keys_per_prefix=0 --value_size=100 --block_size=4096 --cache_size=17179869184 --cache_numshardbits=6 --compression_ratio=1 --min_level_to_compress=-1 --disable_seek_compaction=1 --hard_rate_limit=2 --write_buffer_size=134217728 --max_write_buffer_number=2 --level0_file_num_compaction_trigger=8 --target_file_size_base=134217728 --max_bytes_for_level_base=1073741824 --disable_wal=0 --wal_dir=/tmp/rocksjava-bench/wal --sync=0 --disable_data_sync=1 --verify_checksum=1 --delete_obsolete_files_period_micros=314572800 --max_grandparent_overlap_factor=10 --max_background_compactions=4 --max_background_flushes=0 --level0_slowdown_writes_trigger=16 --level0_stop_writes_trigger=24 --statistics=0 --stats_per_interval=0 --stats_interval=1048576 --histogram=0 --use_plain_table=1 --open_files=-1 --mmap_read=1 --mmap_write=0 --memtablerep=prefix_hash --bloom_bits=10 --bloom_locality=1 --perf_level=0 --benchmarks=filluniquerandom,readseq,readrandom --use_existing_db=0 --threads=4
      
      Reviewers: haobo, dhruba, sdong, ankgup87, rsumbaly, swapnilghike, zzbennett
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D18267
      05979493
  4. 24 4月, 2014 1 次提交
  5. 22 4月, 2014 6 次提交
  6. 18 4月, 2014 1 次提交
  7. 15 4月, 2014 2 次提交
  8. 09 4月, 2014 1 次提交
  9. 08 4月, 2014 1 次提交
  10. 07 4月, 2014 1 次提交
  11. 03 4月, 2014 1 次提交
    • Y
      [JNI] Add java api and java tests for WriteBatch and WriteOptions, add put()... · da0887a3
      Yueh-Hsuan Chiang 提交于
      [JNI] Add java api and java tests for WriteBatch and WriteOptions, add put() and remove() to RocksDB.
      
      Summary:
      * Add java api for rocksdb::WriteBatch and rocksdb::WriteOptions, which are necessary components
        for running benchmark.
      * Add java test for org.rocksdb.WriteBatch and org.rocksdb.WriteOptions.
      * Add remove() to org.rocksdb.RocksDB, and add put() and remove() to RocksDB which take
        org.rocksdb.WriteOptions.
      
      Test Plan: make jtest
      
      Reviewers: haobo, sdong, dhruba
      
      Reviewed By: sdong
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17373
      da0887a3
  12. 02 4月, 2014 1 次提交