1. 22 4月, 2014 2 次提交
    • Y
      [Java] Add Java binding and Java test for ReadOptions. · e316af5f
      Yueh-Hsuan Chiang 提交于
      Summary: Add Java binding and test for rocksdb::ReadOptions.
      
      Test Plan:
      make rocksdbjava
      make jtest
      
      Reviewers: haobo, dhruba, sdong, ankgup87, rsumbaly, swapnilghike, zzbennett
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D18129
      e316af5f
    • Y
      [Java] Add Java bindings for memtables and sst format. · ef8b8a8e
      Yueh-Hsuan Chiang 提交于
      Summary:
      Add Java bindings for memtables and sst format.  Specifically,
      add two abstract Java classses --- MemTableConfig and SstFormatConfig.
      Each MemTable / SST implementation should has its own config class
      extends MemTableConfig / SstFormatConfig respectively and pass it
      to Options via setMemTableConfig / setSstConfig.
      
      Test Plan:
      make rocksdbjava
      make jdb_test
      make jdb_bench
      java/jdb_bench.sh \
        --benchmarks=fillseq,readrandom,readwhilewriting \
        --memtablerep=hash_skiplist \
        --use_plain_table=1 \
        --key_size=20 \
        --prefix_size=12 \
        --value_size=100 \
        --cache_size=17179869184 \
        --disable_wal=0 \
        --sync=0 \
      
      Reviewers: haobo, ankgup87, sdong
      
      Reviewed By: haobo
      
      CC: leveldb, dhruba
      
      Differential Revision: https://reviews.facebook.net/D17997
      ef8b8a8e
  2. 20 4月, 2014 3 次提交
  3. 19 4月, 2014 2 次提交
  4. 17 4月, 2014 2 次提交
  5. 16 4月, 2014 1 次提交
  6. 15 4月, 2014 4 次提交
  7. 08 4月, 2014 1 次提交
  8. 07 4月, 2014 1 次提交
  9. 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
  10. 02 4月, 2014 1 次提交
  11. 01 4月, 2014 1 次提交
  12. 30 3月, 2014 1 次提交
  13. 29 3月, 2014 1 次提交
    • Y
      Add a jni library for rocksdb which supports Open, Get, Put, and Close. · 0d463a36
      Yueh-Hsuan Chiang 提交于
      Summary:
      This diff contains a simple jni library for rocksdb which supports open, get,
      put and closeusing default options (including Options, ReadOptions, and
      WriteOptions.)  In the usual case, Java developers can use the c++ rocksdb
      library in the way similar to the following:
      
          RocksDB db = RocksDB.open(path_to_db);
          ...
          db.put("hello".getBytes(), "world".getBytes();
          byte[] value = db.get("hello".getBytes());
          ...
          db.close();
      
      Specifically, this diff has the following major classes:
      
      * RocksDB: a Java wrapper class which forwards the operations
        from the java side to c++ rocksdb library.
      * RocksDBException: ncapsulates the error of an operation.
        This exception type is used to describe an internal error from
        the c++ rocksdb library.
      
      This diff also include a simple java sample code calling c++ rocksdb library.
      
      To build the rocksdb jni library, simply run make jni, and make jtest will try to
      build and run the sample code.
      
      Note that if the rocksdb is not built with the default glibc that Java uses,
      java will try to load the wrong glibc during the run time.  As a result,
      the sample code might not work properly during the run time.
      
      Test Plan:
      * make jni
      * make jtest
      
      Reviewers: haobo, dhruba, sdong, igor, ljin
      
      Reviewed By: dhruba
      
      CC: leveldb, xjin
      
      Differential Revision: https://reviews.facebook.net/D17109
      0d463a36