1. 14 10月, 2014 3 次提交
  2. 13 10月, 2014 6 次提交
    • F
      [RocksJava] Column family support · 18004d2f
      fyrz 提交于
      This commit includes the support for the following functionalities:
      
       - Single Get/Put operations
       - WriteBatch operations
       - Single iterator functionality
       - Open database with column families
       - Open database with column families Read/Only
       - Create column family
       - Drop column family
       - Properties of column families
       - Listing of column families
       - Fully backwards comptabile implementation
       - Multi Iterator support
       - MultiGet
       - KeyMayExist
       - Option to create missing column families on open
      
      In addition there is are two new Tests:
      
       - Test of ColumnFamily functionality
       - Test of Read only feature to open subsets of column families
       - Basic test to test the KeyMayExist feature
      
      What is not supported currently using RocksJava:
      
       - Custom ColumnFamilyOptions
      
      The following targets work as expected:
      
       - make rocksdbjava
       - make jtest
      
      Test environment: Ubuntu 14.04(LTS, x64), Java 1.7.0_65(OpenJDK IcedTea 2.5.2), g++ 4.8.2, kernel 3.13.0-35-generix
      18004d2f
    • Y
      Merge pull request #336 from fyrz/32BitRocksJavaBug · 5908d08a
      Yueh-Hsuan Chiang 提交于
      32 Bit RocksJava Fix for overflowing jlongs
      5908d08a
    • A
      Merge pull request #344 from fyrz/java-doc-enhancements · 9e5f2a95
      ankgup87 提交于
      JavaDoc improvements on RocksJava
      9e5f2a95
    • F
      32-Bit RocksJava resolution for jlong overflows · 4f5a6872
      fyrz 提交于
      Summary:
      This pull request solves the jlong overflow problem on 32-Bit machines as described in https://github.com/facebook/rocksdb/issues/278:
      
      1. There is a new org.rocksdb.test.PlatformRandomHelper to assist in getting random values. For 32 Bit the getLong method is overriden by xpromaches code above. For 64 Bit it behaves as is.
      2. The detection should be cross-platform (Windows is supported though it is not ported completely yet).
      3. Every JNI method which sets jlong values must check if the value fits into size_t. If it overflows size_t a InvalidArgument Status object will be returned. If its ok a OK Status will be returned.
      4. Setters which have this check will throw a RocksDBException if its no OK Status.
      
      Additionally some other parts of code were corrected using the wrong type casts.
      
      Test Plan:
      make rocksdbjava
      make jtest
      
      Differential Revision: https://reviews.facebook.net/D24531
      4f5a6872
    • F
      Minor adjustment to prevent two warnings · 16d2ebdb
      fyrz 提交于
      16d2ebdb
    • F
      JavaDoc improvements on RocksJava · 70294c91
      fyrz 提交于
      Added some more documentation improvements and readability
      improvements.
      70294c91
  3. 11 10月, 2014 7 次提交
  4. 10 10月, 2014 1 次提交
  5. 09 10月, 2014 1 次提交
  6. 08 10月, 2014 12 次提交
    • F
      Improved JavaDoc · ced61295
      fyrz 提交于
      ced61295
    • F
      RocksJava should support not only BlockBased Bloomfilter · 5e43155b
      fyrz 提交于
      5e43155b
    • I
      Update HISTORY for 3.6 · 1d525891
      Igor Canadi 提交于
      1d525891
    • T
      SkipListRep::LookaheadIterator · 88edfd90
      Tomislav Novak 提交于
      Summary:
      This diff introduces the `lookahead` argument to `SkipListFactory()`. This is an
      optimization for the tailing use case which includes many seeks. E.g. consider
      the following operations on a skip list iterator:
      
         Seek(x), Next(), Next(), Seek(x+2), Next(), Seek(x+3), Next(), Next(), ...
      
      If `lookahead` is positive, `SkipListRep` will return an iterator which also
      keeps track of the previously visited node. Seek() then first does a linear
      search starting from that node (up to `lookahead` steps). As in the tailing
      example above, this may require fewer than ~log(n) comparisons as with regular
      skip list search.
      
      Test Plan:
      Added a new benchmark (`fillseekseq`) which simulates the usage pattern. It
      first writes N records (with consecutive keys), then measures how much time it
      takes to read them by calling `Seek()` and `Next()`.
      
         $ time ./db_bench -num 10000000 -benchmarks fillseekseq -prefix_size 1 \
            -key_size 8 -write_buffer_size $[1024*1024*1024] -value_size 50 \
            -seekseq_next 2 -skip_list_lookahead=0
         [...]
         DB path: [/dev/shm/rocksdbtest/dbbench]
         fillseekseq  :       0.389 micros/op 2569047 ops/sec;
      
         real    0m21.806s
         user    0m12.106s
         sys     0m9.672s
      
         $ time ./db_bench [...] -skip_list_lookahead=2
         [...]
         DB path: [/dev/shm/rocksdbtest/dbbench]
         fillseekseq  :       0.153 micros/op 6540684 ops/sec;
      
         real    0m19.469s
         user    0m10.192s
         sys     0m9.252s
      
      Reviewers: ljin, sdong, igor
      
      Reviewed By: igor
      
      Subscribers: dhruba, leveldb, march, lovro
      
      Differential Revision: https://reviews.facebook.net/D23997
      88edfd90
    • I
      Merge pull request #342 from fyrz/java_makefile_fix · 6a443309
      Igor Canadi 提交于
      RocksJava Makefile includes incorrect paths to version.h
      6a443309
    • F
      RocksJava Makefile includes incorrect paths to version.h · 4f272408
      fyrz 提交于
      4f272408
    • I
      Log RocksDB version · f78b832e
      Igor Canadi 提交于
      Summary: This will be much easier than reviewing git sha's we currently have in our LOGs
      
      Test Plan: none
      
      Reviewers: sdong, yhchiang, ljin
      
      Reviewed By: ljin
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D24591
      f78b832e
    • L
      add db_test for changing memtable size · 25f6a852
      Lei Jin 提交于
      Summary:
      The test only covers changing write_buffer_size. Other changable
      parameters such bloom bits/probes are not obvious how to test.
      Suggestions are welcome
      
      Test Plan: db_test
      
      Reviewers: sdong, yhchiang, igor
      
      Reviewed By: igor
      
      Subscribers: leveldb
      
      Differential Revision: https://reviews.facebook.net/D24429
      25f6a852
    • A
      Merge pull request #318 from criccomini/master · daab6dc5
      ankgup87 提交于
      Build RocksDB JNI cross-platform fat jar
      daab6dc5
    • I
      Fix error introduced by merge · 63eade40
      Igor Canadi 提交于
      63eade40
    • I
      Merge pull request #340 from nbougalis/nullderef · ba882972
      Igor Canadi 提交于
      Avoid dereferencing a null field
      ba882972
    • I
      Merge pull request #341 from fyrz/arc-lint · 6bcff9dc
      Igor Canadi 提交于
      Removed code which prevents `arc lint` from working properly.
      6bcff9dc
  7. 07 10月, 2014 5 次提交
  8. 06 10月, 2014 5 次提交